mirror of
https://github.com/p4gefau1t/trojan-go.git
synced 2024-04-21 12:21:34 +00:00
21 lines
275 B
Go
21 lines
275 B
Go
package stat
|
|
|
|
import (
|
|
"io"
|
|
"os"
|
|
|
|
"github.com/p4gefau1t/trojan-go/log"
|
|
)
|
|
|
|
var logger = log.New(os.Stdout)
|
|
|
|
type TrafficMeter interface {
|
|
Count(passwordHash string, sent int, recv int)
|
|
io.Closer
|
|
}
|
|
|
|
type Authenticator interface {
|
|
CheckHash(hash string) bool
|
|
io.Closer
|
|
}
|