Documentation ¶
Index ¶
Constants ¶
View Source
const RFC3339_TIME_FORMAT string = "2006-01-02T15:04:05-0700"
Variables ¶
This section is empty.
Functions ¶
func CustomTimeEncoder ¶
func CustomTimeEncoder(t time.Time, enc zapcore.PrimitiveArrayEncoder)
func GetMethodString ¶
func GinZapLogger ¶
func GinZapLogger(logger *zap.Logger) gin.HandlerFunc
Types ¶
type Endpoint ¶
type HTTPError ¶
type HTTPError struct { Code int `json:"code"` Message string `json:"message"` Errors []string `json:"errors"` }
func (*HTTPError) SetDefaultsForEmptyFields ¶
func (httpError *HTTPError) SetDefaultsForEmptyFields()
type LoggerConfig ¶
type Service ¶
type Service struct { Endpoints []Hitable Server *gin.Engine Port int Logger *zap.Logger LoggerSugar *zap.SugaredLogger LoggerCfg LoggerConfig Name string ID string }
func (*Service) ConfigureLogger ¶
func (svc *Service) ConfigureLogger(cfg LoggerConfig)
func (*Service) RegisterEndpoint ¶
Click to show internal directories.
Click to hide internal directories.