Documentation
¶
Overview ¶
Package connectproto provides configurable codecs for Connect clients and handlers.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WithBinary ¶ added in v0.2.0
func WithBinary(marshal proto.MarshalOptions, unmarshal proto.UnmarshalOptions) connect.Option
WithBinary customizes a connect-go Client or Handler's binary protobuf handling, using any options supported by google.golang.org/protobuf.
func WithBinaryVT ¶ added in v0.3.0
WithBinaryVT customizes a connect-go Client or Handler's binary protobuf handling, using the optimized marshaling and unmarshaling methods produced by vtprotobuf where possible. If the methods generated by vtprotobuf aren't available, the codec falls back to google.golang.org/protobuf with the default options.
func WithJSON ¶
func WithJSON(marshal protojson.MarshalOptions, unmarshal protojson.UnmarshalOptions) connect.Option
WithJSON customizes a connect-go Client or Handler's JSON handling.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.