Documentation ¶
Index ¶
- type Store
- func (s *Store) ActiveUsersCharIDs() []int32
- func (s *Store) CreateUser(u *discord.User)
- func (s *Store) DiscordIDExists(did string) bool
- func (s *Store) Drop()
- func (s *Store) Init()
- func (s *Store) SetUserInactiveByDiscordID(did string)
- func (s *Store) UpdateUser(u *discord.User)
- func (s *Store) Users() []*discord.User
- func (s *Store) UsersWithValidToken() []*discord.User
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
Store implements discord.Store interface backed by postgresql and sqlx.
func (*Store) ActiveUsersCharIDs ¶
ActiveUsersCharIDs returns EveCharIDs of users with `Active` set to true.
func (*Store) CreateUser ¶
CreateUser stores a discord.User record.
func (*Store) DiscordIDExists ¶
DiscordIDExists checks if record with provided did exists.
func (*Store) SetUserInactiveByDiscordID ¶
SetUserInactiveByDiscordID sets `active` to false for provided did.
func (*Store) UpdateUser ¶
UpdateUser updates a discord.User record.
func (*Store) UsersWithValidToken ¶
UsersWithValidToken returns user records with `discord_token_is_valid` set to true.
Click to show internal directories.
Click to hide internal directories.