usermanager

package
v0.0.0-...-491e088 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2019 License: Apache-2.0 Imports: 8 Imported by: 9

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 *config.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 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