Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsAccount ¶
IsAccount check the type of name return : -1 if name is invalid
1 if name is account 0 if name is AK
func ValidRawAccount ¶
ValidRawAccount validate account number
Types ¶
type AccountACL ¶
type AccountACL interface { GetAccountACL(accountName string) (*pb.Acl, error) GetAccountACLWithConfirmed(accountName string) (*pb.Acl, bool, error) }
AccountACL is interface to read/write accounts' ACL
type ContractACL ¶
type ContractACL interface { GetContractMethodACL(contractName string, methodName string) (*pb.Acl, error) GetContractMethodACLWithConfirmed(contractName string, methodName string) (*pb.Acl, bool, error) }
ContractACL is interface to read/write contracts' ACL
type ManagerInterface ¶
type ManagerInterface interface { AccountACL ContractACL }
ManagerInterface defines the interface of ACL Manager
Click to show internal directories.
Click to hide internal directories.