user

package
v1.26.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 9, 2020 License: MIT Imports: 2 Imported by: 0

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 GeoJSON

type GeoJSON struct {
	Type        string    `json:"-"`
	Coordinates []float64 `json:"coordinates200"`
}

type Profile

type Profile struct {
	Phone string `json:"phone"`
}

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"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL