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