# Functions
AnnotateContext adds context information such as metadata from the request.
Bool converts the given string representation of a boolean value into bool.
BoolP parses the given string representation of a boolean value, and returns a pointer to a bool whose value is same as the parsed value.
DefaultHeaderMatcher is used to pass http request headers to/from gRPC context.
DefaultHTTPError is the default implementation of HTTPError.
DefaultHTTPProtoErrorHandler is an implementation of HTTPError.
DefaultOtherErrorHandler is the default implementation of OtherErrorHandler.
Duration converts the given string into a timestamp.Duration.
Float32 converts the given string representation of a floating point number into float32.
Float32P parses the given string representation of a floating point number, and returns a pointer to a float32 whose value is same as the parsed number.
Float64 converts the given string representation into representation of a floating point number into float64.
Float64P parses the given string representation of a floating point number, and returns a pointer to a float64 whose value is same as the parsed number.
ForwardResponseMessage forwards the message "resp" from gRPC server to REST client.
ForwardResponseStream forwards the stream from gRPC server to REST client.
HTTPStatusFromCode converts a gRPC error code into the corresponding HTTP response status.
Int32 converts the given string representation of an integer into int32.
Int32P parses the given string representation of an integer and returns a pointer to a int32 whose value is same as the parsed integer.
Int64 converts the given string representation of an integer into int64.
Int64P parses the given string representation of an integer and returns a pointer to a int64 whose value is same as the parsed integer.
MarshalerForRequest returns the inbound/outbound marshalers for this request.
MustPattern is a helper function which makes it easier to call NewPattern in variable initialization.
NewPattern returns a new Pattern from the given definition values.
NewServeMux returns a new ServeMux whose internal mapping is empty.
NewServerMetadataContext creates a new context with ServerMetadata.
PopulateFieldFromPath sets a value in a nested Protobuf structure.
PopulateQueryParameters populates "values" into "msg".
ServerMetadataFromContext returns the ServerMetadata in ctx.
String just returns the given string.
StringP returns a pointer to a string whose pointee is same as the given string value.
Timestamp converts the given RFC3339 formatted string into a timestamp.Timestamp.
Uint32 converts the given string representation of an integer into uint32.
Uint32P parses the given string representation of an integer and returns a pointer to a uint32 whose value is same as the parsed integer.
Uint64 converts the given string representation of an integer into uint64.
Uint64P parses the given string representation of an integer and returns a pointer to a uint64 whose value is same as the parsed integer.
WithForwardResponseOption returns a ServeMuxOption representing the forwardResponseOption.
WithIncomingHeaderMatcher returns a ServeMuxOption representing a headerMatcher for incoming request to gateway.
WithMarshalerOption returns a ServeMuxOption which associates inbound and outbound Marshalers to a MIME type in mux.
WithMetadata returns a ServeMuxOption for passing metadata to a gRPC context.
WithOutgoingHeaderMatcher returns a ServeMuxOption representing a headerMatcher for outgoing response from gateway.
WithProtoErrorHandler returns a ServeMuxOption for passing metadata to a gRPC context.
# Constants
MetadataHeaderPrefix is the http prefix that represents custom metadata parameters to or from a gRPC call.
MetadataPrefix is the prefix for grpc-gateway supplied custom metadata fields.
MetadataTrailerPrefix is prepended to gRPC metadata as it is converted to HTTP headers in a response handled by grpc-gateway.
MIMEWildcard is the fallback MIME type used for requests which do not match a registered MIME type.
# Variables
DefaultContextTimeout is used for gRPC call context.WithTimeout whenever a Grpc-Timeout inbound header isn't present.
ErrInvalidPattern indicates that the given definition of Pattern is not valid.
ErrNotMatch indicates that the given HTTP request path does not match to the pattern.
HTTPError replies to the request with the error.
OtherErrorHandler handles the following error used by the gateway: StatusMethodNotAllowed StatusNotFound and StatusBadRequest.
# Structs
JSONBuiltin is a Marshaler which marshals/unmarshals into/from JSON with the standard "encoding/json" package of Golang.
Pattern is a template pattern of http request paths defined in github.com/googleapis/googleapis/google/api/http.proto.
ProtoMarshaller is a Marshaller which marshals/unmarshals into/from serialize proto bytes.
ServeMux is a request multiplexer for grpc-gateway.
ServerMetadata consists of metadata sent from gRPC server.
# Type aliases
DecoderFunc adapts an decoder function into Decoder.
EncoderFunc adapts an encoder function into Encoder.
A HandlerFunc handles a specific pair of path pattern and HTTP method.
HeaderMatcherFunc checks whether a header key should be forwarded to/from gRPC context.
JSONPb is a Marshaler which marshals/unmarshals into/from JSON with the "github.com/golang/protobuf/jsonpb".
ProtoErrorHandlerFunc handles the error as a gRPC error generated via status package and replies to the request.
ServeMuxOption is an option that can be given to a ServeMux on construction.