Documentation ¶
Index ¶
- func IfNot[T any](exclude bool, opt func(*runnerCfg[T])) func(*runnerCfg[T])
- func OnInit[T any](initFunc func(context.Context, *T) error) func(*runnerCfg[T])
- func OnMuxInit[T any](...) func(*muxCfg[T])
- func OnRunning[T any](runningFunc func(context.Context, *T) error) func(*runnerCfg[T])
- func OnShutdown[T any](shutdownFunc func(context.Context, *T) error) func(*runnerCfg[T])
- func OnStarting[T any](startupFunc func(context.Context, *T) error) func(*runnerCfg[T])
- func WithHTTPServeMux[T any](identifer string, opts ...func(*muxCfg[T])) func(*runnerCfg[T])
- func WithInitTimeout[T any](timeout time.Duration) func(*runnerCfg[T])
- func WithK8SLivenessProbe[T any](isAlive func() error) func(*muxCfg[T])
- func WithK8SReadinessProbes[T any](probers map[string]handlers.ServiceProber) func(*muxCfg[T])
- func WithListenAddr[T any](listen string) func(*muxCfg[T])
- func WithPPROF[T any]() func(*muxCfg[T])
- func WithPort[T any](port string) func(*muxCfg[T])
- func WithRunningTimeout[T any](tmo time.Duration) func(*runnerCfg[T])
- func WithShutdownTimeout[T any](tmo time.Duration) func(*runnerCfg[T])
- func WithStartingTimeout[T any](tmo time.Duration) func(*runnerCfg[T])
- func WithTerminationTimeout[T any](tmo time.Duration) func(*runOpts[T])
- func WithWorker[T any](worker func(context.Context, *T) error) func(*runOpts[T])
- type Runner
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func OnShutdown ¶
func OnStarting ¶
func WithHTTPServeMux ¶
func WithInitTimeout ¶
func WithK8SLivenessProbe ¶
func WithK8SReadinessProbes ¶
func WithK8SReadinessProbes[T any](probers map[string]handlers.ServiceProber) func(*muxCfg[T])
func WithListenAddr ¶
func WithRunningTimeout ¶
func WithShutdownTimeout ¶
func WithStartingTimeout ¶
func WithTerminationTimeout ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.