Esempio n. 1
0
func nullSession() *sessions.UserData {
	return &sessions.UserData{
		Variables: map[string]string{},
		History:   sessions.NewHistory(),
		LastMatch: "",
	}
}
Esempio n. 2
0
// defaultSession initializes the default session variables for a user.
// This mostly just means the topic is set to "random" and structs
// are initialized.
func defaultSession() *sessions.UserData {
	return &sessions.UserData{
		Variables: map[string]string{
			"topic": "random",
		},
		LastMatch: "",
		History:   sessions.NewHistory(),
	}
}
Esempio n. 3
0
func (s *NullStore) GetHistory(username string) (*sessions.History, error) {
	return sessions.NewHistory(), nil
}