position

package module
v0.0.0-...-dec3919 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2016 License: BSD-3-Clause Imports: 6 Imported by: 1

README

maturity build status GoDoc

position

The position package implements a service to manage position peers within the connection space.

Documentation

Overview

Package position implements Service to manage positions of the connection space.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsInvalidConfig

func IsInvalidConfig(err error) bool

IsInvalidConfig asserts invalidConfigError.

Types

type Service

type Service interface {
	Default() (string, error)
}

func NewService

func NewService(config ServiceConfig) (Service, error)

NewService creates a new position service.

type ServiceConfig

type ServiceConfig struct {
	// Dependencies.
	RandomService random.Service

	// Settings.
	DimensionCount int
	DimensionDepth int
}

ServiceConfig represents the configuration used to create a new position service.

func DefaultServiceConfig

func DefaultServiceConfig() ServiceConfig

DefaultServiceConfig provides a default configuration to create a new position service by best effort.

Jump to

Keyboard shortcuts

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