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 module, 1 package

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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
⌂ 换网址