runner

package
v0.0.0-...-c18dace Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 4, 2026 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Package runner provides a way to add hooks to the application lifecycle.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type App

type App[T any] struct {
	// contains filtered or unexported fields
}

func NewApp

func NewApp[T any](appConf *confpb.Config, scopeName string) *App[T]

func (*App[T]) Main

func (a *App[T]) Main(main func(*Context[T]))

type Context

type Context[T any] struct {
	// contains filtered or unexported fields
}

func NewContext

func NewContext[T any](appConf *confpb.Config) *Context[T]

func (*Context[T]) Inject

func (c *Context[T]) Inject(fn ...any)

func (*Context[T]) Invoke

func (c *Context[T]) Invoke(fn any)

func (*Context[T]) OnStart

func (c *Context[T]) OnStart(start any)

func (*Context[T]) OnStop

func (c *Context[T]) OnStop(stop any)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL