Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthSaver ¶
type AuthSaver struct {
DiscordAuths DiscordAuthsStore
Users UsersStore
AuthSuccess chan types.DiscordAuth
// contains filtered or unexported fields
}
An AuthSaver saves Discord -> Rust user authentications
func NewAuthSaver ¶
func NewAuthSaver(da DiscordAuthsStore, u UsersStore, as chan types.DiscordAuth, done chan struct{}) *AuthSaver
NewAuthSaver creates a new AuthSaver
type DiscordAuthsStore ¶
type RaidAlerter ¶
type RaidAlerter struct {
RaidStore RaidStore
RaidNotify chan types.RaidAlert
SleepTime time.Duration
// contains filtered or unexported fields
}
A RaidAlerter sends notifications on raids
func NewRaidAlerter ¶
func NewRaidAlerter(ral RaidStore, rnc chan types.RaidAlert, done chan struct{}) *RaidAlerter
NewRaidAlerter constructs a RaidAlerter
func (*RaidAlerter) Run ¶
func (r *RaidAlerter) Run()
Run checks for raids that need to be alerted and sends them out through the RaidNotify channel. It runs in a loop.
type Server ¶
A Server runs the HTTP server, notification channels, and DB writing.
func NewServer ¶
func NewServer(sc *ServerConfig, channels ServerChannels, options ServerOptions) *Server
NewServer creates a Server
type ServerAuth ¶
type ServerAuth struct {
// contains filtered or unexported fields
}
type ServerChannels ¶
type ServerChannels struct {
RaidNotify chan types.RaidAlert
DiscordAuth chan types.DiscordAuth
AuthSuccess chan types.DiscordAuth
ChatChan chan types.ChatMessage
}
type ServerConfig ¶
ServerConfig contains the base Server configuration
type ServerOptions ¶
type UsersStore ¶
Click to show internal directories.
Click to hide internal directories.