CallContentSubtype returns a CallOption that will set the content-subtype for a call.
CallCustomCodec behaves like ForceCodec, but accepts a grpc.Codec instead of an encoding.Codec.
ChainStreamInterceptor returns a ServerOption that specifies the chained interceptor for streaming RPCs.
ChainUnaryInterceptor returns a ServerOption that specifies the chained interceptor for unary RPCs.
ClientSupportedCompressors returns compressor names advertised by the client via grpc-accept-encoding header.
Code returns the error code for err if it was produced by the rpc system.
ConnectionTimeout returns a ServerOption that sets the timeout for connection establishment (up to and including HTTP/2 handshaking) for all new connections.
Creds returns a ServerOption that sets credentials for server connections.
CustomCodec returns a ServerOption that sets a codec for message marshaling and unmarshaling.
Dial calls DialContext(context.Background(), target, opts...).
DialContext calls NewClient and then exits idle mode.
ErrorDesc returns the error description of err if it was produced by the rpc system.
Errorf returns an error containing an error code and a description; Errorf returns nil if c is OK.
FailFast is the opposite of WaitForReady.
FailOnNonTempDialError returns a DialOption that specifies if gRPC fails on non-temporary dial errors.
ForceCodec returns a CallOption that will set codec to be used for all request and response messages for a call.
ForceCodecV2 returns a CallOption that will set codec to be used for all request and response messages for a call.
ForceServerCodec returns a ServerOption that sets a codec for message marshaling and unmarshaling.
ForceServerCodecV2 is the equivalent of ForceServerCodec, but for the new CodecV2 interface.
Header returns a CallOptions that retrieves the header metadata for a unary RPC.
HeaderTableSize returns a ServerOption that sets the size of dynamic header table for stream.
InitialConnWindowSize returns a ServerOption that sets window size for a connection.
InitialWindowSize returns a ServerOption that sets window size for stream.
InTapHandle returns a ServerOption that sets the tap handle for all the server transport to be created.
Invoke sends the RPC request on the wire and returns after response is received.
KeepaliveEnforcementPolicy returns a ServerOption that sets keepalive enforcement policy for the server.
KeepaliveParams returns a ServerOption that sets keepalive and max-age parameters for the server.
MaxCallRecvMsgSize returns a CallOption which sets the maximum message size in bytes the client can receive.
MaxCallSendMsgSize returns a CallOption which sets the maximum message size in bytes the client can send.
MaxConcurrentStreams returns a ServerOption that will apply a limit on the number of concurrent streams to each ServerTransport.
MaxHeaderListSize returns a ServerOption that sets the max (uncompressed) size of header list that the server is prepared to accept.
MaxMsgSize returns a ServerOption to set the max message size in bytes the server can receive.
MaxRecvMsgSize returns a ServerOption to set the max message size in bytes the server can receive.
MaxRetryRPCBufferSize returns a CallOption that limits the amount of memory used for buffering this RPC's requests for retry purposes.
MaxSendMsgSize returns a ServerOption to set the max message size in bytes the server can send.
Method returns the method string for the server context.
MethodFromServerStream returns the method string for the input stream.
NewClient creates a new gRPC "channel" for the target URI provided.
NewClientStream is a wrapper for ClientConn.NewStream.
NewContextWithServerTransportStream creates a new context from ctx and attaches stream to it.
NewGZIPCompressor creates a Compressor based on GZIP.
NewGZIPCompressorWithLevel is like NewGZIPCompressor but specifies the gzip compression level instead of assuming DefaultCompression.
NewGZIPDecompressor creates a Decompressor based on GZIP.
NewServer creates a gRPC server which has no service registered and has not started to accept requests yet.
NumStreamWorkers returns a ServerOption that sets the number of worker goroutines that should be used to process incoming streams.
OnFinish returns a CallOption that configures a callback to be called when the call completes.
Peer returns a CallOption that retrieves peer information for a unary RPC.
PerRPCCredentials returns a CallOption that sets credentials.PerRPCCredentials for a call.
ReadBufferSize lets you set the size of read buffer, this determines how much data can be read at most for one read syscall.
RPCCompressor returns a ServerOption that sets a compressor for outbound messages.
RPCDecompressor returns a ServerOption that sets a decompressor for inbound messages.
SendHeader sends header metadata.
ServerTransportStreamFromContext returns the ServerTransportStream saved in ctx.
SetHeader sets the header metadata to be sent from the server to the client.
SetSendCompressor sets a compressor for outbound messages from the server.
SetTrailer sets the trailer metadata that will be sent when an RPC returns.
SharedWriteBuffer allows reusing per-connection transport write buffer.
StaticMethod returns a CallOption which specifies that a call is being made to a method that is static, which means the method is known at compile time and doesn't change at runtime.
StatsHandler returns a ServerOption that sets the stats handler for the server.
StreamInterceptor returns a ServerOption that sets the StreamServerInterceptor for the server.
Trailer returns a CallOptions that retrieves the trailer metadata for a unary RPC.
UnaryInterceptor returns a ServerOption that sets the UnaryServerInterceptor for the server.
UnknownServiceHandler returns a ServerOption that allows for adding a custom unknown service handler.
UseCompressor returns a CallOption which sets the compressor used when sending the request.
WaitForHandlers cause Stop to wait until all outstanding method handlers have exited before returning.
WaitForReady configures the RPC's behavior when the client is in TRANSIENT_FAILURE, which occurs when all addresses fail to connect.
WithAuthority returns a DialOption that specifies the value to be used as the :authority pseudo-header and as the server name in authentication handshake.
WithBackoffConfig configures the dialer to use the provided backoff parameters after connection failures.
WithBackoffMaxDelay configures the dialer to use the provided maximum delay when backing off after failed connection attempts.
WithBlock returns a DialOption which makes callers of Dial block until the underlying connection is up.
WithChainStreamInterceptor returns a DialOption that specifies the chained interceptor for streaming RPCs.
WithChainUnaryInterceptor returns a DialOption that specifies the chained interceptor for unary RPCs.
WithChannelzParentID returns a DialOption that specifies the channelz ID of current ClientConn's parent.
WithCodec returns a DialOption which sets a codec for message marshaling and unmarshaling.
WithCompressor returns a DialOption which sets a Compressor to use for message compression.
WithConnectParams configures the ClientConn to use the provided ConnectParams for creating and maintaining connections to servers.
WithContextDialer returns a DialOption that sets a dialer to create connections.
WithCredentialsBundle returns a DialOption to set a credentials bundle for the ClientConn.WithCreds.
WithDecompressor returns a DialOption which sets a Decompressor to use for incoming message decompression.
WithDefaultCallOptions returns a DialOption which sets the default CallOptions for calls over the connection.
WithDefaultServiceConfig returns a DialOption that configures the default service config, which will be used in cases where:
1.
WithDialer returns a DialOption that specifies a function to use for dialing network addresses.
WithDisableHealthCheck disables the LB channel health checking for all SubConns of this ClientConn.
WithDisableRetry returns a DialOption that disables retries, even if the service config enables them.
WithDisableServiceConfig returns a DialOption that causes gRPC to ignore any service config provided by the resolver and provides a hint to the resolver to not fetch service configs.
WithIdleTimeout returns a DialOption that configures an idle timeout for the channel.
WithInitialConnWindowSize returns a DialOption which sets the value for initial window size on a connection.
WithInitialWindowSize returns a DialOption which sets the value for initial window size on a stream.
WithInsecure returns a DialOption which disables transport security for this ClientConn.
WithKeepaliveParams returns a DialOption that specifies keepalive parameters for the client transport.
WithLocalDNSResolution forces local DNS name resolution even when a proxy is specified in the environment.
WithMaxCallAttempts returns a DialOption that configures the maximum number of attempts per call (including retries and hedging) using the channel.
WithMaxHeaderListSize returns a DialOption that specifies the maximum (uncompressed) size of header list that the client is prepared to accept.
WithMaxMsgSize returns a DialOption which sets the maximum message size the client can receive.
WithNoProxy returns a DialOption which disables the use of proxies for this ClientConn.
WithPerRPCCredentials returns a DialOption which sets credentials and places auth state on each outbound RPC.
WithReadBufferSize lets you set the size of read buffer, this determines how much data can be read at most for each read syscall.
WithResolvers allows a list of resolver implementations to be registered locally with the ClientConn without needing to be globally registered via resolver.Register.
WithReturnConnectionError returns a DialOption which makes the client connection return a string containing both the last connection error that occurred and the context.DeadlineExceeded error.
WithSharedWriteBuffer allows reusing per-connection transport write buffer.
WithStatsHandler returns a DialOption that specifies the stats handler for all the RPCs and underlying network connections in this ClientConn.
WithStreamInterceptor returns a DialOption that specifies the interceptor for streaming RPCs.
WithTimeout returns a DialOption that configures a timeout for dialing a ClientConn initially.
WithTransportCredentials returns a DialOption which configures a connection level security credentials (e.g., TLS/SSL).
WithUnaryInterceptor returns a DialOption that specifies the interceptor for unary RPCs.
WithUserAgent returns a DialOption that specifies a user agent string for all the RPCs.
WithWriteBufferSize determines how much data can be batched before doing a write on the wire.
WriteBufferSize determines how much data can be batched before doing a write on the wire.