networkpayload

package
v0.0.0-...-a0027d1 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: 6 Imported by: 8

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsInvalidConfig

func IsInvalidConfig(err error) bool

IsInvalidConfig asserts invalidConfigError.

func MustNew

func MustNew() objectspec.NetworkPayload

MustNew creates either a new default configured network payload object, or panics.

func New

func New(config Config) (objectspec.NetworkPayload, error)

New creates a new configured network payload object.

Types

type Config

type Config struct {

	// Args represents the arguments intended to be used for the requested CLG
	// execution, or the output values being calculated during the requested CLG
	// execution.
	Args []reflect.Value

	Context objectspec.Context

	// Destination represents the object ID of the CLG receiving the current
	// network payload.
	Destination string

	// Sources represents the object IDs of the CLGs being involved providing the
	// current network payload. In fact, a network payload can only be sent by
	// one CLG. Reason for this being a list is the merge of network payloads
	// until a CLG's interface is satisfied. That way multiple CLG's can request
	// another CLG even if they are not able to satisfy the interface of the
	// requested CLG on their own. This gives the neural network an opportunity
	// to learn to combine CLGs as desired.
	Sources []string
}

Config represents the configuration used to create a new network payload object.

func DefaultConfig

func DefaultConfig() Config

DefaultConfig provides a default configuration to create a new network payload object by best effort.

Jump to

Keyboard shortcuts

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