Documentation
¶
Index ¶
- type Core
- func (c Core) Adapters() path.Adapters
- func (c Core) CSPCollector() *common.CSPCollector
- func (c Core) CallCheck(check func() bool, action action.Action, onResult func(json.RawMessage, error), ...)
- func (c Core) CallCtx(ctx context.Context, action action.Action, ...) context.CancelFunc
- func (c Core) Cinema() beam.Cinema
- func (c Core) Conf() *common.SystemConf
- func (c Core) Door() Door
- func (c Core) DoorID() uint64
- func (c Core) Instance() Instance
- func (c Core) InstanceEnd()
- func (c Core) InstanceID() string
- func (c Core) License() string
- func (c Core) ModuleRegistry() ModuleRegistry
- func (c Core) NewID() uint64
- func (c Core) NewLink(m any) (Link, error)
- func (c Core) PathMaker() path.PathMaker
- func (c Core) RegisterHook(...) (Hook, bool)
- func (c Core) ResourceRegistry() *resources.Registry
- func (c Core) RootCore() Core
- func (c Core) RootID() uint64
- func (c Core) Runtime() shredder.Runtime
- func (c Core) SessionEnd()
- func (c Core) SessionExpire(d time.Duration)
- func (c Core) SessionID() string
- func (c Core) SetStatus(status int)
- func (c Core) UpdateMeta(name string, property bool, attrs gox.Attrs)
- func (c Core) UpdateTitle(content string, attrs gox.Attrs)
- type Done
- type Door
- type Hook
- type Instance
- type Link
- type ModuleRegistry
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Core ¶
type Core = *core
func (Core) CSPCollector ¶
func (c Core) CSPCollector() *common.CSPCollector
func (Core) CallCheck ¶
func (c Core) CallCheck(check func() bool, action action.Action, onResult func(json.RawMessage, error), onCancel func(), params action.CallParams)
func (Core) CallCtx ¶
func (c Core) CallCtx(ctx context.Context, action action.Action, onResult func(json.RawMessage, error), onCancel func(), params action.CallParams) context.CancelFunc
func (Core) Conf ¶
func (c Core) Conf() *common.SystemConf
func (Core) InstanceEnd ¶
func (c Core) InstanceEnd()
func (Core) InstanceID ¶
func (Core) ModuleRegistry ¶
func (c Core) ModuleRegistry() ModuleRegistry
func (Core) RegisterHook ¶
func (Core) ResourceRegistry ¶
func (Core) SessionEnd ¶
func (c Core) SessionEnd()
func (Core) SessionExpire ¶
type Instance ¶
type Instance interface {
CallCtx(ctx context.Context, action action.Action, onResult func(json.RawMessage, error), onCancel func(), params action.CallParams) context.CancelFunc
CallCheck(check func() bool, action action.Action, onResult func(json.RawMessage, error), onCancel func(), params action.CallParams)
CSPCollector() *common.CSPCollector
ModuleRegistry() ModuleRegistry
ResourceRegistry() *resources.Registry
ID() string
RootID() uint64
Conf() *common.SystemConf
NewID() uint64
NewLink(any) (Link, error)
Runtime() shredder.Runtime
License() string
SetStatus(int)
SessionExpire(time.Duration)
SessionEnd()
InstanceEnd()
SessionID() string
Adapters() path.Adapters
PathMaker() path.PathMaker
UpdateTitle(content string, attrs gox.Attrs)
UpdateMeta(name string, property bool, attrs gox.Attrs)
}
type ModuleRegistry ¶
Click to show internal directories.
Click to hide internal directories.