Documentation
¶
Index ¶
- type Accounts
- func (s Accounts) AddClan(serverKey string, clan types.Clan) error
- func (s Accounts) AddServer(snowflake string, server types.Server) error
- func (s Accounts) All(*[]types.Account) error
- func (s Accounts) GetByDiscordGuild(snowflake string, serverAccount *types.Account) error
- func (s Accounts) GetByServerKey(serverKey string, serverAccount *types.Account) error
- func (s Accounts) Remove(snowflake string) error
- func (s Accounts) RemoveClan(serverKey, clanTag string) error
- func (s Accounts) RemoveServer(snowflake, serverKey string) error
- func (s Accounts) SetClans(serverKey string, clans []types.Clan) error
- func (s Accounts) UpdateServer(snowflake string, server types.Server) error
- func (s Accounts) UpsertBase(types.BaseAccount) error
- type Chats
- type DiscordAuths
- type Json
- func (j *Json) Accounts() storage.AccountsStore
- func (j *Json) Chats() storage.ChatsStore
- func (j Json) Close()
- func (j *Json) Copy() storage.Storage
- func (j *Json) DiscordAuths() storage.DiscordAuthsStore
- func (j *Json) Init()
- func (j *Json) RaidAlerts() storage.RaidAlertsStore
- func (j *Json) Users() storage.UsersStore
- type RaidAlerts
- type Users
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Accounts ¶
type Accounts struct{}
func (Accounts) GetByDiscordGuild ¶
func (Accounts) GetByServerKey ¶
func (Accounts) RemoveClan ¶
func (Accounts) RemoveServer ¶
func (Accounts) UpdateServer ¶
func (Accounts) UpsertBase ¶
func (s Accounts) UpsertBase(types.BaseAccount) error
type Chats ¶
type Chats struct{}
A Chats does nothing
type DiscordAuths ¶
type DiscordAuths struct{}
A DiscordAuths implements db.DiscordAuthsStore
func (DiscordAuths) Get ¶
func (d DiscordAuths) Get(discordName string, da *types.DiscordAuth) error
func (DiscordAuths) GetSnowflake ¶
func (d DiscordAuths) GetSnowflake(snowflake string, da *types.DiscordAuth) error
func (DiscordAuths) Remove ¶
func (d DiscordAuths) Remove(si types.SteamInfo) error
Remove implements db.DiscordAuthsStore.Remove
func (DiscordAuths) Upsert ¶
func (d DiscordAuths) Upsert(da types.DiscordAuth) error
Upsert implements db.DiscordAuthsStore.Upsert
type Json ¶
type Json struct {
// contains filtered or unexported fields
}
func (*Json) Accounts ¶
func (j *Json) Accounts() storage.AccountsStore
func (*Json) DiscordAuths ¶
func (j *Json) DiscordAuths() storage.DiscordAuthsStore
func (*Json) RaidAlerts ¶
func (j *Json) RaidAlerts() storage.RaidAlertsStore
func (*Json) Users ¶
func (j *Json) Users() storage.UsersStore
type RaidAlerts ¶
type RaidAlerts struct {
// contains filtered or unexported fields
}
A RaidAlerts implements storage.RaidAlertsStore
func (RaidAlerts) AddInfo ¶
func (r RaidAlerts) AddInfo(alertIn time.Duration, ed types.EntityDeath) error
AddInfo implements storage.RaidAlertsStore.AddInfo
Click to show internal directories.
Click to hide internal directories.