Documentation
¶
Index ¶
- type AnyInstance
- type Core
- type Instance
- func (inst *Instance[M]) Connect(w http.ResponseWriter, r *http.Request)
- func (inst *Instance[M]) Id() string
- func (inst *Instance[M]) OnPanic(err error)
- func (inst *Instance[M]) Serve(w http.ResponseWriter, r *http.Request, code int) error
- func (inst *Instance[M]) TriggerHook(doorId uint64, hookId uint64, w http.ResponseWriter, r *http.Request) bool
- func (inst *Instance[M]) UpdatePath(m any, adapter path.AnyAdapter) bool
- type Link
- type LocatinReload
- type LocationAssign
- type LocationReplace
- type Options
- type Page
- type ScriptOptions
- type Session
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AnyInstance ¶
type AnyInstance interface { Id() string Serve(http.ResponseWriter, *http.Request, int) error UpdatePath(m any, adapter path.AnyAdapter) bool TriggerHook(uint64, uint64, http.ResponseWriter, *http.Request) bool Connect(w http.ResponseWriter, r *http.Request) // contains filtered or unexported methods }
func NewInstance ¶
type Core ¶
type Core interface { Thread() *shredder.Thread Detached() bool InlineNonce() (string, bool) CSPCollector() (*common.CSPCollector, bool) ImportRegistry() *resources.Registry SessionId() string Include() bool ClientConf() *common.ClientConf Id() string NewId() uint64 Cinema() *door.Cinema NewLink(context.Context, any) (*Link, error) SessionExpire(d time.Duration) SessionEnd() Call(call common.Call) End() }
type Instance ¶
type Instance[M any] struct { // contains filtered or unexported fields }
func (*Instance[M]) Connect ¶
func (inst *Instance[M]) Connect(w http.ResponseWriter, r *http.Request)
func (*Instance[M]) TriggerHook ¶
func (*Instance[M]) UpdatePath ¶
func (inst *Instance[M]) UpdatePath(m any, adapter path.AnyAdapter) bool
type Link ¶
type Link struct {
// contains filtered or unexported fields
}
func (*Link) ClickHandler ¶
type LocatinReload ¶
type LocatinReload struct { }
func (*LocatinReload) Data ¶
func (l *LocatinReload) Data() *common.CallData
func (*LocatinReload) Result ¶
func (t *LocatinReload) Result(error)
type LocationAssign ¶
func (*LocationAssign) Data ¶
func (l *LocationAssign) Data() *common.CallData
func (*LocationAssign) Result ¶
func (t *LocationAssign) Result(error)
type LocationReplace ¶
func (*LocationReplace) Data ¶
func (l *LocationReplace) Data() *common.CallData
func (*LocationReplace) Result ¶
func (t *LocationReplace) Result(error)
type ScriptOptions ¶
type Session ¶
type Session struct {
// contains filtered or unexported fields
}
func NewSession ¶
func NewSession(r router) *Session
func (*Session) AddInstance ¶
func (sess *Session) AddInstance(inst AnyInstance) bool
func (*Session) GetInstance ¶
func (sess *Session) GetInstance(id string) (AnyInstance, bool)
func (*Session) SetExpiration ¶
Click to show internal directories.
Click to hide internal directories.