github.com/eagleql/xray-core@v1.4.4/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 }