input

package
v0.0.0-...-2a2d870 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2016 License: BSD-3-Clause Imports: 7 Imported by: 0

Documentation

Overview

Package input implements github.com/the-anna-project/clg.Service and provides the entry to the neural network. When being executed the CLGs action tries to lookup the information peer associated with the given information sequence. In case the information peer cannot be found within the connection space, a new information peer is created. In any case the ID of the information peer is added to the given context and can be accessed as first information ID of the current CLG tree. Further CLGs may or may not make use of it.

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 struct {
	// contains filtered or unexported fields
}

func NewService

func NewService(config ServiceConfig) (*Service, error)

NewService creates a new configured CLG service.

func (*Service) Action

func (s *Service) Action() interface{}

func (*Service) Boot

func (s *Service) Boot()

func (*Service) Metadata

func (s *Service) Metadata() map[string]string

func (*Service) Shutdown

func (s *Service) Shutdown()

type ServiceConfig

type ServiceConfig struct {
	// Dependencies.
	IDService      id.Service
	PeerCollection *peer.Collection
}

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

func DefaultServiceConfig

func DefaultServiceConfig() ServiceConfig

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

Jump to

Keyboard shortcuts

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