Documentation
¶
Index ¶
- Constants
- func SetFSM(rule *Rule)
- type Rule
- type RuleManager
- func (rm *RuleManager) All(chainId []byte) (bool, []byte)
- func (rm *RuleManager) BindPre(chainId, ruleAddress string) (bool, []byte)
- func (rm *RuleManager) ChangeStatus(ruleAddress, trigger string, chainId []byte) (bool, []byte)
- func (rm *RuleManager) CountAll(chainId []byte) (bool, []byte)
- func (rm *RuleManager) CountAvailable(chainId []byte) (bool, []byte)
- func (rm *RuleManager) GetAvailableRuleAddress(chainId, chainType string) (bool, []byte)
- func (rm *RuleManager) IsAvailable(chainId, ruleAddress string) (bool, []byte)
- func (rm *RuleManager) QueryById(ruleAddress string, chainId []byte) (bool, []byte)
- type RuleMgr
Constants ¶
View Source
const (
RULEPREFIX = "rule-"
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type RuleManager ¶
func (*RuleManager) All ¶
func (rm *RuleManager) All(chainId []byte) (bool, []byte)
Appchains returns all appchains
func (*RuleManager) BindPre ¶
func (rm *RuleManager) BindPre(chainId, ruleAddress string) (bool, []byte)
BindPre checks if the rule address can bind with appchain id and record rule
func (*RuleManager) ChangeStatus ¶
func (rm *RuleManager) ChangeStatus(ruleAddress, trigger string, chainId []byte) (bool, []byte)
func (*RuleManager) CountAvailable ¶
func (rm *RuleManager) CountAvailable(chainId []byte) (bool, []byte)
CountAvailable counts all rules of one appchain including available
func (*RuleManager) GetAvailableRuleAddress ¶
func (rm *RuleManager) GetAvailableRuleAddress(chainId, chainType string) (bool, []byte)
func (*RuleManager) IsAvailable ¶
func (rm *RuleManager) IsAvailable(chainId, ruleAddress string) (bool, []byte)
Click to show internal directories.
Click to hide internal directories.