app

package
v2.0.0-alpha.21 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2020 License: MIT Imports: 3 Imported by: 0

README

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AliasData

type AliasData = Data

type Data

type Data map[string]interface{}

type ErrForbidden

type ErrForbidden struct{}

ErrForbidden forbidden.

func (ErrForbidden) Error

func (ErrForbidden) Error() string

func (ErrForbidden) ErrorCode

func (ErrForbidden) ErrorCode() int

ErrorCode error value implements ErrorCoder, the ErrorCode will be used when encoding the error.

func (ErrForbidden) StatusCode

func (ErrForbidden) StatusCode() int

StatusCode error value implements StatusCoder, the StatusCode will be used when encoding the error.

type ErrUnauthorized

type ErrUnauthorized struct{}

ErrUnauthorized unauthorized.

func (ErrUnauthorized) Error

func (ErrUnauthorized) Error() string

func (ErrUnauthorized) ErrorCode

func (ErrUnauthorized) ErrorCode() int

ErrorCode error value implements ErrorCoder, the ErrorCode will be used when encoding the error.

func (ErrUnauthorized) StatusCode

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 Info

type Info struct {
	Title string `json:"title"`
}

type InterfaceA

type InterfaceA interface {
	TestMethod()
}

type InterfaceB

type InterfaceB interface {
	// Create new item of item.
	Create(ctx context.Context, newData AliasData, name string, data []byte) (err error)
	// Get item.
	Get(ctx context.Context, id int, name, fname string, price float32, n, b, cc int) (data User, err error)
	// GetAll more comment and more and more comment and more and more comment and more.
	// New line comment.
	GetAll(ctx context.Context, members Members) ([]*User, error)
	Delete(ctx context.Context, id uint) (a string, b string, err error)
	TestMethod(data map[string]interface{}, ss interface{}) (states map[string]map[int][]string, err error)
	TestMethod2(ctx context.Context, ns string, utype string, user string, restype string, resource string, permission string) error
}

type Member

type Member struct {
	ID string `json:"id"`
}

type Members

type Members []*Member

type Profile

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

type Recurse

type Recurse struct {
	Name    string     `json:"name"`
	Recurse []*Recurse `json:"recurse"`
}

type User

type User struct {
	*Info
	ID       uuid.UUID `json:"id"`
	Name     string    `json:"name"`
	Password string    `json:"password"`
	Point    GeoJSON   `json:"point"`
	LastSeen time.Time `json:"last_seen"`
	Data     AliasData `json:"data"`
	Photo    []byte    `json:"photo"`
	User     *User     `json:"user"`
	//Users     []*User    `json:"users"`
	Profile   *Profile   `json:"profile"`
	Recurse   *Recurse   `json:"recurse"`
	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