Documentation ¶
Index ¶
Constants ¶
View Source
const Name = "STATISTICS"
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Authenticator ¶
type Authenticator interface { io.Closer AuthUser(hash string) (valid bool, user User) AddUser(hash string) error DelUser(hash string) error SetUserTraffic(hash string, sent, recv uint64) error SetUserSpeedLimit(hash string, send, recv int) error SetUserIPLimit(hash string, limit int) error ListUsers() []User }
func NewAuthenticator ¶
func NewAuthenticator(ctx context.Context, name string) (Authenticator, error)
type Persistencer ¶
type TrafficMeter ¶
type User ¶
type User interface { Metadata TrafficMeter IPRecorder }
Click to show internal directories.
Click to hide internal directories.