mirror of
https://github.com/XTLS/Xray-core.git
synced 2025-06-14 20:39:36 +03:00
v1.0.0
This commit is contained in:
11
common/protocol/account.go
Normal file
11
common/protocol/account.go
Normal file
@ -0,0 +1,11 @@
|
||||
package protocol
|
||||
|
||||
// Account is a user identity used for authentication.
|
||||
type Account interface {
|
||||
Equals(Account) bool
|
||||
}
|
||||
|
||||
// AsAccount is an object can be converted into account.
|
||||
type AsAccount interface {
|
||||
AsAccount() (Account, error)
|
||||
}
|
Reference in New Issue
Block a user