Documentation
¶
Index ¶
- type App
- type Core
- 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) Clean(f func())
- func (c Core) Conf() *common.Conf
- 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) Location() beam.Source[path.Location]
- func (c Core) ModuleRegistry() ModuleRegistry
- func (c Core) NewID() uint64
- 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) TitleMeta() TitleMeta
- func (c Core) XReload(ctx context.Context) <-chan error
- type Door
- type Hook
- type Instance
- type ModuleRegistry
- type Session
- type TitleMeta
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) 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 {
Instance() Instance
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)
Clean(func())
}
type Hook ¶
type Hook struct {
HookID uint64
Cancel context.CancelFunc
}
type Instance ¶
type Instance interface {
Session() Session
Store() ctex.Store
UserCall(ctx context.Context, check func() bool, action action.Action, onResult func(json.RawMessage, error), onCancel func(), params action.CallParams)
CSPCollector() common.CSPCollector
ModuleRegistry() ModuleRegistry
ID() string
RootID() uint64
NewID() uint64
Runtime() shredder.Runtime
SetStatus(int)
Location() beam.Source[path.Location]
Kill()
TitleMeta() TitleMeta
}
type ModuleRegistry ¶
Click to show internal directories.
Click to hide internal directories.