github.com/v2fly/v2ray-core/v5@v5.16.2-0.20240507031116-8191faa6e095/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  }