1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2026-04-14 17:49:15 -04:00

introduce in-memory user

This commit is contained in:
Darien Raymond
2018-08-27 00:11:32 +02:00
parent b4d065610a
commit 54e1bb96cc
22 changed files with 212 additions and 167 deletions

View File

@@ -38,7 +38,7 @@ type Dialer interface {
// UserManager is the interface for Inbounds and Outbounds that can manage their users.
type UserManager interface {
// AddUser adds a new user.
AddUser(context.Context, *protocol.User) error
AddUser(context.Context, *protocol.MemoryUser) error
// RemoveUser removes a user by email.
RemoveUser(context.Context, string) error