Documentation ¶
Index ¶
- func IncomingHeaderMatcher(key string) (string, bool)
- type Gateway
- type Option
- type Options
- type PdfMarshaller
- func (m *PdfMarshaller) ContentType(_ interface{}) string
- func (m *PdfMarshaller) Marshal(_ interface{}) ([]byte, error)
- func (m *PdfMarshaller) NewDecoder(_ io.Reader) runtime.Decoder
- func (m *PdfMarshaller) NewEncoder(_ io.Writer) runtime.Encoder
- func (m *PdfMarshaller) Unmarshal(_ []byte, _ interface{}) error
- type ResponseInterceptorFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IncomingHeaderMatcher ¶
IncomingHeaderMatcher will rewrite HTTP header keys into gRPC header keys. All remaining headers are treated with the default policy. The header comparison is case-insensitive.
Types ¶
type Gateway ¶
type Gateway interface { HttpMux() *runtime.ServeMux GrpcDialOpts() []grpc.DialOption Context() context.Context DialOptsWithUnaryInterceptors(interceptors ...grpc.UnaryClientInterceptor) []grpc.DialOption }
type Option ¶
type Option func(*Options)
func ResponseInterceptor ¶
func ResponseInterceptor(interceptor ResponseInterceptorFunc) Option
func WithServeMuxOptions ¶
func WithServeMuxOptions(opts ...runtime.ServeMuxOption) Option
type Options ¶
type Options struct { ResponseInterceptor ResponseInterceptorFunc ServeMuxOpts []runtime.ServeMuxOption }
type PdfMarshaller ¶ added in v1.7.3
type PdfMarshaller struct{}
PdfMarshaller Create a custom marshaller for requests with header "Accept" set to application/pdf
func (*PdfMarshaller) ContentType ¶ added in v1.7.3
func (m *PdfMarshaller) ContentType(_ interface{}) string
func (*PdfMarshaller) Marshal ¶ added in v1.7.3
func (m *PdfMarshaller) Marshal(_ interface{}) ([]byte, error)
func (*PdfMarshaller) NewDecoder ¶ added in v1.7.3
func (m *PdfMarshaller) NewDecoder(_ io.Reader) runtime.Decoder
func (*PdfMarshaller) NewEncoder ¶ added in v1.7.3
func (m *PdfMarshaller) NewEncoder(_ io.Writer) runtime.Encoder
func (*PdfMarshaller) Unmarshal ¶ added in v1.7.3
func (m *PdfMarshaller) Unmarshal(_ []byte, _ interface{}) error
type ResponseInterceptorFunc ¶
Click to show internal directories.
Click to hide internal directories.