Documentation ¶
Index ¶
- type Character
- type Store
- func (s *Store) ClearCharacters()
- func (s *Store) ClearWishes()
- func (s *Store) Close()
- func (s *Store) GetBirthdays() map[string]Character
- func (s *Store) GetBirthdaysRecent(scope time.Duration) map[string]Character
- func (s *Store) GetBirthdaysUpcoming(scope time.Duration) map[string]Character
- func (s *Store) GetCharacters() map[string]Character
- func (s *Store) GetWishesToday(characterID string) map[string]Wish
- func (s *Store) Open(name string)
- func (s *Store) PutWish(characterID string, data Wish)
- func (s *Store) UpdateCharacter(key string, data Character)
- type Wish
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Character ¶
type Character struct { Name string `json:"name"` Description string `json:"description"` CoverURL string `json:"coverURL"` ProfileURL string `json:"profileURL"` Birthday time.Time `json:"birthday"` }
Character represents a chracter
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
Store wraps app database
func (*Store) ClearCharacters ¶
func (s *Store) ClearCharacters()
ClearCharacters clears character bucket
func (*Store) GetBirthdays ¶
GetBirthdays gets all characters with birthdays today
func (*Store) GetBirthdaysRecent ¶
GetBirthdaysRecent gets all characters with birthdays today
func (*Store) GetBirthdaysUpcoming ¶
GetBirthdaysUpcoming gets all characters with birthdays today
func (*Store) GetCharacters ¶
GetCharacters gets all characters
func (*Store) GetWishesToday ¶
GetWishesToday gets all wishes for a character today
func (*Store) UpdateCharacter ¶
UpdateCharacter updates character by name
Click to show internal directories.
Click to hide internal directories.