Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ErrBadInput ¶
type ErrBadInput struct {
// contains filtered or unexported fields
}
when the input is bad (e.g. malformed query, invalid object state)
func NewErrBadInput ¶
func NewErrBadInput(message string) *ErrBadInput
func (*ErrBadInput) Error ¶
func (e *ErrBadInput) Error() string
type ErrForbidden ¶
type ErrForbidden struct {
// contains filtered or unexported fields
}
when the user is forbidden (e.g. user can't access a resource)
func NewErrForbidden ¶
func NewErrForbidden(message string) *ErrForbidden
func (*ErrForbidden) Error ¶
func (e *ErrForbidden) Error() string
type ErrUnauthorized ¶
type ErrUnauthorized struct {
// contains filtered or unexported fields
}
when the user is not authorized (e.g. user is not authenticated)
func NewErrUnauthorized ¶
func NewErrUnauthorized(message string) *ErrUnauthorized
func (*ErrUnauthorized) Error ¶
func (e *ErrUnauthorized) Error() string
Click to show internal directories.
Click to hide internal directories.