usermanager

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2018 License: Apache-2.0 Imports: 7 Imported by: 10

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type UserManager

type UserManager interface {
	AddWhiteListUser(user types.WhiteListUser) error
	DelWhiteListUser(user types.WhiteListUser) error
	InWhiteList(owner common.Address) bool
	IsWhiteListOpen() bool
}

type UserManagerImpl

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

func NewUserManager

func NewUserManager(options *UserManagerOptions, rds *dao.RdsService) *UserManagerImpl

func (*UserManagerImpl) AddWhiteListUser

func (m *UserManagerImpl) AddWhiteListUser(user types.WhiteListUser) error

func (*UserManagerImpl) DelWhiteListUser

func (m *UserManagerImpl) DelWhiteListUser(user types.WhiteListUser) error

func (*UserManagerImpl) InWhiteList

func (m *UserManagerImpl) InWhiteList(owner common.Address) bool

func (*UserManagerImpl) IsWhiteListOpen

func (m *UserManagerImpl) IsWhiteListOpen() bool

type UserManagerOptions

type UserManagerOptions struct {
	WhiteListOpen            bool
	WhiteListCacheExpireTime int64
	WhiteListCacheCleanTime  int64
}

type WhiteListCache

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

func (*WhiteListCache) AddWhiteListUser

func (c *WhiteListCache) AddWhiteListUser(user types.WhiteListUser) error

func (*WhiteListCache) DelWhiteListUser

func (c *WhiteListCache) DelWhiteListUser(user types.WhiteListUser) error

func (*WhiteListCache) InWhiteList

func (c *WhiteListCache) InWhiteList(address common.Address) bool

Jump to

Keyboard shortcuts

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