instance

package
v0.12.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 11, 2026 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type App

type App interface {
	CSP() *common.CSP
	Conf() *common.Conf
	PathMaker() path.PathMaker
	RemoveSession(id string)
	ResourceRegistry() resources.Registry
}

type Instance

type Instance = *instance

func (Instance) CSPCollector

func (inst Instance) CSPCollector() common.CSPCollector

func (Instance) Connect

func (inst Instance) Connect(w http.ResponseWriter, r *http.Request)

func (Instance) ID

func (inst Instance) ID() string

func (Instance) Location added in v0.12.1

func (inst Instance) Location() beam.Source[path.Location]

func (Instance) Serve

func (inst Instance) Serve(w http.ResponseWriter, r *http.Request, page Page) (err error, handeled bool)

func (Instance) Session added in v0.12.1

func (inst Instance) Session() core.Session

func (Instance) Store added in v0.12.1

func (inst Instance) Store() ctex.Store

func (Instance) TitleMeta added in v0.12.1

func (inst Instance) TitleMeta() core.TitleMeta

func (Instance) TriggerHook

func (inst Instance) TriggerHook(hookID uint64, w http.ResponseWriter, r *http.Request, track uint64) bool

func (Instance) UpdateLocation added in v0.12.1

func (inst Instance) UpdateLocation(l path.Location) bool

func (Instance) UserCall added in v0.10.0

func (c Instance) UserCall(ctx context.Context, check func() bool, action action.Action, onResult func(json.RawMessage, error), onCancel func(), params action.CallParams)

type Page added in v0.12.1

type Page = func(ctx context.Context, w http.ResponseWriter, r *http.Request) gox.Comp

type Session

type Session = *session

func NewSession

func NewSession(a App) Session

func (Session) ID

func (sess Session) ID() string

func (Session) Instance added in v0.12.1

func (sess Session) Instance(loc path.Location) (Instance, bool)

func (Session) Store

func (sess Session) Store() ctex.Store

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL