Versions in this module Expand all Collapse all v1 v1.0.0 Mar 3, 2023 Changes in this version + func MSPID(cfg fab.EndpointConfig, org string) (string, bool) + func NetworkPeerConfig(cfg fab.EndpointConfig, key string) (*fab.NetworkPeer, error) + func OptsFromPeerConfig(peerCfg *fab.PeerConfig) []options.Opt + func SearchPeerConfigFromURL(cfg fab.EndpointConfig, url string) (*fab.PeerConfig, error) + func WithCertificate(value *x509.Certificate) options.Opt + func WithConnectTimeout(value time.Duration) options.Opt + func WithFailFast(value bool) options.Opt + func WithHostOverride(value string) options.Opt + func WithInsecure() options.Opt + func WithKeepAliveParams(value keepalive.ClientParameters) options.Opt + func WithParentContext(value context.Context) options.Opt + type CachingConnector struct + func NewCachingConnector(sweepTime time.Duration, idleTime time.Duration) *CachingConnector + func (cc *CachingConnector) Close() + func (cc *CachingConnector) DialContext(ctx context.Context, target string, opts ...grpc.DialOption) (*grpc.ClientConn, error) + func (cc *CachingConnector) ReleaseConn(conn *grpc.ClientConn) + type GRPCConnection struct + func NewConnection(ctx fabcontext.Client, url string, opts ...options.Opt) (*GRPCConnection, error) + func (c *GRPCConnection) ClientConn() *grpc.ClientConn + func (c *GRPCConnection) Close() + func (c *GRPCConnection) Closed() bool + func (c *GRPCConnection) Context() fabcontext.Client + func (c *GRPCConnection) TLSCertHash() []byte + type StreamConnection struct + func NewStreamConnection(ctx fabcontext.Client, chConfig fab.ChannelCfg, streamProvider StreamProvider, ...) (*StreamConnection, error) + func (c *StreamConnection) ChannelConfig() fab.ChannelCfg + func (c *StreamConnection) Close() + func (c *StreamConnection) Stream() grpc.ClientStream + type StreamProvider func(conn *grpc.ClientConn) (grpc.ClientStream, func(), error)