Versions in this module Expand all Collapse all v3 v3.0.0 Jan 6, 2020 Changes in this version + type Command struct + func NewCommand(name string, schema validate.ISchema, ...) *Command + func (c *Command) Execute(correlationId string, args *run.Parameters) (interface{}, error) + func (c *Command) Name() string + func (c *Command) Validate(args *run.Parameters) []*validate.ValidationResult + type CommandSet struct + func NewCommandSet() *CommandSet + func (c *CommandSet) AddCommand(command ICommand) + func (c *CommandSet) AddCommandSet(commandSet *CommandSet) + func (c *CommandSet) AddCommands(commands []ICommand) + func (c *CommandSet) AddEvent(event IEvent) + func (c *CommandSet) AddEvents(events []IEvent) + func (c *CommandSet) AddInterceptor(interceptor ICommandInterceptor) + func (c *CommandSet) AddListener(listener IEventListener) + func (c *CommandSet) Commands() []ICommand + func (c *CommandSet) Events() []IEvent + func (c *CommandSet) Execute(correlationId string, commandName string, args *run.Parameters) (result interface{}, err error) + func (c *CommandSet) FindCommand(commandName string) ICommand + func (c *CommandSet) FindEvent(eventName string) IEvent + func (c *CommandSet) Notify(correlationId string, eventName string, args *run.Parameters) + func (c *CommandSet) RemoveListener(listener IEventListener) + func (c *CommandSet) Validate(commandName string, args *run.Parameters) []*validate.ValidationResult + type Event struct + func NewEvent(name string) *Event + func (c *Event) AddListener(listener IEventListener) + func (c *Event) Listeners() []IEventListener + func (c *Event) Name() string + func (c *Event) Notify(correlationId string, args *run.Parameters) + func (c *Event) RemoveListener(listener IEventListener) + type ICommand interface + Name func() string + Validate func(args *run.Parameters) []*validate.ValidationResult + type ICommandInterceptor interface + Execute func(correlationId string, command ICommand, args *run.Parameters) (interface{}, error) + Name func(command ICommand) string + Validate func(command ICommand, args *run.Parameters) []*validate.ValidationResult + type ICommandable interface + GetCommandSet func() *CommandSet + type IEvent interface + AddListener func(listener IEventListener) + Listeners func() []IEventListener + Name func() string + RemoveListener func(listener IEventListener) + type IEventListener interface + OnEvent func(correlationId string, e IEvent, value *run.Parameters) + type InterceptedCommand struct + func NewInterceptedCommand(interceptor ICommandInterceptor, next ICommand) *InterceptedCommand + func (c *InterceptedCommand) Execute(correlationId string, args *run.Parameters) (result interface{}, err error) + func (c *InterceptedCommand) Name() string + func (c *InterceptedCommand) Validate(args *run.Parameters) []*validate.ValidationResult Other modules containing this package github.com/pip-services3-go/pip-services3-commons-go