Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetHandlerOptions ¶
func GetHandlerOptions(logger *slog.Logger, opts ...Option) []connect.HandlerOption
GetHandlerOptions returns the default options for a connect.Handler.
func NewJSONCodec ¶ added in v0.0.2
func NewJSONCodec(opts protojson.MarshalOptions) connect.Codec
Types ¶
type Option ¶ added in v0.0.2
type Option func(o *options)
func WithJSONMarshalOptions ¶ added in v0.0.2
func WithJSONMarshalOptions(opts protojson.MarshalOptions) Option
WithJSONMarshalOptions sets the marshaling options for the JSON codec. Example: `WithJSONMarshalOptions(protojson.MarshalOptions{EmitUnpopulated: true, UseProtoNames: true})`
func WithLogOptions ¶ added in v0.0.2
func WithLogOptions(opts ...connectlog.Option) Option
WithLogOptions sets the options for the logging interceptor. E.g. WithLogOptions(connectlog.WithSuccess())
Click to show internal directories.
Click to hide internal directories.