config

package
v1.1.3 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2021 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PubK_SM = `` /* 177-byte string literal not displayed */

	PubK_R1 = `` /* 1093-byte string literal not displayed */

	Pubk_K1 = `` /* 173-byte string literal not displayed */

	PubK_SM_test = `` /* 177-byte string literal not displayed */

	PubK_R1_test = `` /* 1093-byte string literal not displayed */

	Pubk_K1_test = `` /* 173-byte string literal not displayed */

)

Variables

This section is empty.

Functions

func SetTest added in v1.0.4

func SetTest()

Enable test net parameters set test gateway public key

Types

type Config

type Config struct {
	// contains filtered or unexported fields
}

func NewConfig

func NewConfig(api, userCode, appCode, puk, prk, mspDir, cert string) (*Config, error)

Create a profile information api: address of the node gateway userCode: user's code appCode: DApp code puk : public key cert of node gateway prk : private key of DApp cert cert:https cert path

func NewConfig2 added in v1.0.4

func NewConfig2(api, userCode, appCode, prk, mspDir string) (*Config, error)

Create a profile information api: address of the node gateway userCode: user's code appCode: DApp code prk : private key of DApp cert

func NewConfigFormFile added in v1.1.2

func NewConfigFormFile(path string) (*Config, error)

NewConfigFormFile get config from file, if path is empty ,use the ./conf/config.json file in the root directory

func NewMockCitaConfig added in v1.0.4

func NewMockCitaConfig() (*Config, error)

func NewMockFabricConfig added in v1.0.4

func NewMockFabricConfig() (*Config, error)

func NewMockFiscoConfig added in v1.0.4

func NewMockFiscoConfig() (*Config, error)

func NewMockXuperchainConfig added in v1.0.4

func NewMockXuperchainConfig() (*Config, error)

func (*Config) GetAppCert

func (c *Config) GetAppCert() certInfo

func (*Config) GetAppInfo

func (c *Config) GetAppInfo() appInfo

func (*Config) GetCert

func (c *Config) GetCert() string

func (*Config) GetKSPath

func (c *Config) GetKSPath() string

func (*Config) GetNodeApi

func (c *Config) GetNodeApi() string

func (*Config) GetReqHeader

func (c *Config) GetReqHeader() base.ReqHeader

func (*Config) GetUSPath

func (c *Config) GetUSPath() string

func (*Config) Init

func (c *Config) Init() error

Jump to

Keyboard shortcuts

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