Documentation ¶
Index ¶
Constants ¶
View Source
const ( // HealthPath is the path for checking that HTTP service is live HealthPath = "/health" // ReadyPath is the path for checking that HTTP service is ready (checking dependencies) ReadyPath = "/ready" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type App ¶
type App struct {
// contains filtered or unexported fields
}
App of package
func (App) Done ¶
func (a App) Done() <-chan struct{}
Done returns the chan closed when SIGTERM is received
func (App) End ¶
func (a App) End() <-chan struct{}
End returns the chan closed when graceful duration is over
func (App) HealthHandler ¶ added in v4.43.1
HealthHandler for request. Should be use with net/http
func (App) ReadyHandler ¶ added in v4.43.1
ReadyHandler for request. Should be use with net/http
func (App) WaitForTermination ¶
func (a App) WaitForTermination(done <-chan struct{})
WaitForTermination waits for SIGTERM or done plus grace duration
Click to show internal directories.
Click to hide internal directories.