mocks

package
v1.1.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 10, 2015 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockUserSet

type MockUserSet struct {
	Users      []vmess.User
	UserHashes map[string]int
	Timestamps map[string]int64
}

func (*MockUserSet) AddUser

func (us *MockUserSet) AddUser(user vmess.User) error

func (*MockUserSet) GetUser

func (us *MockUserSet) GetUser(userhash []byte) (vmess.User, int64, bool)

type StaticUser

type StaticUser struct {
	// contains filtered or unexported fields
}

func (*StaticUser) ID

func (this *StaticUser) ID() *vmess.ID

func (*StaticUser) Level

func (this *StaticUser) Level() vmess.UserLevel

type StaticUserSet

type StaticUserSet struct {
}

func (*StaticUserSet) AddUser

func (us *StaticUserSet) AddUser(user vmess.User) error

func (*StaticUserSet) GetUser

func (us *StaticUserSet) GetUser(userhash []byte) (vmess.User, int64, bool)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL