summaryrefslogtreecommitdiff
path: root/types
diff options
context:
space:
mode:
authorjwijenbergh <jeroenwijenbergh@protonmail.com>2022-11-24 15:40:39 +0100
committerjwijenbergh <jeroenwijenbergh@protonmail.com>2022-11-24 15:40:39 +0100
commit8be555e5f91c6069c3d51cb014f1849fd182b1dc (patch)
tree9c78f2ee1f5122da1e1ed3e452682f7f6744778f /types
parent791fffebff4499e4fad3217e2160596e1b8b3eea (diff)
Style: Use stylecheck and fix errors
Diffstat (limited to 'types')
-rw-r--r--types/error.go10
-rw-r--r--types/server.go2
2 files changed, 6 insertions, 6 deletions
diff --git a/types/error.go b/types/error.go
index dc4b90e..fd56f3d 100644
--- a/types/error.go
+++ b/types/error.go
@@ -9,16 +9,16 @@ type ErrorLevel int8
const (
// All other errors, default
- ERR_OTHER ErrorLevel = iota
+ ErrOther ErrorLevel = iota
// The erorr is just here as additional info
- ERR_INFO
+ ErrInfo
// The error is just here as a warning
- ERR_WARNING
+ ErrWarning
// The error is fatal, the app cannot function
- ERR_FATAL
+ ErrFatal
)
type WrappedErrorMessage struct {
@@ -94,5 +94,5 @@ func GetErrorLevel(err error) ErrorLevel {
if errors.As(err, &wrappedErr) {
return wrappedErr.Level
}
- return ERR_OTHER
+ return ErrOther
}
diff --git a/types/server.go b/types/server.go
index e149b16..24db8f2 100644
--- a/types/server.go
+++ b/types/server.go
@@ -17,7 +17,7 @@ type DiscoveryOrganizations struct {
type DiscoveryOrganization struct {
DisplayName DiscoMapOrString `json:"display_name"`
- OrgId string `json:"org_id"`
+ OrgID string `json:"org_id"`
SecureInternetHome string `json:"secure_internet_home"`
KeywordList DiscoMapOrString `json:"keyword_list"`
}