package
1.1.0
Repository: https://github.com/amil-sajeev/poc.git
Documentation: pkg.go.dev

# Functions

AddPemToCertPool adds PEM-encoded certs to a cert pool.
ClientKeepaliveOptions returns gRPC keepalive options for clients.
DefaultKeepaliveOptions returns sane default keepalive settings for gRPC servers and clients.
ExtractCertificateHashFromContext extracts the hash of the certificate from the given context.
GetCredentialSupport returns the singleton CredentialSupport instance.
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.
NewBindingInspector returns a BindingInspector according to whether mutualTLS is configured or not, and according to a function that extracts TLS certificate hashes from proto messages.
NewClientConnectionWithAddress Returns a new grpc.ClientConn to the given address.
NewConnectionProducer creates a new ConnectionProducer with given endpoints and connection factory.
NewGRPCClient creates a new implementation of GRPCClient given an address and client configuration.
NewGRPCServer creates a new implementation of a GRPCServer given a listen address.
NewGRPCServerFromListener creates a new implementation of a GRPCServer given an existing net.Listener instance using default keepalive.
NewServerTransportCredentials returns a new initialized grpc/credentials.TransportCredentials.
ServerKeepaliveOptions returns gRPC keepalive options for server.
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.
ClientConfig defines the parameters for configuring a GRPCClient instance.
CredentialSupport type manages credentials used for gRPC client connections.
KeepAliveOptions is used to set the gRPC keepalive settings for both clients and servers.
SecureOptions defines the security parameters (e.g.
ServerConfig defines the parameters for configuring a GRPCServer instance.

# Interfaces

ConnectionProducer produces connections out of a set of predefined endpoints.
No description provided by the author
GRPCServer defines an interface representing a GRPC-based server.

# Type aliases

BindingInspector receives as parameters a gRPC context and an Envelope, and verifies whether the message contains an appropriate binding to the context.
CertHashExtractor extracts a certificate from a proto.Message message.
ConnectionFactory creates a connection to a certain endpoint.