package
1.12.3-warp-verify6
Repository: https://github.com/ava-labs/avalanchego.git
Documentation: pkg.go.dev

# Functions

gRPC clients created from this ClientConn will wait forever for the Server to become Ready.
EnsureValidResponseCode ensures that the response code is valid otherwise it returns 500.
GetGRPCErrorFromHTTPResponse takes an HandleSimpleHTTPResponse as input and returns a gRPC error.
GetHTTPHeader takes an http.Header as input and returns a slice of Header.
GetHTTPResponseFromError takes an gRPC error as input and returns a gRPC HandleSimpleHTTPResponse.
MergeHTTPHeader takes a slice of Header and merges with http.Header map.
NewListener returns a TCP listener listening against the next available port on the system bound to localhost.
NewServer will return a gRPC server with server options as defined by DefaultServerOptions.
Serve will start a gRPC server and block until it errors or is shutdown.
TimestampAsTime validates timestamppb timestamp and returns time.Time.
TimestampFromTime converts time.Time to a timestamppb timestamp.
WithChainStreamInterceptor takes a list of stream client interceptors which are added to the dial options.
WithChainUnaryInterceptor takes a list of unary client interceptors which are added to the dial options.
WithStreamInterceptor adds a single stream interceptor to the gRPC server options.
WithUnaryInterceptor adds a single unary interceptor to the gRPC server options.

# Variables

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

# Structs

DialOptions are options which can be applied to a gRPC client in addition to the defaults set by DefaultDialOptions.
No description provided by the author
No description provided by the author

# Type aliases

No description provided by the author
ServerOption are options which can be applied to a gRPC server in addition to the defaults set by DefaultServerOPtions.