Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrKeyAlreadyDefined the given key is already defined in the executor ErrKeyAlreadyDefined = errors.New("Key is already defined") // ErrKeyNotDefined the given key is not defined in the executor ErrKeyNotDefined = errors.New("Key is not defined") // ErrInvalidParametersCount indicates that the given action has different parameter count requirements ErrInvalidParametersCount = errors.New("Invalid parmaters count") )
Functions ¶
This section is empty.
Types ¶
type Command ¶
Command holds a key driven command instance
func ReadKeyDrivenFile ¶
ReadKeyDrivenFile reads in a key driven file. A key driven file has the following format: Each lines holds one command. A command is defined by its key and parameters which are separated by a tabulator. The line ends with a new line character.
type Executor ¶
type Executor struct { sync.Mutex BeforeAction Action AfterAction Action // contains filtered or unexported fields }
Executor holds a key driven executor instance
func (*Executor) MustRegister ¶
MustRegister calls Register and panics if there is an error
Click to show internal directories.
Click to hide internal directories.