Documentation ¶
Index ¶
Constants ¶
View Source
const (
LogAttrKeyError = "error"
)
Variables ¶
This section is empty.
Functions ¶
func NewCharmLogger ¶
func NewCharmLogger(option LoggerOption) *slog.Logger
func NewJSONLogger ¶
func NewJSONLogger(option LoggerOption) *slog.Logger
Types ¶
type LoggerOption ¶
type RequestValidationError ¶
type RequestValidationErrorResponse ¶
type RequestValidationErrorResponse struct { ErrorType RequestValidationErrorType `json:"error_type"` Errors []RequestValidationError `json:"errors"` }
func ValidateRequestAllEmptyResponse ¶
func ValidateRequestAllEmptyResponse() RequestValidationErrorResponse
func ValidateRequestStruct ¶
func ValidateRequestStruct(req interface{}) (RequestValidationErrorResponse, bool)
type RequestValidationErrorType ¶
type RequestValidationErrorType string
Click to show internal directories.
Click to hide internal directories.