Help us shape the future of Go! Take the 2026 Go Developer Survey

gosfmessagecounter

package module
v0.0.0-...-d2da412 Latest Latest
Warning

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

Go to latest
Published: May 17, 2019 License: MIT Imports: 8 Imported by: 1

README

gosf-message-counter

GOSF plugin for counting messages per second

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ConsoleClear func()

ConsoleClear erases all text in the server console

Functions

func GetMessagesPerSecond

func GetMessagesPerSecond() float64

GetMessagesPerSecond returns the last recorded number of messages per second

func Tick

func Tick()

Tick records that a single message has been processed

Types

type Plugin

type Plugin struct{}

Plugin is the aspect oriented element required by the modular plugin framework

func (Plugin) Activate

func (p Plugin) Activate(app *f.AppSettings)

Activate is an aspect-oriented modular plugin requirement

func (Plugin) Deactivate

func (p Plugin) Deactivate(app *f.AppSettings)

Deactivate is an aspect-oriented modular plugin requirement

Jump to

Keyboard shortcuts

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