topevents

package
v1.5.1 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2018 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Command = &commands.YAGCommand{
	Cooldown:             2,
	CmdCategory:          commands.CategoryDebug,
	HideFromCommandsPage: true,
	Name:                 "topevents",
	Description:          "Shows gateway event processing stats for all or one shard",
	HideFromHelp:         true,
	Arguments: []*dcmd.ArgDef{
		{Name: "shard", Type: dcmd.Int},
	},
	RunFunc: cmdFuncTopEvents,
}

Functions

This section is empty.

Types

type DiscordEvtEntry

type DiscordEvtEntry struct {
	Name      string
	Total     int64
	PerSecond float64
}

type DiscordEvtEntrySortable

type DiscordEvtEntrySortable []*DiscordEvtEntry

func (DiscordEvtEntrySortable) Len

func (d DiscordEvtEntrySortable) Len() int

func (DiscordEvtEntrySortable) Less

func (d DiscordEvtEntrySortable) Less(i, j int) bool

func (DiscordEvtEntrySortable) Swap

func (d DiscordEvtEntrySortable) Swap(i, j int)

Jump to

Keyboard shortcuts

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