transport

package
v0.0.0-...-58f8293 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 27, 2024 License: MIT Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EnableQueryInBodyForHttpGet

func EnableQueryInBodyForHttpGet(ctx context.Context) context.Context

func FromHttpRequest

func FromHttpRequest(r *http.Request, service string) courierhttp.Request

func NewRequest

func NewRequest(ctx context.Context, v any) (*http.Request, error)

func ShouldQueryInBodyForHttpGet

func ShouldQueryInBodyForHttpGet(ctx context.Context) bool

Types

type IncomingTransport

type IncomingTransport interface {
	UnmarshalOperator(ctx context.Context, info courierhttp.Request, op any) error
	WriteResponse(ctx context.Context, rw http.ResponseWriter, result any, info courierhttp.Request)
}

func NewIncomingTransport

func NewIncomingTransport(ctx context.Context, v any) (IncomingTransport, error)

type OutgoingTransport

type OutgoingTransport interface {
	NewRequest(ctx context.Context, v any) (*http.Request, error)
}

func NewOutgoingTransport

func NewOutgoingTransport(ctx context.Context, r any) (OutgoingTransport, error)

type Upgrader

type Upgrader interface {
	Upgrade(w http.ResponseWriter, r *http.Request) error
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL