Documentation
¶
Index ¶
- type Core
- func (c Core) Adapters() path.Adapters
- func (c Core) CSPCollector() *common.CSPCollector
- func (c Core) Call(ctx context.Context, check func() bool, action action.Action, ...)
- 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) 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) Reload(ctx context.Context)
- 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)
- func (c Core) XReload(ctx context.Context) <-chan error
- 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) 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 Door ¶
type Door interface {
Cinema() beam.Cinema
ID() uint64
RegisterHook(onTrigger func(ctx context.Context, w http.ResponseWriter, r *http.Request) bool, onCancel func(ctx context.Context)) (Hook, bool)
Reload(ctx context.Context)
XReload(ctx context.Context) <-chan error
RootCore() Core
UserCall(ctx context.Context, check func() bool, action action.Action, onResult func(json.RawMessage, error), onCancel func(), params action.CallParams)
}
type Hook ¶
type Hook struct {
HookID uint64
Cancel context.CancelFunc
}
type Instance ¶
type Instance interface {
CSPCollector() *common.CSPCollector
ModuleRegistry() ModuleRegistry
ResourceRegistry() *resources.Registry
ID() string
RootID() uint64
Conf() *common.SystemConf
NewID() uint64
NewLink(any) (Link, error)
Runtime() shredder.Runtime
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)
UserCall(ctx context.Context, check func() bool, action action.Action, onResult func(json.RawMessage, error), onCancel func(), params action.CallParams)
}
type ModuleRegistry ¶
Click to show internal directories.
Click to hide internal directories.