actuator

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewGrpcServerWithActuator added in v0.4.0

func NewGrpcServerWithActuator(srv mgrpc.RegisteredServer) (mgrpc.RegisteredServer, error)

func SetAppInfoSingleton

func SetAppInfoSingleton(a *AppInfo)

Types

type AppContributor

type AppContributor info.Contributor

func GetAppContributor

func GetAppContributor() AppContributor

type AppInfo

type AppInfo struct {
	// The name of the program. Defaults to path.Base(os.Args[0])
	Name string `json:"name"`
	// Version of the program
	Version string `json:"version"`
	// Compilation date
	Compiled time.Time `json:"compiled,omitempty"`
}

func GetAppInfoSingleton

func GetAppInfoSingleton() AppInfo

func NewAppInfo

func NewAppInfo() *AppInfo

type GrpcServerWithActuator added in v0.4.0

type GrpcServerWithActuator struct {
	// contains filtered or unexported fields
}

func (*GrpcServerWithActuator) GracefulStop added in v0.4.0

func (s *GrpcServerWithActuator) GracefulStop()

func (*GrpcServerWithActuator) Serve added in v0.4.0

func (s *GrpcServerWithActuator) Serve(ln net.Listener) (err error)

func (*GrpcServerWithActuator) Stop added in v0.4.0

func (s *GrpcServerWithActuator) Stop()

type RuntimeIndicator

type RuntimeIndicator interface {
	Report() (status health.Status, details map[string]interface{})
	SetUnhealthy(reason string)
	SetHealthy(reason string)
	SetStarted()
}

func GetRuntimeLivenessIndicator

func GetRuntimeLivenessIndicator() RuntimeIndicator

func GetRuntimeReadinessIndicator

func GetRuntimeReadinessIndicator() RuntimeIndicator

Jump to

Keyboard shortcuts

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