Documentation
¶
Index ¶
- Constants
- type App
- type Instance
- func (inst Instance) CSPCollector() common.CSPCollector
- func (inst Instance) Connect(w http.ResponseWriter, r *http.Request)
- func (inst Instance) ID() string
- func (inst Instance) InitializeTabState(data map[string]json.RawMessage) bool
- func (inst Instance) LastSeen() time.Time
- func (inst Instance) Location() beam.Source[path.Location]
- func (inst Instance) Logger() *slog.Logger
- func (inst Instance) Serve(w http.ResponseWriter, r *http.Request, page Page) (err error, handled bool)
- func (inst Instance) Session() core.Session
- func (inst Instance) Store() ctex.Store
- func (inst Instance) TitleMeta() core.TitleMeta
- func (inst Instance) TriggerHook(hookID uint64, w http.ResponseWriter, r *http.Request, track uint64) bool
- func (inst Instance) UpdateLocation(l path.Location) bool
- func (c Instance) UserCall(ctx context.Context, action actions.Action, ...)
- func (c Instance) UserCallCheck(group uint64, batch uint64, target uint64, check func() bool, ...)
- type Page
- type Session
- type TabState
- type TabStateDerive
Constants ¶
View Source
const UPDATE_PERIOD = time.Second * 5
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type App ¶
type App interface {
Context() context.Context
IsWithValueKey(key any) bool
RegisterRewrite(token string, rewrite func(tail string) path.Rewrite)
UnregisterRewrite(token string)
CSP() *common.CSP
Conf() *common.Conf
SetCookies(w http.ResponseWriter, id string, maxAge time.Duration)
PathMaker() path.PathMaker
RemoveSession(id string)
ResourceRegistry() resources.Registry
Logger() *slog.Logger
InstanceCreated()
InstanceDeleted()
Migrating() bool
PrinterMiddleware() func(next gox.Printer) gox.Printer
}
type Instance ¶
type Instance = *instance
func (Instance) CSPCollector ¶
func (inst Instance) CSPCollector() common.CSPCollector
func (Instance) InitializeTabState ¶ added in v0.15.5
func (inst Instance) InitializeTabState(data map[string]json.RawMessage) bool
func (Instance) TriggerHook ¶
func (Instance) UpdateLocation ¶ added in v0.12.1
func (Instance) UserCallCheck ¶ added in v0.15.2
type Session ¶
type Session = *session
func NewSession ¶
func (Session) InstanceCount ¶
type TabStateDerive ¶ added in v0.15.5
type TabStateDerive[T any] struct { Key string Equal func(T, T) bool // contains filtered or unexported fields }
func (*TabStateDerive[T]) Derive ¶ added in v0.15.5
func (s *TabStateDerive[T]) Derive()
Click to show internal directories.
Click to hide internal directories.