health

package
v0.24.0 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 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 NewChannelHealthServer

func NewChannelHealthServer(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) ChannelReady

func (chs *Server) ChannelReady() bool

Access Function For ChannelReady Flag

func (*Server) ProducerReady

func (chs *Server) ProducerReady() bool

Access Function For ProducerReady Flag

func (*Server) Ready

func (chs *Server) Ready() bool

Response Function For Readiness Requests (/healthy)

func (*Server) SetChannelReady

func (chs *Server) SetChannelReady(isReady bool)

Synchronized Function To Set Channel Ready Flag

func (*Server) SetProducerReady

func (chs *Server) SetProducerReady(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