github.com/v2fly/v2ray-core/v4@v4.45.2/common/protocol/account.go (about) 1 package protocol 2 3 // Account is a user identity used for authentication. 4 type Account interface { 5 Equals(Account) bool 6 } 7 8 // AsAccount is an object can be converted into account. 9 type AsAccount interface { 10 AsAccount() (Account, error) 11 }