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 logger from wire
func IsErrNoRows ¶
func NewHttpClient ¶
func NewSugardLogger ¶
func NewSugardLogger() *zap.SugaredLogger
Types ¶
type ApiError ¶
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 ¶
default internal will be set
func (ApiError) ErrorfUser ¶
default telemetry message will be set
type PosthogConfig ¶
type PosthogConfig struct { PosthogApiKey string `env:"POSTHOG_API_KEY" envDefault:""` PosthogEndpoint string `env:"POSTHOG_ENDPOINT" envDefault:"https://app.posthog.com"` }
func GetPosthogConfig ¶
func GetPosthogConfig() (*PosthogConfig, error)
Click to show internal directories.
Click to hide internal directories.