Files
Xray-core/common/protocol/account.go
T

15 lines
307 B
Go
Raw Normal View History

2020-11-25 19:01:53 +08:00
package protocol
2024-11-03 00:25:23 -04:00
import "google.golang.org/protobuf/proto"
2020-11-25 19:01:53 +08:00
// Account is a user identity used for authentication.
type Account interface {
Equals(Account) bool
2024-11-03 00:25:23 -04:00
ToProto() proto.Message
2020-11-25 19:01:53 +08:00
}
// AsAccount is an object can be converted into account.
type AsAccount interface {
AsAccount() (Account, error)
}