Files
trojan-go/stat/stat.go
T
2020-04-19 08:03:04 -04:00

17 lines
258 B
Go

package stat
import (
"io"
)
type TrafficMeter interface {
Count(passwordHash string, sent uint64, recv uint64)
Query(passwordHash string) (sent uint64, recv uint64)
io.Closer
}
type Authenticator interface {
CheckHash(hash string) bool
io.Closer
}