request

package
v5.21.0 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2024 License: MIT Imports: 4 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Dialer

type Dialer interface {
	Dial(ctx context.Context) (net.Conn, error)
}

type Listener

type Listener interface {
	Listen(ctx context.Context) (net.Listener, error)
}

type OptionSupportsStreamingResponse added in v5.17.0

type OptionSupportsStreamingResponse interface {
	RoundTripperOption
	GetResponseWriter() io.Writer
}

type OptionSupportsStreamingResponseExtensionFlusher added in v5.17.0

type OptionSupportsStreamingResponseExtensionFlusher interface {
	Flush()
}

type Request

type Request struct {
	Data          []byte
	ConnectionTag []byte
}

type Response

type Response struct {
	Data []byte
}

type RoundTripperClient

type RoundTripperClient interface {
	Tripper
	TransportClientAssemblyReceiver
}

type RoundTripperOption

type RoundTripperOption interface {
	RoundTripperOption()
}

type RoundTripperServer

type RoundTripperServer interface {
	common.Runnable
	TransportServerAssemblyReceiver
}

type Session

type Session interface {
	io.ReadWriteCloser
}

type SessionAssemblerClient

type SessionAssemblerClient interface {
	SessionCreator
	TransportClientAssemblyReceiver
}

type SessionAssemblerServer

type SessionAssemblerServer interface {
	TripperReceiver
	TransportServerAssemblyReceiver
}

type SessionCreator

type SessionCreator interface {
	NewSession(ctx context.Context, opts ...SessionOption) (Session, error)
}

type SessionOption

type SessionOption interface {
	RoundTripperOption()
}

type SessionReceiver

type SessionReceiver interface {
	OnNewSession(ctx context.Context, sess Session, opts ...SessionOption) error
}

type TransportClientAssembly

type TransportClientAssembly interface {
	Tripper() Tripper
	AutoImplDialer() Dialer
}

type TransportClientAssemblyReceiver

type TransportClientAssemblyReceiver interface {
	OnTransportClientAssemblyReady(TransportClientAssembly)
}

type TransportServerAssembly

type TransportServerAssembly interface {
	TripperReceiver() TripperReceiver
	SessionReceiver() SessionReceiver
	AutoImplListener() Listener
}

type TransportServerAssemblyReceiver

type TransportServerAssemblyReceiver interface {
	OnTransportServerAssemblyReady(TransportServerAssembly)
}

type Tripper

type Tripper interface {
	RoundTrip(ctx context.Context, req Request, opts ...RoundTripperOption) (resp Response, err error)
}

type TripperReceiver

type TripperReceiver interface {
	OnRoundTrip(ctx context.Context, req Request, opts ...RoundTripperOption) (resp Response, err error)
}

Directories

Path Synopsis
assembler
roundtripper
stereotype

Jump to

Keyboard shortcuts

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