transport

package
v0.0.0-...-8beb243 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Transport

type Transport interface {
	// Setup sets up the transport on the given address.
	Setup(addr string) error

	// Shutdown shuts down the transport.
	Shutdown() error
}

func New

func New(transportType TransportType, storage storage.Storage) (Transport, error)

New returns a new transport

type TransportType

type TransportType string
var (
	HTTPTransportType TransportType = "http"

	ErrInvalidTransportType = fmt.Errorf("invalid transport type")
)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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