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(*[]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 struct + func (c Chats) GetNext(serverKey string, chatMessage *types.ChatMessage) error + func (c Chats) Log(cm types.ChatMessage) error + 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 Json struct + func NewJson(dataPath string) *Json + func (j *Json) Accounts() storage.AccountsStore + func (j *Json) Chats() storage.ChatsStore + 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 + func (j Json) Close() + 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(base types.BaseUser) error