v0.2.2 Latest Latest

This package is not in the latest version of its module.

Go to latest
Published: Aug 14, 2018 License: MIT Imports: 10 Imported by: 1




This section is empty.


This section is empty.


This section is empty.


type Accounts

type Accounts struct{}

func (Accounts) AddClan

func (s Accounts) AddClan(serverKey string, clan types.Clan) error

func (Accounts) AddServer

func (s Accounts) AddServer(snowflake string, server types.Server) error

func (Accounts) All

func (s Accounts) All(*[]types.Account) error

func (Accounts) GetByDiscordGuild

func (s Accounts) GetByDiscordGuild(snowflake string, serverAccount *types.Account) error

func (Accounts) GetByServerKey

func (s Accounts) GetByServerKey(serverKey string, serverAccount *types.Account) error

func (Accounts) Remove

func (s Accounts) Remove(snowflake string) error

func (Accounts) RemoveClan

func (s Accounts) RemoveClan(serverKey, clanTag string) error

func (Accounts) RemoveServer

func (s Accounts) RemoveServer(snowflake, serverKey string) error

func (Accounts) SetClans

func (s Accounts) SetClans(serverKey string, clans []types.Clan) error

func (Accounts) UpdateServer

func (s Accounts) UpdateServer(snowflake string, server types.Server) error

func (Accounts) UpsertBase

func (s Accounts) UpsertBase(types.BaseAccount) error

type Chats

type Chats struct{}

A Chats does nothing

func (Chats) GetNext

func (c Chats) GetNext(serverKey string, chatMessage *types.ChatMessage) error

func (Chats) Log

func (c Chats) Log(cm types.ChatMessage) error

Log 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 NewJson

func NewJson(dataPath string) *Json

func (*Json) Accounts

func (j *Json) Accounts() storage.AccountsStore

func (*Json) Chats

func (j *Json) Chats() storage.ChatsStore

Chats creates a dummy Chats

func (Json) Close

func (j Json) Close()

Close does nothing

func (*Json) Copy

func (j *Json) Copy() storage.Storage

Copy returns itself

func (*Json) DiscordAuths

func (j *Json) DiscordAuths() storage.DiscordAuthsStore

func (*Json) Init

func (j *Json) Init()

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

func (RaidAlerts) GetReady

func (r RaidAlerts) GetReady(alerts *[]types.RaidAlert) error

GetReady implements storage.RaidAlertsStore.GetReady

func (RaidAlerts) Remove

func (r RaidAlerts) Remove(alert types.RaidAlert) error

Remove implements storage.RaidAlertsStore.Remove

type Users

type Users struct{}

A Users implements db.UsersStore

func (Users) Get

func (u Users) Get(steamID uint64, user *types.User) error

Get implements db.UsersStore.Get

func (Users) UpsertBase

func (u Users) UpsertBase(base types.BaseUser) error

UpsertBase implements db.UsersStore.UpsertBase

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL