Documentation ¶
Index ¶
Constants ¶
View Source
const (
RoleCacheLength = time.Hour * 4
)
Variables ¶
This section is empty.
Functions ¶
func New ¶ added in v1.3.8
func New(discordServerId string, client discord.DiscordClient, roleMap discord.RoleMap, logger *zap.Logger, apiCalls prometheus.Counter) (proto.DiscordGatewayHandler, error)
Types ¶
type ByPosition ¶
Provide a mechanism to provide roles in order of position as reported by Discord
func (ByPosition) Len ¶
func (a ByPosition) Len() int
func (ByPosition) Less ¶
func (a ByPosition) Less(i, j int) bool
func (ByPosition) Swap ¶
func (a ByPosition) Swap(i, j int)
Click to show internal directories.
Click to hide internal directories.