Documentation ¶
Index ¶
- type MembChangeEvent
- type MemberChange
- type MemberRoleStatus
- type MemberStatus
- type MemberStatusRolesCollection
- type Message
- type Middleware
- type MongoConfig
- type MongoDB
- func (m *MongoDB) AddMembChange(mc *MemberChange) error
- func (m *MongoDB) AddMembStatus(ms *MemberStatus) error
- func (m *MongoDB) AddMembStatusRoles(mrsc *MemberStatusRolesCollection) error
- func (m *MongoDB) AddMessage(msg *Message) error
- func (m *MongoDB) AddReaction(r *Reaction) error
- func (m *MongoDB) AddStatusUpdate(su *StatusUpdate) error
- func (m *MongoDB) AddVoice(v *Voice) error
- func (m *MongoDB) Close()
- func (m *MongoDB) Connect(params interface{}) (err error)
- type Reaction
- type StatusUpdate
- type Voice
- type VoiceEvent
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MembChangeEvent ¶
type MembChangeEvent int
const ( ChangeJoined MembChangeEvent = iota ChangeLeft )
type MemberChange ¶
type MemberRoleStatus ¶
type MemberStatus ¶
type MemberStatusRolesCollection ¶
type MemberStatusRolesCollection struct { GuildID string Timestamp time.Time Roles []*MemberRoleStatus }
type Middleware ¶
type Middleware interface { Connect(params interface{}) error Close() AddMessage(msg *Message) error AddStatusUpdate(su *StatusUpdate) error AddMembChange(mc *MemberChange) error AddMembStatus(ms *MemberStatus) error AddMembStatusRoles(mrsc *MemberStatusRolesCollection) error AddReaction(r *Reaction) error AddVoice(v *Voice) error }
type MongoConfig ¶
type MongoDB ¶
type MongoDB struct {
// contains filtered or unexported fields
}
func (*MongoDB) AddMembChange ¶
func (m *MongoDB) AddMembChange(mc *MemberChange) error
func (*MongoDB) AddMembStatus ¶
func (m *MongoDB) AddMembStatus(ms *MemberStatus) error
func (*MongoDB) AddMembStatusRoles ¶
func (m *MongoDB) AddMembStatusRoles(mrsc *MemberStatusRolesCollection) error
func (*MongoDB) AddMessage ¶
func (*MongoDB) AddReaction ¶
func (*MongoDB) AddStatusUpdate ¶
func (m *MongoDB) AddStatusUpdate(su *StatusUpdate) error
type StatusUpdate ¶
Click to show internal directories.
Click to hide internal directories.