Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Version = "v0.2.0"
Functions ¶
Types ¶
type HandlerFunc ¶
The HandlerFunc type is an adapter to allow the use of ordinary functions as a matr task Handler.
type Matr ¶
type Matr struct {
// contains filtered or unexported fields
}
Matr is the root structure
func (*Matr) Handle ¶
Handle registers a new task handler with matr. The Handler will then be referenceable by the provided name, if a task is named "default" or "" that function will be called if no function name is provided. The default function is also a good place to output usage information for the available tasks. CallOptions can be used to allow for before and after Handler middleware functions.
func (*Matr) PrintUsage ¶
PrintUsage is a helper function to output the usage docs to stdout
Click to show internal directories.
Click to hide internal directories.