Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrServiceIsRequired occurs when underlying service is not provided ErrServiceIsRequired = errors.New("service is required") // ErrNotFound occurs when item is not found ErrNotFound = errors.New("not found") // ErrInvalid occurs when invalid action is requested ErrInvalid = errors.New("invalid") ErrUnauthorized = errors.New("authentication required") // ErrForbidden occurs when action is forbidden ErrForbidden = errors.New("forbidden") // ErrInternal occurs when unhandled behavior occurs ErrInternal = errors.New("internal server error") )
Functions ¶
Types ¶
type App ¶
type App interface {
Handler() http.Handler
Swagger() (swagger.Configuration, error)
}
App of package
type Service ¶ added in v3.4.0
type Service interface {
Unmarshal(data []byte) (interface{}, error)
Check(ctx context.Context, old, new interface{}) []Error
List(ctx context.Context, page, pageSize uint, sortKey string, sortDesc bool, filters map[string][]string) ([]interface{}, uint, error)
Get(ctx context.Context, ID uint64) (interface{}, error)
Create(ctx context.Context, o interface{}) (interface{}, error)
Update(ctx context.Context, o interface{}) (interface{}, error)
Delete(ctx context.Context, o interface{}) error
}
Service retrieves item
Click to show internal directories.
Click to hide internal directories.