transport

package
v0.0.0-...-588446a Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2025 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewRequest

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

Types

type IncomingTransport

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

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