Documentation ¶ Index ¶ func Serve(ctx context.Context, runners ...Runner) error type App func New(info Info, root *cobra.Command) *App func (a *App) Execute() func (a *App) Paths() paths.App type Info type Runner func RunnerFunc(run func(ctx context.Context) error) Runner Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func Serve ¶ func Serve(ctx context.Context, runners ...Runner) error Types ¶ type App ¶ type App struct { Info Info // contains filtered or unexported fields } func New ¶ func New(info Info, root *cobra.Command) *App func (*App) Execute ¶ func (a *App) Execute() func (*App) Paths ¶ func (a *App) Paths() paths.App type Info ¶ type Info struct { Name string ID string Version string Commit string BuildTime string } type Runner ¶ type Runner interface { Run(ctx context.Context) error Shutdown(ctx context.Context) error } func RunnerFunc ¶ func RunnerFunc(run func(ctx context.Context) error) Runner Source Files ¶ View all Source files app.goserve.go Click to show internal directories. Click to hide internal directories.