session

package
v0.0.0-...-76a311b Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2024 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MemorySession

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

func (*MemorySession) GetSlot

func (session *MemorySession) GetSlot(slot string) interface{}

func (*MemorySession) GetSlots

func (session *MemorySession) GetSlots() map[string]interface{}

func (*MemorySession) GetStepPath

func (session *MemorySession) GetStepPath() []int

func (*MemorySession) GetTask

func (session *MemorySession) GetTask() string

func (*MemorySession) SetSlot

func (session *MemorySession) SetSlot(slot string, value interface{})

func (*MemorySession) SetStepPath

func (session *MemorySession) SetStepPath(path []int)

func (*MemorySession) SetTask

func (session *MemorySession) SetTask(task string)

type MemorySessionProvider

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

func NewMemorySessionProvider

func NewMemorySessionProvider() *MemorySessionProvider

func (*MemorySessionProvider) GetSession

func (provider *MemorySessionProvider) GetSession(sessionId string) *MemorySession

type Session

type Session interface {
	GetSlot(slot string) interface{}
	SetSlot(slot string, value interface{})
	GetSlots() map[string]interface{}
	SetTask(task string)
	GetTask() string
	SetStepPath(path []int)
	GetStepPath() []int
}

type SessionData

type SessionData struct {
	Task     string
	Slots    map[string]interface{}
	StepPath []int
}

type SessionProvider

type SessionProvider interface {
	GetSession(sessionId string) Session
}

Jump to

Keyboard shortcuts

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