Documentation ¶
Overview ¶
Package null provides a session manager that has no memory.
Index ¶
- type NullStore
- func (s *NullStore) AddHistory(username, input, reply string)
- func (s *NullStore) Clear(username string)
- func (s *NullStore) ClearAll()
- func (s *NullStore) Freeze(username string) error
- func (s *NullStore) Get(username string, name string) (string, error)
- func (s *NullStore) GetAll() map[string]*sessions.UserData
- func (s *NullStore) GetAny(username string) (*sessions.UserData, error)
- func (s *NullStore) GetHistory(username string) (*sessions.History, error)
- func (s *NullStore) GetLastMatch(username string) (string, error)
- func (s *NullStore) Init(username string) *sessions.UserData
- func (s *NullStore) Set(username string, vars map[string]string)
- func (s *NullStore) SetLastMatch(username, trigger string)
- func (s *NullStore) Thaw(username string, action sessions.ThawAction) error
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 (*NullStore) AddHistory ¶
func (*NullStore) GetHistory ¶
func (*NullStore) SetLastMatch ¶
Click to show internal directories.
Click to hide internal directories.