config

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

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:节点网关的地址 userCode:用户编号 appCode:应用编号 puk :节点网关的公钥证书 prk :应用的私钥证书 cert:https证书的文件路径

func NewMock1Config

func NewMock1Config() (*Config, error)

NewMockConfig

func NewMockConfig

func NewMockConfig() (*Config, error)

NewMockConfig

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