package
1.1.0-preview
Repository: https://github.com/ckeyer/fabric.git
Documentation: pkg.go.dev

# Functions

AddPemToCertPool adds PEM-encoded certs to a cert pool.
ClientKeepaliveOptions returns the gRPC keepalive options for clients.
GetCredentialSupport returns the singleton CredentialSupport instance.
No description provided by the author
InitTLSForPeer returns TLS credentials for peer.
No description provided by the author
MaxRecvMsgSize returns the maximum message size in bytes that gRPC clients and servers can receive.
MaxSendMsgSize returns the maximum message size in bytes that gRPC clients and servers can send.
NewChaincodeClientConnectionWithAddress Returns a new chaincode type grpc.ClientConn to the given address.
NewChaincodeGRPCServer creates a new implementation of a chaincode GRPCServer given alisten address.
NewClientConnectionWithAddress Returns a new grpc.ClientConn to the given address.
NewConnectionProducer creates a new ConnectionProducer with given endpoints and connection factory.
NewGRPCServer creates a new implementation of a GRPCServer given alisten address.
NewGRPCServerFromListener creates a new implementation of a GRPCServer givenan existing net.Listener instance using default keepalive.
NewServerTransportCredentials returns a new initialized grpc/credentials.TransportCredentials.
ServerKeepaliveOptions returns the gRPC keepalive options for servers.
SetKeepaliveOptions sets the gRPC keepalive options for both clients and servers.
SetMaxRecvMsgSize sets the maximum message size in bytes that gRPC clients and servers can receive.
SetMaxSendMsgSize sets the maximum message size in bytes that gRPC clients and servers can send.
TLSEnabled return cached value for "peer.tls.enabled" configuration value.

# Variables

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Structs

CASupport type manages certificate authorities scoped by channel.
CredentialSupport type manages credentials used for gRPC client connections.
KeepAliveOptions is used to set the gRPC keepalive settings for both clients and servers.
A SecureServerConfig structure is used to configure security (e.g.

# Interfaces

ConnectionProducer produces connections out of a set of predefined endpoints.
GRPCServer defines an interface representing a GRPC-based server.

# Type aliases

ConnectionFactory creates a connection to a certain endpoint.