handler

package
v1.3.8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 17, 2021 License: Apache-2.0 Imports: 10 Imported by: 0

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

type ByPosition []*proto.Role

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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL