transport

package
v0.0.0-...-af67c94 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Register

func Register(name string, builder TransportBuilder) error

func Unregister

func Unregister(name string) error

Types

type Transport

type Transport interface {
	Dial(network, address string)
	Listen(network, address string) <-chan store.Store
	Send(store.Store)
	Close()
}

func New

func New(name string) (Transport, error)

type TransportBuilder

type TransportBuilder func(opts ...options.Option) (Transport, error)

Jump to

Keyboard shortcuts

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