Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct { BindAddr string `env:"APP_BIND_ADDR"` LogLevel string `env:"APP_LOG_LEVEL"` DatabaseURL string `env:"DATABASE_URL"` DatabaseTestURL string `env:"DATABASE_TEST_URL"` TokenExpiredHours int `env:"APP_TOKEN_EXPIRED_HOURS"` TokenSecret string `env:"APP_TOKEN_SECRET"` }
Common Config
type ErrorResponse ¶
An error structure
func NewErrorResponse ¶
func NewErrorResponse(code int, err error) *ErrorResponse
Constructor for a new ErrorResponse
Click to show internal directories.
Click to hide internal directories.