mocks

package
v0.14.1 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 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      []config.User
	UserHashes map[string]int
	Timestamps map[string]int64
}

func (*MockUserSet) AddUser

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

func (*MockUserSet) GetUser

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

type StaticUser

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

func (*StaticUser) ID

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

func (*StaticUser) Level

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

type StaticUserSet

type StaticUserSet struct {
}

func (*StaticUserSet) AddUser

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

func (*StaticUserSet) GetUser

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

Jump to

Keyboard shortcuts

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