service

package
v0.0.0-...-bcf73df Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2016 License: BSD-3-Clause Imports: 5 Imported by: 3

Documentation

Overview

Package service implements a service to manage connections inside network layers.

Index

Constants

View Source
const (
	KindBehaviour   = "behaviour"
	KindInformation = "information"
	KindPosition    = "position"
)

Variables

This section is empty.

Functions

func IsInvalidConfig

func IsInvalidConfig(err error) bool

IsInvalidConfig asserts invalidConfigError.

func IsInvalidPeer

func IsInvalidPeer(err error) bool

IsInvalidPeer asserts invalidPeerError.

func New

func New(config Config) (servicespec.LayerService, error)

New creates a new layer service.

Types

type Config

type Config struct {
	// Settings.
	Kind string
}

Config represents the configuration used to create a new layer service.

func DefaultConfig

func DefaultConfig() Config

DefaultConfig provides a default configuration to create a new layer service by best effort.

Jump to

Keyboard shortcuts

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