CallContentSubtype returns a CallOption that will set the content-subtype for a call.
CallCustomCodec returns a CallOption that will set the given Codec to be used for all request and response messages for a call.
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 creates a client connection to the given target.
DialContext creates a client connection to the given target.
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 configures the action to take when an RPC is attempted on broken connections or unreachable servers.
FailOnNonTempDialError returns a DialOption that specifies if gRPC fails on non-temporary dial errors.
Header returns a CallOptions that retrieves the header metadata for a unary RPC.
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 the client can receive.
MaxCallSendMsgSize returns a CallOption which sets the maximum message size the client can send.
MaxConcurrentStreams returns a ServerOption that will apply a limit on the number of concurrent streams to each ServerTransport.
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.
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.
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.
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.
RegisterChannelz turns on channelz service.
RoundRobin returns a Balancer that selects addresses round-robin.
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.
SetTrailer sets the trailer metadata that will be sent when an RPC returns.
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.
WithAuthority returns a DialOption that specifies the value to be used as the :authority pseudo-header.
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.
WithBalancer returns a DialOption which sets a load balancer with the v1 API.
WithBalancerName sets the balancer that the ClientConn will be initialized with.
WithBlock returns a DialOption which makes caller of Dial blocks until the underlying connection is up.
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.
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.
WithDialer returns a DialOption that specifies a function to use for dialing network addresses.
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.
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.
WithMaxMsgSize returns a DialOption which sets the maximum message size the client can receive.
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.
WithServiceConfig returns a DialOption which has a channel to read the service configuration.
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.
WithWaitForHandshake blocks until the initial settings frame is received from the server before assigning RPCs to the connection.
WithWriteBufferSize lets you set the size of write buffer, this determines how much data can be batched before doing a write on the wire.
WriteBufferSize lets you set the size of write buffer, this determines how much data can be batched before doing a write on the wire.