null

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package null provides a session manager that has no memory.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NullStore

type NullStore struct{}

Type NullStore implements a memory store that has no memory.

It's mostly useful for the unit tests. With this memory store in place, RiveScript is unable to maintain any user variables at all.

func New

func New() *NullStore

New creates a new NullStore.

func (*NullStore) AddHistory

func (s *NullStore) AddHistory(username, input, reply string)

func (*NullStore) Clear

func (s *NullStore) Clear(username string)

func (*NullStore) ClearAll

func (s *NullStore) ClearAll()

func (*NullStore) Freeze

func (s *NullStore) Freeze(username string) error

func (*NullStore) Get

func (s *NullStore) Get(username string, name string) (string, error)

func (*NullStore) GetAll

func (s *NullStore) GetAll() map[string]*sessions.UserData

func (*NullStore) GetAny

func (s *NullStore) GetAny(username string) (*sessions.UserData, error)

func (*NullStore) GetHistory

func (s *NullStore) GetHistory(username string) (*sessions.History, error)

func (*NullStore) GetLastMatch

func (s *NullStore) GetLastMatch(username string) (string, error)

func (*NullStore) Init

func (s *NullStore) Init(username string) *sessions.UserData

func (*NullStore) Set

func (s *NullStore) Set(username string, vars map[string]string)

func (*NullStore) SetLastMatch

func (s *NullStore) SetLastMatch(username, trigger string)

func (*NullStore) Thaw

func (s *NullStore) Thaw(username string, action sessions.ThawAction) error

Jump to

Keyboard shortcuts

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