Help us shape the future of Go! Take the 2026 Go Developer Survey

sessionctx

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Context

type Context struct {
	SessionChannelIDHash string        `json:"session_channel_id_hash"`
	OwnerUserHash        string        `json:"owner_user_hash"`
	OwnerEnvHash         string        `json:"owner_env_hash"`
	Origin               string        `json:"origin"`
	CSRFGeneration       string        `json:"csrf_generation"`
	Permissions          PermissionSet `json:"permissions"`
}

type PermissionSet

type PermissionSet struct {
	Read    bool `json:"read"`
	Write   bool `json:"write"`
	Execute bool `json:"execute"`
	Admin   bool `json:"admin"`
}

type Resolver

type Resolver interface {
	ResolveSession(ctx context.Context, channelID string) (Context, error)
}

Jump to

Keyboard shortcuts

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