metrics

package
v0.0.0-...-cb9b391 Latest Latest
Warning

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

Go to latest
Published: Dec 26, 2020 License: MPL-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Counter

type Counter struct {
	Messages    []Message
	Visitors    []Visitor
	Connections int
	// contains filtered or unexported fields
}

func (*Counter) Connected

func (c *Counter) Connected()

func (*Counter) Disconnected

func (c *Counter) Disconnected()

func (*Counter) Message

func (c *Counter) Message(msgType string)

func (*Counter) MessagesLastHour

func (c *Counter) MessagesLastHour() int

func (*Counter) UniqueVisitors

func (c *Counter) UniqueVisitors() int

func (*Counter) Visitor

func (c *Counter) Visitor(address string)

type Message

type Message struct {
	Type     string
	Received time.Time
}

type Visitor

type Visitor struct {
	Address string
}

Jump to

Keyboard shortcuts

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