Documentation ¶
Index ¶
- func DeliverableSendChannels(d protocol.Deliverable) []int
- func EncodeDelimitedChannels(channels []int) string
- func HumanizeChannelString(channels []int) string
- func Initialize()
- func ParseDelimitedChannels(s string) (c []int)
- func WriteCache(e *Entity)
- type Entity
- func (e *Entity) CanReceiveType(t protocol.MessageType) bool
- func (e *Entity) CanSendType(t protocol.MessageType) bool
- func (entity *Entity) CreateEntity() (sql.Result, error)
- func (entity *Entity) Delete() error
- func (entity *Entity) Embed() *discordgo.MessageEmbed
- func (entity *Entity) GetDisplayName() string
- func (entity *Entity) Insert() error
- func (entity *Entity) Propagate() error
- func (entity *Entity) QDelete() (sql.Result, error)
- func (e *Entity) ReceiveIntersectsWith(chans []int) bool
- func (e *Entity) SendIntersectsWith(chans []int) bool
- func (entity *Entity) SetDisplayName(name string) error
- func (entity *Entity) SetReceiveChannels(channels []int) error
- func (entity *Entity) SetSendChannels(channels []int) error
- func (entity *Entity) UpdateEntity() (sql.Result, error)
- type EntityCache
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeliverableSendChannels ¶
func DeliverableSendChannels(d protocol.Deliverable) []int
func EncodeDelimitedChannels ¶
func HumanizeChannelString ¶
func Initialize ¶
func Initialize()
func ParseDelimitedChannels ¶
func WriteCache ¶
func WriteCache(e *Entity)
Types ¶
type Entity ¶
type Entity struct { ID string DisplayName string ReceiveChannels []int SendChannels []int DisabledReceiveTypes []int DisabledSendTypes []int CreatedAt time.Time }
func FetchEntities ¶
func FetchEntity ¶
func (*Entity) CanReceiveType ¶
func (e *Entity) CanReceiveType(t protocol.MessageType) bool
func (*Entity) CanSendType ¶
func (e *Entity) CanSendType(t protocol.MessageType) bool
func (*Entity) Embed ¶
func (entity *Entity) Embed() *discordgo.MessageEmbed
func (*Entity) GetDisplayName ¶
func (*Entity) ReceiveIntersectsWith ¶
func (*Entity) SendIntersectsWith ¶
func (*Entity) SetDisplayName ¶
func (*Entity) SetReceiveChannels ¶
func (*Entity) SetSendChannels ¶
type EntityCache ¶
var Cache *EntityCache
Source Files ¶
Click to show internal directories.
Click to hide internal directories.