Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
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, race Race, batch bool) (Hook, bool)
Reload(ctx context.Context) <-chan error
DeferredInner(ctx context.Context, content any) <-chan error
DeferredOuter(ctx context.Context, content any) <-chan error
DeferredStatic(ctx context.Context, content any) <-chan error
RootCore() Core
UserCall(ctx context.Context, action actions.Action, onResult func(json.RawMessage, error), onCancel func(), params actions.CallParams)
CleanFrame() shredder.Frame
ReadyFrame() shredder.ReleaseFrame
}
type Hook ¶
type Hook struct {
HookID uint64
Cancel context.CancelFunc
}
type Instance ¶
type Instance interface {
TabState(TabStateDeriver)
Session() Session
Logger() *slog.Logger
Store() ctex.Store
UserCall(ctx context.Context, action actions.Action, onResult func(json.RawMessage, error), onCancel func(), params actions.CallParams, door uint64, depSeq uint64)
UserCallCheck(batch uint64, target uint64, check func() bool, action actions.Action, onResult func(json.RawMessage, error), onCancel func(), params actions.CallParams)
CSPCollector() common.CSPCollector
ModuleRegistry() ModuleRegistry
ID() string
LastSeen() time.Time
RootID() uint64
NewID() uint64
Runtime() shredder.Runtime
SetStatus(int)
Location() beam.Source[path.Location]
Kill()
TitleMeta() TitleMeta
}
type ModuleRegistry ¶
type TabStateDeriver ¶ added in v0.15.5
type TabStateDeriver interface {
Derive()
}
Click to show internal directories.
Click to hide internal directories.