Files
trojan-go/stat/stat.go
T
2020-03-20 19:48:16 +08:00

21 lines
288 B
Go

package stat
import (
"io"
"os"
"github.com/withmandala/go-log"
)
var logger = log.New(os.Stdout).WithColor()
type TrafficMeter interface {
Count(passwordHash string, upload int, download int)
io.Closer
}
type Authenticator interface {
CheckHash(hash string) bool
io.Closer
}