Documentation ¶
Index ¶
- func Must(err error)
- type Config
- type Error
- func (e *Error) AddTrace(module string)
- func (e *Error) Code() int
- func (e *Error) Error() string
- func (e *Error) IsErrorUser() bool
- func (e *Error) Level() int
- func (e *Error) Message() string
- func (e *Error) Origin() string
- func (e *Error) SetErrorUser()
- func (e *Error) Source() string
- func (e *Error) Status() int
- type Logger
- type ReqSetupPost
- type Server
- type Service
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct { Appname string Version string VersionHash string LogLevel int Port string BaseURL string PublicDir string TemplateDir string MaxReqSize string FrontendProxy []string Origins []string RouteRewrite map[string]string // contains filtered or unexported fields }
Config is the server configuration
type Error ¶
type Error struct {
// contains filtered or unexported fields
}
Error is an error container
func NewErrorUser ¶
NewErrorUser creates a new custom Error
func NewErrorWarn ¶
NewErrorWarn creates a new custom Error
func (*Error) IsErrorUser ¶
IsErrorUser returns if the error is a user error
func (*Error) SetErrorUser ¶
func (e *Error) SetErrorUser()
SetErrorUser makes the error a user error
type Logger ¶
type Logger interface { Debug(msg, module, event string, code int, data map[string]string) Info(msg, module, event string, code int, data map[string]string) Warn(msg, module, event string, code int, data map[string]string) Error(msg, module, event string, code int, data map[string]string) Fatal(msg, module, event string, code int, data map[string]string) }
type ReqSetupPost ¶
type ReqSetupPost struct { Username string `json:"username"` Password string `json:"password"` Email string `json:"email"` Firstname string `json:"first_name"` Lastname string `json:"last_name"` Orgname string `json:"orgname"` }
ReqSetupPost is the http post request for the setup
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
cmd
|
|
service
|
|
conf/model
Code generated by go generate.
|
Code generated by go generate. |
courier/model
Code generated by go generate.
|
Code generated by go generate. |
profile/model
Code generated by go generate.
|
Code generated by go generate. |
user/model
Code generated by go generate.
|
Code generated by go generate. |
user/role/model
Code generated by go generate.
|
Code generated by go generate. |
util
|
|
Click to show internal directories.
Click to hide internal directories.