Documentation ¶
Index ¶
- type Auth
- type Instance
- type Model
- type Module
- func (m *Module) Controller() []service.Controller
- func (m *Module) Done(zdi.Invoker) (err error)
- func (m *Module) Instance() *Instance
- func (m *Module) Load(di zdi.Invoker) (any, error)
- func (m *Module) Name() string
- func (m *Module) Start(di zdi.Invoker) (err error)
- func (m *Module) Stop() error
- func (m *Module) Tasks() []service.Task
- func (m *Module) UserById(id any) (u *User, err error)
- type Options
- type User
- type UserServer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Instance ¶
type Instance struct {
// contains filtered or unexported fields
}
func (*Instance) GetMemberModel ¶
func (*Instance) GetMiddleware ¶
type Module ¶
type Module struct { service.ModuleLifeCycle Options Options // contains filtered or unexported fields }
func (*Module) Controller ¶
func (m *Module) Controller() []service.Controller
type Options ¶
type Options struct { InitDB func() (*zdb.DB, error) `z:"-"` ApiPrefix string `z:"prefix"` Key string `z:"key"` Providers []auth.AuthProvider `z:"-"` EnabledProviders []string `z:"enabled_providers"` Expire int `z:"expire"` }
func (Options) DisableWrite ¶
type UserServer ¶
Click to show internal directories.
Click to hide internal directories.