Documentation ¶
Index ¶
Constants ¶
const (
Root = bootstrap.Root + ".function"
)
Variables ¶
This section is empty.
Functions ¶
func Run ¶
Run executes commands with injected fx modules. Valid fn signatures are: * func() * func() error * func(context.Context) * func(context.Context) protocol.Result * func(event.Event) * func(event.Event) protocol.Result * func(context.Context, event.Event) * func(context.Context, event.Event) protocol.Result * func(event.Event) *event.Event * func(event.Event) (*event.Event, protocol.Result) * func(context.Context, event.Event) *event.Event * func(context.Context, event.Event) (*event.Event, protocol.Result)
Types ¶
type CmdFunc ¶
CmdFunc defines a function that return a command. Valid fn signatures are: * func() * func() error * func(context.Context) * func(context.Context) protocol.Result * func(event.Event) * func(event.Event) protocol.Result * func(context.Context, event.Event) * func(context.Context, event.Event) protocol.Result * func(event.Event) *event.Event * func(event.Event) (*event.Event, protocol.Result) * func(context.Context, event.Event) *event.Event * func(context.Context, event.Event) (*event.Event, protocol.Result)