Documentation
¶
Index ¶
- Constants
- func SetTest()
- type Config
- func NewConfig(api, userCode, appCode, puk, prk, mspDir, cert string) (*Config, error)
- func NewConfig2(api, userCode, appCode, prk, mspDir string) (*Config, error)
- func NewConfigFormFile(path string) (*Config, error)
- func NewMockCitaConfig() (*Config, error)
- func NewMockFabricConfig() (*Config, error)
- func NewMockFiscoConfig() (*Config, error)
- func NewMockXuperchainConfig() (*Config, error)
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 ¶
Types ¶
type Config ¶
type Config struct {
// contains filtered or unexported fields
}
func NewConfig ¶
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
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
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 NewMockFabricConfig ¶ added in v1.0.4
func NewMockFiscoConfig ¶ added in v1.0.4
func NewMockXuperchainConfig ¶ added in v1.0.4
func (*Config) GetAppCert ¶
func (c *Config) GetAppCert() certInfo
func (*Config) GetAppInfo ¶
func (c *Config) GetAppInfo() appInfo
func (*Config) GetNodeApi ¶
func (*Config) GetReqHeader ¶
Click to show internal directories.
Click to hide internal directories.