stats

package
v0.9.5 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	Name *string
	// contains filtered or unexported fields
}

type ClientState

type ClientState uint8
const (
	None ClientState = iota
	Connected
	Fallback
	Authorized
	Simple
	Obfuscated
	Middleproxy
)

type Stats

type Stats struct {
	// contains filtered or unexported fields
}

func New

func New() *Stats

func (*Stats) AllocClient

func (s *Stats) AllocClient() *StatsHandle

func (*Stats) AsString

func (s *Stats) AsString() string

type StatsHandle

type StatsHandle struct {
	// contains filtered or unexported fields
}

func (*StatsHandle) Close

func (sh *StatsHandle) Close()

func (*StatsHandle) SetAuthorized

func (sh *StatsHandle) SetAuthorized(name string)

func (*StatsHandle) SetConnected

func (sh *StatsHandle) SetConnected(cliSock *net.TCPConn)

func (*StatsHandle) SetState

func (sh *StatsHandle) SetState(state ClientState)

Jump to

Keyboard shortcuts

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