impl

package
v0.0.0-...-d9e9996 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2019 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Manager

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

Manager manages all ACL releated data, providing read/write interface for ACL table

func NewACLManager

func NewACLManager(model *xmodel.XModel) (*Manager, error)

NewACLManager create instance of ACLManager

func (*Manager) GetAccountACL

func (mgr *Manager) GetAccountACL(accountName string) (*pb.Acl, error)

GetAccountACL get acl of an account

func (*Manager) GetAccountACLWithConfirmed

func (mgr *Manager) GetAccountACLWithConfirmed(accountName string) (*pb.Acl, bool, error)

GetAccountACLWithConfirmed implements reading ACL of an account with confirmed state

func (*Manager) GetContractMethodACL

func (mgr *Manager) GetContractMethodACL(contractName string, methodName string) (*pb.Acl, error)

GetContractMethodACL get acl of contract method

func (*Manager) GetContractMethodACLWithConfirmed

func (mgr *Manager) GetContractMethodACLWithConfirmed(contractName string, methodName string) (*pb.Acl, bool, error)

GetContractMethodACLWithConfirmed implements reading ACL of a contract method with confirmed state

Jump to

Keyboard shortcuts

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