Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
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 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 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"` }
Click to show internal directories.
Click to hide internal directories.