stat

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: May 30, 2020 License: Apache-2.0 Imports: 2 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Authenticator

type Authenticator interface {
	CheckHash(hash string) bool
	io.Closer
}

func NewMixedAuthenticator

func NewMixedAuthenticator() (Authenticator, error)

type ConfigUserAuthenticator

type ConfigUserAuthenticator struct {
	Authenticator
}

func (*ConfigUserAuthenticator) CheckHash

func (a *ConfigUserAuthenticator) CheckHash(hash string) bool

func (*ConfigUserAuthenticator) Close

func (a *ConfigUserAuthenticator) Close() error

type MemoryTrafficMeter

type MemoryTrafficMeter struct {
	TrafficMeter
	// contains filtered or unexported fields
}

func (*MemoryTrafficMeter) Count

func (m *MemoryTrafficMeter) Count(sent, recv uint64)

func (*MemoryTrafficMeter) Query

func (m *MemoryTrafficMeter) Query() (uint64, uint64)

type MixedAuthenticator

type MixedAuthenticator struct {
	Authenticator
	// contains filtered or unexported fields
}

func (*MixedAuthenticator) CheckHash

func (a *MixedAuthenticator) CheckHash(hash string) bool

func (*MixedAuthenticator) Close

func (a *MixedAuthenticator) Close() error

type TrafficMeter

type TrafficMeter interface {
	Count(sent uint64, recv uint64)
	Query() (sent uint64, recv uint64)
	io.Closer
}

Jump to

Keyboard shortcuts

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