relay

package
v0.0.0-...-6bb5241 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2021 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AbstractDuplexRelay

type AbstractDuplexRelay struct {
	// contains filtered or unexported fields
}

func (*AbstractDuplexRelay) Relay

func (r *AbstractDuplexRelay) Relay(ctx context.Context) error

type DeadlineConnection

type DeadlineConnection struct {
	net.Conn
	// contains filtered or unexported fields
}

func NewDeadlineConnection

func NewDeadlineConnection(conn net.Conn, writeDeadlineTimeout, readDeadlineTimeout time.Duration) *DeadlineConnection

func (*DeadlineConnection) Read

func (d *DeadlineConnection) Read(b []byte) (int, error)

func (*DeadlineConnection) Write

func (d *DeadlineConnection) Write(b []byte) (int, error)

type Relayer

type Relayer interface {
	Relay() error
}

type UnixSocketTCP

type UnixSocketTCP struct {
	AbstractDuplexRelay
}

func NewUnixSocketTCP

func NewUnixSocketTCP(
	logger logger.Logger,
	healthCheckInterval time.Duration,
	unixSocketPath,
	tcpAddress string,
	bufferSize int,
) (*UnixSocketTCP, error)

Jump to

Keyboard shortcuts

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