sessioninternal

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2025 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package tool defines internal-only interfaces and logic for tools.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MutableSession

type MutableSession struct {
	// contains filtered or unexported fields
}

MutableSession implements session.Session

func NewMutableSession

func NewMutableSession(service session.Service, storedSession session.Session) *MutableSession

NewMutableSession creates and returns session.Session implementation.

func (*MutableSession) All

func (s *MutableSession) All() iter.Seq2[string, any]

func (*MutableSession) AppName

func (s *MutableSession) AppName() string

func (*MutableSession) Events

func (s *MutableSession) Events() session.Events

func (*MutableSession) Get

func (s *MutableSession) Get(key string) (any, error)

func (*MutableSession) ID

func (s *MutableSession) ID() string

func (*MutableSession) LastUpdateTime

func (s *MutableSession) LastUpdateTime() time.Time

func (*MutableSession) Set

func (s *MutableSession) Set(key string, value any) error

func (*MutableSession) State

func (s *MutableSession) State() session.State

func (*MutableSession) UserID

func (s *MutableSession) UserID() string

type MutableState

type MutableState interface {
	Set(string, any) error
}

Jump to

Keyboard shortcuts

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