Documentation ¶
Index ¶
- func CommandEndpoints(config configuration.Config, router *httprouter.Router, cmd Command)
- func GetRouter(config configuration.Config, command Command) http.Handler
- func HealthEndpoint(config configuration.Config, router *httprouter.Router, command Command)
- func Start(ctx context.Context, config configuration.Config, command Command) (err error)
- type Command
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CommandEndpoints ¶
func CommandEndpoints(config configuration.Config, router *httprouter.Router, cmd Command)
func HealthEndpoint ¶
func HealthEndpoint(config configuration.Config, router *httprouter.Router, command Command)
Types ¶
type Command ¶
type Command interface { Command(token auth.Token, cmd command.CommandMessage, timeout string, preferEventValue bool) (code int, resp interface{}) Batch(token auth.Token, batch command.BatchRequest, timeout string, preferEventValue bool) []command.BatchResultElement GetMetricsHttpHandler() *metrics.Metrics }
Click to show internal directories.
Click to hide internal directories.