Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type App ¶ added in v0.12.1
type App interface {
Logger() *slog.Logger
PathMaker() path.PathMaker
ResourceRegistry() resources.Registry
Conf() *common.Conf
Migrating() bool
PrinterMiddleware() func(next gox.Printer) gox.Printer
IsWithValueKey(key any) bool
RegisterRewrite(token string, rewrite func(tail string) path.Rewrite)
UnregisterRewrite(token string)
}
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, portable 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, onScheduled func(), onResult func(json.RawMessage, error), onCancel func(), params actions.CallParams)
CleanFrame() shredder.Frame
ReadyFrame() shredder.ReleaseFrame
}
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(group uint64, 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.