health

package
v0.25.0 Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2021 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

type Server struct {
	health.Server
	// contains filtered or unexported fields
}

func NewDispatcherHealthServer

func NewDispatcherHealthServer(httpPort string) *Server

Creates A New Server With Specified Configuration

func (*Server) Alive

func (chs *Server) Alive() bool

Response Function For Liveness Requests (/healthz)

func (*Server) DispatcherReady

func (chs *Server) DispatcherReady() bool

Access Function For DispatcherReady Flag

func (*Server) Ready

func (chs *Server) Ready() bool

Response Function For Readiness Requests (/healthy)

func (*Server) SetDispatcherReady

func (chs *Server) SetDispatcherReady(isReady bool)

Synchronized Function To Set Producer Ready Flag

func (*Server) Shutdown

func (chs *Server) Shutdown()

Set All Liveness And Readiness Flags To False

Jump to

Keyboard shortcuts

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