package
0.1.0
Repository: https://github.com/renbou/grpcbridge.git
Documentation: pkg.go.dev

# Functions

NewStandardTranscoder initializes a new [StandardTranscoder] with the specified options, which be used by it during Bind.

# Variables

DefaultJSONMarshaler is used as one of the default marshalers in StandardTranscoderOpts, and can be used when it is needed to customize the list of marshalers without affecting the default ones.

# Structs

HTTPRequest contains all the information an [HTTPTranscoder] could need to perform transcoding of the request and response messages associated with this HTTP request.
JSONMarshaler implements marshaling and unmarshaling of arbitrary protobuf message fields with custom type resolving, meant to be used for transcoding request and response messages from different targets.
StandardTranscoder is the standard [HTTPTranscoder] used by grpcbridge, implemented according to the standard HTTP-to-gRPC transcoding rules, specified in [google/api/http.proto].
StandardTranscoderOpts define all the optional settings which can be set for [StandardTranscoder].

# Interfaces

Decoder is derived from a [StreamMarshaler] to be used for decoding messages from a stream.
Encoder is derived from a [StreamMarshaler] to be used for encoding messages to a stream.
HTTPRequestTranscoder is responsible for transcoding request messages bound to a specific HTTP request.
HTTPResponseTranscoder is responsible for transcoding response messages bound to a specific HTTP request.
HTTPTranscoder is the interface required to be implemented by a transcoder suitable for transcoding requests originating from HTTP.
Marshaler defines a converter interface for arbitrary protoreflect messages and their fields.
RequestStreamTranscoder should be implemented by bound transcoders supporting receiving request messages over a binary stream, such as an HTTP request body.
ResponseStreamTranscoder should be implemented by bound transcoders supporting sending response messages over a binary stream, such as an HTTP response body.
StreamMarshaler defines additional methods for a [Marshaler], which, if implemented, will allow encoding and decoding messages to/from a stream.
TranscodedStream is a stream of transcoded messages, which are being read or written to/from a stream.