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: 9 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.FabricConfig, error)

Get 获取链配置

@receiver c
@param chainResourceId
@return []*common.FabricConfig
@return error

func (*ChainConfig) Save

func (c *ChainConfig) Save(fabricConfig *common.FabricConfig, operate common.Operate) error

Save 保存链配置

@receiver c
@param fabricConfig
@param operate
@return error

func (*ChainConfig) SetState

func (c *ChainConfig) SetState(chainConfig *common.FabricConfig, 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