Versions in this module Expand all Collapse all v2 v2.0.1 Nov 23, 2023 Changes in this version + var KeyNotFound = errors.New("conversation key not found") + func StateKey(ctx *ext.Context, strategy KeyStrategy) string + type InMemoryStorage struct + func NewInMemoryStorage(strategy KeyStrategy) *InMemoryStorage + func (c *InMemoryStorage) Delete(ctx *ext.Context) error + func (c *InMemoryStorage) Get(ctx *ext.Context) (*State, error) + func (c *InMemoryStorage) Set(ctx *ext.Context, state State) error + type KeyStrategy int64 + const KeyStrategyChat + const KeyStrategySender + const KeyStrategySenderAndChat + type State struct + Key string + type Storage interface + Delete func(ctx *ext.Context) error + Get func(ctx *ext.Context) (*State, error) + Set func(ctx *ext.Context, state State) error