mirror of
https://github.com/p4gefau1t/trojan-go.git
synced 2024-04-21 12:21:34 +00:00
21 lines
288 B
Go
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
|
|
}
|