Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetLogger
deprecated
func GetLogger() *zap.SugaredLogger
Deprecated: instead calling this method inject utils from wire
func GetUrlWithScheme ¶ added in v0.0.17
func InitLogger ¶
func InitLogger() (*zap.SugaredLogger, error)
func NewSugardLogger ¶
func NewSugardLogger() (*zap.SugaredLogger, error)
func RunCommand ¶
Types ¶
type ApiError ¶ added in v0.0.3
type ApiError struct {
HttpStatusCode int `json:"-"`
Code string `json:"code,omitempty"`
InternalMessage string `json:"internalMessage,omitempty"`
UserMessage interface{} `json:"userMessage,omitempty"`
UserDetailMessage string `json:"userDetailMessage,omitempty"`
}
func (*ApiError) ErrorfInternal ¶ added in v0.0.3
default internal will be set
func (ApiError) ErrorfUser ¶ added in v0.0.3
default user message will be set
Click to show internal directories.
Click to hide internal directories.