Documentation ¶
Overview ¶
Package output implements github.com/the-anna-project/clg.Service and provides one of the two very special CLGs. That is the output CLG. Its purpose is to check if the calculated output matches the provided expectation, if any expectation given. The output CLG is handled in a special way because it determines the end of all requested calculations within the neural network. After the output CLG has been executed, the calculated output is returned back to the requesting client.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsExpectationNotMet ¶
IsExpectationNotMet asserts expectationNotMetError.
func IsInvalidBehaviourID ¶
IsInvalidBehaviourID asserts invalidBehaviourIDError.
func IsInvalidCLGTreeID ¶
IsInvalidCLGTreeID asserts invalidCLGTreeIDError.
func IsInvalidConfig ¶
IsInvalidConfig asserts invalidConfigError.
func IsInvalidInformationID ¶
IsInvalidInformationID asserts invalidInformationIDError.
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.
type ServiceConfig ¶
type ServiceConfig struct { // Dependencies. EventCollection *event.Collection IDService id.Service OutputCollection *output.Collection 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.