app

package
v2.0.0-alpha.11 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2020 License: MIT Imports: 3 Imported by: 0

README

swipe : A short description of the service.

A complete description of the service and what it does.

Example

go run ./cmd/service

Docs

ToDo.

Contributing

ToDo.

Contributors

ToDo.

Author

ToDo.

Changelog

ToDo.

Versions

v2.0.0-alpha.10 , v2.0.0-alpha.9 , v2.0.0-alpha.8 , v2.0.0-alpha.7 , v2.0.0-alpha.6 , v2.0.0-alpha.5 , v2.0.0-alpha.4 , v2.0.0-alpha.3 , v2.0.0-alpha.2 , v2.0.0-alpha.1 , v1.26.7 , v1.26.6 , v1.26.5 , v1.26.4 , v1.26.3 , v1.26.2 , v1.26.1 , v1.26.0 , v1.25.12 , v1.25.11 , v1.25.10 , v1.25.9 , v1.25.8 , v1.25.7 , v1.25.6 , v1.25.5 , v1.25.4 , v1.25.3 , v1.25.2 , v1.25.1 , v1.25.0 , v1.24.7 , v1.24.6 , v1.24.5 , v1.24.4 , v1.24.3 , v1.24.2 , v1.24.1 , v1.24.0 , v1.23.0 , v1.22.4 , v1.22.3 , v1.22.2 , v1.22.1 , v1.22.0 , v1.21.0 , v1.20.1 , v1.14.0 , v1.13.4 , v1.13.3 , v1.13.2 , v1.13.1 , v1.13.0 , v1.12.1 , v1.12.0 , v1.11.4 , v1.11.2 , v1.11.0 , v1.10.0 , v1.9.0 , v1.8.0 , v1.7.2 , v1.6.0 , v1.3.0 , v1.2.2 , v1.1.5 , v1.1.4 , v1.1.3 , v1.1.2 , v1.1.1 , v1.1.0 , v1.0.5 , v1.0.4 , v1.0.3 , v1.0.2 , v1.0.1 , v1.0.0

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 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 Kind

type Kind string

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 {
	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"`
	Profile   *Profile   `json:"profile"`
	Recurse   *Recurse   `json:"recurse"`
	Kind      Kind       `json:"kind"`
	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