session

package
v0.0.0-...-69e9717 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SessionId

type SessionId string

type SessionIfc

type SessionIfc interface {
	// Embedded interface(s)
	json.Marshaler
	json.Unmarshaler

	// Get this session's ID
	Id() SessionId
	// Get the Identity for this Session
	Identity() identsdk.IdentityIfc
	// Set name-value metadata pair for this Session
	Set(name, value string) SessionIfc
	// Get value for named metadata for this Session
	Get(name string) *string
	// Check if named metadata is set for this Session
	Has(name ...string) bool
	// Drop named metadata (if set) for this Session
	Drop(name ...string) SessionIfc
	// Get list of metadata names set for this Session
	List() []string
}

type SessionManagerIfc

type SessionManagerIfc interface {
	// Embeded interface(s)
	dep.DependencyInjectableIfc
	startable.StartableIfc

	// Our own interface
	GetSessionForIdentity(identity identsdk.IdentityIfc) (SessionIfc, error)
	GetSessionForId(sessionId SessionId) (SessionIfc, error)
	Save(session SessionIfc) error
}

Jump to

Keyboard shortcuts

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