Documentation ¶
Index ¶
- func NewChainConfig()
- type ChainConfig
- func (c *ChainConfig) Delete(chainResourceId string) error
- func (c *ChainConfig) Get(chainResourceId string) ([]*common.ChainmakerConfig, error)
- func (c *ChainConfig) Save(chainmakerConfig *common.ChainmakerConfig, operate common.Operate) error
- func (c *ChainConfig) SetState(chainConfig *common.ChainmakerConfig, 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.ChainmakerConfig, error)
Get 获取链配置
@receiver c @param chainResourceId @return []*common.ChainmakerConfig @return error
func (*ChainConfig) Save ¶
func (c *ChainConfig) Save(chainmakerConfig *common.ChainmakerConfig, operate common.Operate) error
Save 保存链配置
@receiver c @param chainmakerConfig @param operate @return error
func (*ChainConfig) SetState ¶
func (c *ChainConfig) SetState(chainConfig *common.ChainmakerConfig, 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.