user

package
v1.1.3 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2015 License: MIT Imports: 7 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateRandomInt64InRange

func GenerateRandomInt64InRange(base int64, delta int) int64

func Int64Hash

func Int64Hash(value int64) []byte

Types

type CounterHash

type CounterHash interface {
	Hash(key []byte, counter int64) []byte
}

func NewTimeHash

func NewTimeHash(baseHash StringHash) CounterHash

type HMACHash

type HMACHash struct {
}

func (HMACHash) Hash

func (h HMACHash) Hash(key []byte, data []byte) []byte

type RandomInt64InRange

type RandomInt64InRange func(base int64, delta int) int64

type StringHash

type StringHash interface {
	Hash(key []byte, data []byte) []byte
}

type TimeHash

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

func (TimeHash) Hash

func (h TimeHash) Hash(key []byte, counter int64) []byte

type TimedUserSet

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

func (*TimedUserSet) AddUser

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

func (*TimedUserSet) GetUser

func (us *TimedUserSet) GetUser(userHash []byte) (vmess.User, int64, bool)

type UserSet

type UserSet interface {
	AddUser(user vmess.User) error
	GetUser(timeHash []byte) (vmess.User, int64, bool)
}

func NewTimedUserSet

func NewTimedUserSet() UserSet

Directories

Path Synopsis
testing

Jump to

Keyboard shortcuts

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