Versions in this module Expand all Collapse all v1 v1.0.0 Jul 11, 2017 Changes in this version + var ClientHandshakeNotImplError = errors.New(...) + var MissingServerConfigError = errors.New("core/comm: `serverConfig` cannot be nil") + var OverrrideHostnameNotSupportedError = errors.New(...) + func ClientKeepaliveOptions() []grpc.DialOption + func GetPeerTestingAddress(port string) string + func InitTLSForPeer() credentials.TransportCredentials + func MaxRecvMsgSize() int + func MaxSendMsgSize() int + func NewClientConnectionWithAddress(peerAddress string, block bool, tslEnabled bool, ...) (*grpc.ClientConn, error) + func NewServerTransportCredentials(serverConfig *tls.Config) credentials.TransportCredentials + func ServerKeepaliveOptions() []grpc.ServerOption + func SetKeepaliveOptions(ka KeepaliveOptions) + func SetMaxRecvMsgSize(size int) + func SetMaxSendMsgSize(size int) + func TLSEnabled() bool + type CASupport struct + AppRootCAsByChain map[string][][]byte + ClientRootCAs [][]byte + OrdererRootCAsByChain map[string][][]byte + ServerRootCAs [][]byte + func GetCASupport() *CASupport + func (cas *CASupport) GetClientRootCAs() (appRootCAs, ordererRootCAs [][]byte) + func (cas *CASupport) GetDeliverServiceCredentials(channelID string) (credentials.TransportCredentials, error) + func (cas *CASupport) GetPeerCredentials(tlsCert tls.Certificate) credentials.TransportCredentials + func (cas *CASupport) GetServerRootCAs() (appRootCAs, ordererRootCAs [][]byte) + type ConnectionFactory func(endpoint string) (*grpc.ClientConn, error) + type ConnectionProducer interface + NewConnection func() (*grpc.ClientConn, string, error) + UpdateEndpoints func(endpoints []string) + func NewConnectionProducer(factory ConnectionFactory, endpoints []string) ConnectionProducer + type GRPCServer interface + Address func() string + AppendClientRootCAs func(clientRoots [][]byte) error + Listener func() net.Listener + RemoveClientRootCAs func(clientRoots [][]byte) error + Server func() *grpc.Server + ServerCertificate func() tls.Certificate + SetClientRootCAs func(clientRoots [][]byte) error + Start func() error + Stop func() + TLSEnabled func() bool + func NewGRPCServer(address string, secureConfig SecureServerConfig) (GRPCServer, error) + func NewGRPCServerFromListener(listener net.Listener, secureConfig SecureServerConfig) (GRPCServer, error) + type KeepaliveOptions struct + ClientKeepaliveTime int + ClientKeepaliveTimeout int + ServerKeepaliveTime int + ServerKeepaliveTimeout int + type SecureServerConfig struct + ClientRootCAs [][]byte + RequireClientCert bool + ServerCertificate []byte + ServerKey []byte + ServerRootCAs [][]byte + UseTLS bool