func nullSession() *sessions.UserData { return &sessions.UserData{ Variables: map[string]string{}, History: sessions.NewHistory(), LastMatch: "", } }
// 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(), } }
func (s *NullStore) GetHistory(username string) (*sessions.History, error) { return sessions.NewHistory(), nil }