udp

package
v0.0.0-...-9a529fd Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2017 License: MIT Imports: 15 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Start

func Start(c Components, o Options) (err error)

Start constructs and launches a new udp adapter

Types

type Components

type Components struct {
	Ctx    log.Interface
	Router core.RouterServer
}

Components defines a structure to make the instantiation easier to read

type Options

type Options struct {
	// NetAddr refers to the udp address + port the adapter will have to listen
	NetAddr string
	// MaxReconnectionDelay defines the delay of the longest attempt to reconnect a lost connection
	// before giving up.
	MaxReconnectionDelay time.Duration
}

Options defines a structure to make the instantiation easier to read

Jump to

Keyboard shortcuts

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