Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Deps ¶
func Deps(ctx context.Context, fns ...HandlerFunc) error
Deps is a helper function to run the given dependent handlers
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.