Documentation
¶
Index ¶
- type CAConfig
- type Config
- type ConnectionConfig
- type CryptoConfig
- type CryptoSuiteOpts
- type DiscoveryChaincode
- type DiscoveryChannel
- type DiscoveryConfig
- type DiscoveryConfigOpts
- type Duration
- type GRPCConfig
- type GRPCKeepAliveConfig
- type GRPCRetryConfig
- type MSPConfig
- type PoolConfig
- type TLSCertsMapperConfig
- type TlsConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CAConfig ¶
type CAConfig struct {
Crypto CryptoConfig `yaml:"crypto"`
Host string `yaml:"host"`
Tls TlsConfig `yaml:"tls"`
}
type Config ¶
type Config struct {
Crypto CryptoConfig `yaml:"crypto"`
// Deprecated: use Orderers.
Orderer *ConnectionConfig `yaml:"orderer"`
Orderers []ConnectionConfig `yaml:"orderers"`
Discovery DiscoveryConfig `yaml:"discovery"`
MSP []MSPConfig `yaml:"msp"`
Pool PoolConfig `yaml:"pool"`
// if tls is enabled maps TLS certs to discovered peers
TLSCertsMap []TLSCertsMapperConfig `yaml:"tls_certs_map"`
}
func NewYamlConfig ¶
type ConnectionConfig ¶
type ConnectionConfig struct {
Host string `yaml:"host"`
Tls TlsConfig `yaml:"tls"`
GRPC GRPCConfig `yaml:"grpc"`
Timeout Duration `yaml:"timeout"`
}
type CryptoConfig ¶
type CryptoConfig struct {
Type string `yaml:"type"`
Options CryptoSuiteOpts `yaml:"options"`
}
type CryptoSuiteOpts ¶
type CryptoSuiteOpts map[string]interface{}
type DiscoveryChaincode ¶
type DiscoveryChannel ¶
type DiscoveryChannel struct {
Name string `json:"channel_name" yaml:"name"`
Chaincodes []DiscoveryChaincode `json:"chaincodes" yaml:"chaincodes"`
Orderers []ConnectionConfig `json:"orderers" yaml:"orderers"`
}
type DiscoveryConfig ¶
type DiscoveryConfig struct {
Type string `yaml:"type"`
// connection to local MSP which will be used for gossip discovery
Connection *ConnectionConfig `yaml:"connection"`
// configuration of channels/chaincodes in local(from config) discovery type
Options DiscoveryConfigOpts `yaml:"options"`
}
type DiscoveryConfigOpts ¶
type DiscoveryConfigOpts map[string]interface{}
DiscoveryConfigOpts - channel configuration for local config contains []DiscoveryChannel
type Duration ¶
func (*Duration) UnmarshalYAML ¶
type GRPCConfig ¶
type GRPCConfig struct {
KeepAlive *GRPCKeepAliveConfig `yaml:"keep_alive"`
Retry *GRPCRetryConfig `yaml:"retry"`
}
type GRPCKeepAliveConfig ¶
type GRPCRetryConfig ¶
type MSPConfig ¶
type MSPConfig struct {
Name string `yaml:"name"`
Endorsers []ConnectionConfig `yaml:"endorsers"`
}
type PoolConfig ¶
type PoolConfig struct {
DeliverTimeout Duration `yaml:"deliver_timeout"`
}
type TLSCertsMapperConfig ¶
Click to show internal directories.
Click to hide internal directories.