Versions in this module Expand all Collapse all v0 v0.2.2 Aug 14, 2018 v0.2.1 Aug 14, 2018 Changes in this version + type Accounts struct + 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 struct + func (c Chats) GetNext(serverKey string, chatMessage *types.ChatMessage) error + func (c Chats) Log(cm types.ChatMessage) error + type Config struct + Database string + DialAddress string + type DiscordAuths struct + func (d DiscordAuths) Get(discordName string, da *types.DiscordAuth) error + func (d DiscordAuths) GetSnowflake(snowflake string, da *types.DiscordAuth) error + func (d DiscordAuths) Remove(si types.SteamInfo) error + func (d DiscordAuths) Upsert(da types.DiscordAuth) error + type MongoDb struct + func NewMongoDB(mc Config) (*MongoDb, error) + 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 struct + func (r RaidAlerts) AddInfo(alertIn time.Duration, ed types.EntityDeath) error + func (r RaidAlerts) GetReady(alerts *[]types.RaidAlert) error + func (r RaidAlerts) Remove(alert types.RaidAlert) error + type Users struct + func (u Users) Get(steamID uint64, user *types.User) error + func (u Users) UpsertBase(user types.BaseUser) error