Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ApiError ¶
type ApiError struct { Code int `json:"code"` Message string `json:"message"` ValidationErrors []string `json:"validation_errors,omitempty"` }
func NewApiError ¶
func (*ApiError) WithMessage ¶
func (*ApiError) WithValidationErrors ¶
type CustomValidator ¶
type CustomValidator struct {
Validator *validator.Validate
}
func NewCustomValidator ¶
func NewCustomValidator() *CustomValidator
func (*CustomValidator) Validate ¶
func (cv *CustomValidator) Validate(i interface{}) error
type PasscodeFinishRequest ¶
type PasscodeInitRequest ¶
type PasscodeInitRequest struct {
UserId string `json:"user_id" validate:"required"`
}
type PasscodeReturn ¶
type PublicConfig ¶
PublicConfig is the part of the configuration that will be shared with the frontend
func FromConfig ¶
func FromConfig(config config.Config) PublicConfig
FromConfig Returns a PublicConfig from the Application configuration
type ValidationErrors ¶
type ValidationErrors struct {
Errors []string `json:"errors"`
}
Click to show internal directories.
Click to hide internal directories.