Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Command ¶ added in v0.1.0
Command is a CLI command interface. The cobra.Command fits, see: https://github.com/spf13/cobra
type NopCommand ¶ added in v0.1.0
type NopCommand struct {
Executed bool
}
NopCommand is a Command doing nothing.
func (*NopCommand) ExecuteContext ¶ added in v0.1.0
func (c *NopCommand) ExecuteContext(ctx context.Context) error
type Router ¶ added in v0.1.0
Router interface. The graceful.Graceful gin's wrapper fits: https://github.com/gin-contrib/graceful.
type Runner ¶
Runner is an interface for a service's runner, such as gin or something else.
func NewCommandRunner ¶ added in v0.1.0
NewCommandRunner creates new CLI command Service Runner.
func NewCustomRunner ¶ added in v0.1.2
func NewCustomRunner(fn RunnerRunFn) Runner
NewCustomRunner returns a Runner executing the custom function.
func NewRouterRunner ¶ added in v0.1.0
NewRouterRunner creates new Runner executing the given http Router.
type RunnerRunFn ¶ added in v0.1.2
RunnerRunFn is a custom function to run in runner.
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service is an application based on core2go kit.
func (*Service) RegisterRunner ¶ added in v0.1.0
RegisterRunner register the Runner instances in the Service.