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

27 lines
392 B
Go

package stat
type EmptyTrafficMeter struct {
TrafficMeter
}
func (t *EmptyTrafficMeter) Count(string, int, int) {
//do nothing
}
func (t *EmptyTrafficMeter) Close() error {
//do nothing
return nil
}
type EmptyAuthenticator struct {
Authenticator
}
func (a *EmptyAuthenticator) CheckHash(hash string) bool {
return true
}
func (a *EmptyAuthenticator) Close() error {
return nil
}