Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ErrForbidden ¶ added in v1.23.0
type ErrForbidden struct{}
ErrForbidden forbidden.
func (ErrForbidden) Error ¶ added in v1.23.0
func (ErrForbidden) Error() string
func (ErrForbidden) ErrorCode ¶ added in v1.23.0
func (ErrForbidden) ErrorCode() int
ErrorCode error value implements ErrorCoder, the ErrorCode will be used when encoding the error.
func (ErrForbidden) StatusCode ¶ added in v1.23.0
func (ErrForbidden) StatusCode() int
StatusCode error value implements StatusCoder, the StatusCode will be used when encoding the error.
type ErrUnauthorized ¶ added in v1.23.0
type ErrUnauthorized struct{}
ErrUnauthorized unauthorized.
func (ErrUnauthorized) Error ¶ added in v1.23.0
func (ErrUnauthorized) Error() string
func (ErrUnauthorized) ErrorCode ¶ added in v1.23.0
func (ErrUnauthorized) ErrorCode() int
ErrorCode error value implements ErrorCoder, the ErrorCode will be used when encoding the error.
func (ErrUnauthorized) StatusCode ¶ added in v1.23.0
func (ErrUnauthorized) StatusCode() int
StatusCode error value implements StatusCoder, the StatusCode will be used when encoding the error.
type User ¶
type User struct { ID uuid.UUID `json:"id"` Name string `json:"name"` Password string `json:"password"` Point GeoJSON `json:"point"` LastSeen time.Time `json:"last_seen"` Photo []byte `json:"photo"` Profile *Profile `json:"profile"` CreatedAt *time.Time `json:"created_at"` UpdatedAt time.Time `json:"updated_at"` }
Click to show internal directories.
Click to hide internal directories.