chain_config

package
v2.3.1 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewChainConfig

func NewChainConfig()

NewChainConfig 链配置管理模块初始化

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

Jump to

Keyboard shortcuts

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