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(accounts *[]types.Account) error
- func (s Accounts) GetByDiscordGuild(key string, account *types.Account) error
- func (s Accounts) GetByServerKey(key string, account *types.Account) error
- func (s Accounts) Remove(key string) error
- func (s Accounts) RemoveClan(serverKey, clanTag string) error
- func (s Accounts) RemoveServer(snowflake, serverKey string) error
- func (s Accounts) SetClans(key string, clans []types.Clan) error
- func (s Accounts) UpdateServer(snowflake string, server types.Server) error
- func (s Accounts) UpsertBase(account types.BaseAccount) error
- type Chats
- type Config
- type DiscordAuths
- type MongoDb
- func (m MongoDb) Accounts() storage.AccountsStore
- func (m MongoDb) Chats() storage.ChatsStore
- func (m MongoDb) Close()
- func (m MongoDb) Copy() storage.Storage
- func (m MongoDb) DiscordAuths() storage.DiscordAuthsStore
- func (m MongoDb) Init()
- func (m MongoDb) RaidAlerts() storage.RaidAlertsStore
- func (m MongoDb) 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 {
// contains filtered or unexported fields
}
func (Accounts) GetByDiscordGuild ¶
func (Accounts) GetByServerKey ¶
func (Accounts) RemoveClan ¶
func (Accounts) RemoveServer ¶
func (Accounts) UpdateServer ¶
func (Accounts) UpsertBase ¶
func (s Accounts) UpsertBase(account types.BaseAccount) error
type Chats ¶
type Chats struct {
// contains filtered or unexported fields
}
A Chats implements db.ChatsStore
type Config ¶
type Config struct { DialAddress string // the mgo.Dial address Database string // the database name }
A Config is exactly what it sounds like.
type DiscordAuths ¶
type DiscordAuths struct {
// contains filtered or unexported fields
}
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 MongoDb ¶
type MongoDb struct {
// contains filtered or unexported fields
}
An MongoDb implements storage.Storage for MongoDB
func (MongoDb) Accounts ¶
func (m MongoDb) Accounts() storage.AccountsStore
ServerAccounts implements storage.Storage.ServerAccounts
func (MongoDb) Chats ¶
func (m MongoDb) Chats() storage.ChatsStore
Chats implements storage.Storage.Chats
func (MongoDb) DiscordAuths ¶
func (m MongoDb) DiscordAuths() storage.DiscordAuthsStore
DiscordAuths implements storage.Storage.DiscordAuths
func (MongoDb) RaidAlerts ¶
func (m MongoDb) RaidAlerts() storage.RaidAlertsStore
RaidAlerts implements storage.Storage.RaidAlerts
func (MongoDb) Users ¶
func (m MongoDb) Users() storage.UsersStore
Users implements storage.Storage.Users
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
Source Files ¶
Click to show internal directories.
Click to hide internal directories.