Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
Crypto *crypto.Config `yaml:"crypto"`
Orderers []ConnectionConfig `yaml:"orderers"`
Discovery DiscoveryConfig `yaml:"discovery"`
// peer pool for local configuration without gossip discovery
MSP []MSPConfig `yaml:"msp"`
Pool PoolConfig `yaml:"pool"`
// if tls is enabled maps TLS certs to discovered peers
EndpointsMap []Endpoint `yaml:"endpoints_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 DiscoveryChaincode ¶ added in v0.7.0
type DiscoveryChannel ¶ added in v0.7.0
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 TlsConfig ¶
type TlsConfig struct {
Enabled bool `yaml:"enabled"`
SkipVerify bool `yaml:"skip_verify"`
// Cert take precedence over CertPath
Cert []byte `yaml:"cert"`
CertPath string `yaml:"cert_path"`
// Key take precedence over KeyPath
Key []byte `yaml:"key"`
KeyPath string `yaml:"key_path"`
// CACert take precedence over CACertPath
CACert []byte `yaml:"ca_cert"`
CACertPath string `yaml:"ca_cert_path"`
}
Click to show internal directories.
Click to hide internal directories.