Documentation ¶
Overview ¶
Package stats counts and keeps track of session stats. These are per-domain bytes transferred and total bytes transferred.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetForServer ¶
func GetForServer(serverID string) (payload *serverStats)
GetForServer returns the json-able stats package for the given server. If there are no stats, nil will be returned.
Types ¶
type Conn ¶
Conn is to be used as an intermediate link in a chain of net.Conn objects. It inspects requests and responses and derives stats from them.
func NewConn ¶
NewConn creates a Conn. serverID can be anything that uniquely identifies the server; it will be passed to GetForServer() when retrieving the accumulated stats.
Click to show internal directories.
Click to hide internal directories.