topevents

package
v2.49.3 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2024 License: MIT Imports: 7 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Command = &commands.YAGCommand{
	Cooldown:     2,
	CmdCategory:  commands.CategoryDebug,
	Name:         "topevents",
	Description:  "Shows gateway event processing stats for all or one shard, bot owner only",
	HideFromHelp: true,
	Arguments: []*dcmd.ArgDef{
		{Name: "shard", Type: dcmd.Int},
	},
	RunFunc: util.RequireOwner(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