Documentation ¶
Index ¶
- func NewChainConfig()
- type ChainConfig
- func (c *ChainConfig) Delete(chainResourceId string) error
- func (c *ChainConfig) Get(chainResourceId string) ([]*common.BcosConfig, error)
- func (c *ChainConfig) Save(bcosConfig *common.BcosConfig, operate common.Operate) error
- func (c *ChainConfig) SetState(chainConfig *common.BcosConfig, state bool, stateMessage string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ChainConfig ¶
type ChainConfig struct {
// contains filtered or unexported fields
}
ChainConfig 链配置管理模块结构体
var ChainConfigManager *ChainConfig
ChainConfigManager 链配置管理模块全局对象
func (*ChainConfig) Delete ¶
func (c *ChainConfig) Delete(chainResourceId string) error
Delete 删除链配置
@receiver c @param chainResourceId @return error
func (*ChainConfig) Get ¶
func (c *ChainConfig) Get(chainResourceId string) ([]*common.BcosConfig, error)
Get 获取链配置
@receiver c @param chainResourceId @return []*common.BcosConfig @return error
func (*ChainConfig) Save ¶
func (c *ChainConfig) Save(bcosConfig *common.BcosConfig, operate common.Operate) error
Save 保存链配置
@receiver c @param bcosConfig @param operate @return error
func (*ChainConfig) SetState ¶
func (c *ChainConfig) SetState(chainConfig *common.BcosConfig, state bool, stateMessage string) error
SetState 设置链配置状态
@receiver c @param chainConfig @param state @param stateMessage @return error
Click to show internal directories.
Click to hide internal directories.