Versions in this module Expand all Collapse all v0 v0.0.2 Jan 22, 2021 v0.0.1 Jan 22, 2021 Changes in this version + func BuildConfigEndpointFromOptions(opts ...interface{}) (fab.EndpointConfig, error) + func ConfigFromBackend(coreBackend ...core.ConfigBackend) (fab.EndpointConfig, error) + func IsEndpointConfigFullyOverridden(c *EndpointConfigOptions) bool + func UpdateMissingOptsWithDefaultConfig(c *EndpointConfigOptions, d fab.EndpointConfig) fab.EndpointConfig + type BalancerType string + const Random + const RoundRobin + type ChannelEndpointConfig struct + Orderers []string + Peers map[string]PeerChannelConfig + Policies ChannelPolicies + type ChannelPolicies struct + Discovery DiscoveryPolicy + EventService EventServicePolicy + QueryChannelConfig QueryChannelConfigPolicy + Selection SelectionPolicy + type ClientConfig struct + Organization string + TLSCerts ClientTLSConfig + type ClientTLSConfig struct + Client endpoint.TLSKeyPair + type DiscoveryPolicy struct + MaxTargets int + MinResponses int + RetryOpts retry.Opts + type EndpointConfig struct + func (c *EndpointConfig) ChannelConfig(name string) *fab.ChannelEndpointConfig + func (c *EndpointConfig) ChannelOrderers(name string) []fab.OrdererConfig + func (c *EndpointConfig) ChannelPeers(name string) []fab.ChannelPeer + func (c *EndpointConfig) CryptoConfigPath() string + func (c *EndpointConfig) NetworkConfig() *fab.NetworkConfig + func (c *EndpointConfig) NetworkPeers() []fab.NetworkPeer + func (c *EndpointConfig) OrdererConfig(nameOrURL string) (*fab.OrdererConfig, bool, bool) + func (c *EndpointConfig) OrderersConfig() []fab.OrdererConfig + func (c *EndpointConfig) PeerConfig(nameOrURL string) (*fab.PeerConfig, bool) + func (c *EndpointConfig) PeersConfig(org string) ([]fab.PeerConfig, bool) + func (c *EndpointConfig) ResetNetworkConfig() error + func (c *EndpointConfig) TLSCACertPool() commtls.CertPool + func (c *EndpointConfig) TLSClientCerts() []tls.Certificate + func (c *EndpointConfig) Timeout(tType fab.TimeoutType) time.Duration + type EndpointConfigOptions struct + type EventServicePolicy struct + Balancer BalancerType + BlockHeightLagThreshold int + MinBlockHeightResolverMode string + PeerMonitor string + PeerMonitorPeriod time.Duration + ReconnectBlockHeightLagThreshold int + ResolverStrategy string + type MatchConfig struct + IgnoreEndpoint bool + MappedHost string + MappedName string + Pattern string + SSLTargetOverrideURLSubstitutionExp string + URLSubstitutionExp string + type OrdererConfig struct + GRPCOptions map[string]interface{} + TLSCACerts endpoint.TLSConfig + URL string + type OrganizationConfig struct + CertificateAuthorities []string + CryptoPath string + MSPID string + Peers []string + Users map[string]endpoint.TLSKeyPair + type PeerChannelConfig struct + ChaincodeQuery bool + EndorsingPeer bool + EventSource bool + LedgerQuery bool + type PeerConfig struct + GRPCOptions map[string]interface{} + TLSCACerts endpoint.TLSConfig + URL string + type QueryChannelConfigPolicy struct + MaxTargets int + MinResponses int + RetryOpts retry.Opts + type SelectionPolicy struct + Balancer BalancerType + BlockHeightLagThreshold int + SortingStrategy SelectionSortingStrategy + type SelectionSortingStrategy string + const Balanced + const BlockHeightPriority