Documentation ¶
Index ¶
- Constants
- type CELParams
- type Config
- type Error
- type Handler
- type JSON
- func (s *JSON) Get(name string) (*JSON, error)
- func (s *JSON) Int(name string) (int, error)
- func (s *JSON) Int32(name string) (int32, error)
- func (s *JSON) Int64(name string) (int64, error)
- func (s *JSON) String(name string) (string, error)
- func (s *JSON) ToInt() (int, error)
- func (s *JSON) ToInt32() (int32, error)
- func (s *JSON) ToInt64() (int64, error)
- func (s *JSON) ToString() (string, error)
- type RouteOption
- type Server
Constants ¶
View Source
const ( SchemaNotFound = Error(1) ValueNotMatchingSchema = Error(2) )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Handler ¶
type Handler interface { SetSettings(ctx context.Context, value *JSON, opts fx.SettingsOptions) error GetSettings(ctx context.Context, opts fx.SettingsOptions) (*JSON, error) RegisterUser(ctx context.Context, user *ent.User, opts fx.UserOptions) error ListUsers(ctx context.Context, opts fx.UserOptions) ([]*ent.User, error) CreateUser(ctx context.Context, user *ent.User) error ValidateUser(ctx context.Context, username string, opts fx.UserOptions) error UserInfo(ctx context.Context, username string, opts fx.UserOptions) (*ent.User, error) GetCollections(ctx context.Context) ([]string, error) PutData(ctx context.Context, data *fx.Data, opts fx.PutDataOptions) error PatchData(ctx context.Context, collection string, id string, content io.Reader, size int64, opts fx.PatchOptions) error GetData(ctx context.Context, collection string, id string, opts fx.GetDataOptions) (*fx.Data, error) Info(ctx context.Context, collection string, id string) (*fx.Info, error) Delete(ctx context.Context, collection string, id string) error List(ctx context.Context, collection string, opts fx.ListOptions) (*fx.DataList, error) SaveGraft(ctx context.Context, graft *fx.Graft) (string, error) GetGraft(ctx context.Context, collection string, dataID string, id string) (*fx.Graft, error) GraftInfo(ctx context.Context, collection string, dataID string, id string) (*fx.GraftInfo, error) ListGrafts(ctx context.Context, collection string, dataID string, opts fx.ListOptions) (*fx.GraftList, error) DeleteGraft(ctx context.Context, collection string, dataID string, id string) error }
type RouteOption ¶
type RouteOption func(*routes)
func SkipExec ¶
func SkipExec() RouteOption
func SkipParamsCheck ¶
func SkipParamsCheck() RouteOption
func SkipPoliciesCheck ¶
func SkipPoliciesCheck() RouteOption
Source Files ¶
Click to show internal directories.
Click to hide internal directories.