Documentation
¶
Index ¶
Constants ¶
View Source
const ( Titan = iota + 1 Hunter Warlock )
Variables ¶
View Source
var ( ErrNoOpenSpots = errors.New("no spots are open for this event") ErrUserAlreadyJoined = errors.New("you are already in this event") ErrUserNotParticipant = errors.New("user is not a participant") ErrUserIsLeader = errors.New("you are the fireteam leader of this event") ErrEventIsCancelled = errors.New("event is cancelled") )
Functions ¶
This section is empty.
Types ¶
type Event ¶
type Event struct {
ID Snowflake
Activity Activity
Status EventStatus
Description string
Participants []*User
}
func (*Event) AddParticipant ¶
func (*Event) RemoveParticipant ¶
type EventRepository ¶
type EventStatus ¶
type EventStatus int
const ( EventStatusSearching EventStatus = iota EventStatusFull EventStatusCancelled )
Directories
¶
| Path | Synopsis |
|---|---|
|
cmd
|
|
|
appcmds
command
|
|
|
sweeperbot
command
|
|
|
Package mock is a generated GoMock package.
|
Package mock is a generated GoMock package. |
Click to show internal directories.
Click to hide internal directories.