Fix linting problems

This commit is contained in:
Jamie Curnow
2021-06-30 11:20:34 +10:00
parent 80a31b3041
commit 86a35beb3a
26 changed files with 53 additions and 51 deletions

View File

@@ -18,7 +18,7 @@ func getFilterMapFunctions() map[string]entity.FilterMapFunction {
return filterMapFunctions
}
// GetFilterSchema ...
// GetFilterSchema returns filter schema
func GetFilterSchema() string {
var m Model
return entity.GetFilterSchema(m)

View File

@@ -13,14 +13,15 @@ import (
const (
tableName = "certificate"
// TypeCustom ...
// TypeCustom custom cert type
TypeCustom = "custom"
// TypeHTTP ...
// TypeHTTP http cert type
TypeHTTP = "http"
// TypeDNS ...
// TypeDNS dns cert type
TypeDNS = "dns"
// TypeMkcert ...
// TypeMkcert mkcert cert type
TypeMkcert = "mkcert"
// StatusReady is ready for certificate to be requested
StatusReady = "ready"
// StatusRequesting is process of being requested
@@ -151,7 +152,7 @@ func (m *Model) Expand() {
}
}
// Request ...
// Request makes a certificate request
func (m *Model) Request() error {
m.Expand()
m.Status = StatusRequesting