lifecycle

package
v1.4.1 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewServer

func NewServer(log logrus.FieldLogger, cfg config.LifecycleServer, restarter Restarter) *httpx.Server

NewServer creates a new httpsrv.Server that exposes lifecycle methods as HTTP endpoints.

Types

type Restarter added in v1.0.0

type Restarter interface {
	Do(ctx context.Context) error
}

type SendMessageFn

type SendMessageFn func(msg string) error

SendMessageFn defines a function which sends a given message.

Jump to

Keyboard shortcuts

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