application

package
v0.0.0-...-535ab37 Latest Latest
Warning

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

Go to latest
Published: May 23, 2020 License: GPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init(defaultConfigPath string)

Types

type HealthChecker

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

HealthChecker structure.

func NewHealthChecker

func NewHealthChecker(router *gin.Engine) *HealthChecker

NewHealthChecker constructor.

func (*HealthChecker) SetReady

func (hc *HealthChecker) SetReady()

SetReady sets application ready flag

type HealthCheckerServer

type HealthCheckerServer struct {
	Chk *HealthChecker
	// contains filtered or unexported fields
}

HealthCheckerServer structure.

func NewHealthCheckerServer

func NewHealthCheckerServer(port int) *HealthCheckerServer

NewHealthCheckerServer constructor.

func (*HealthCheckerServer) Start

func (s *HealthCheckerServer) Start() error

Start HTTP server.

func (*HealthCheckerServer) Stop

func (s *HealthCheckerServer) Stop() error

Stop HTTP server gracefully.

Jump to

Keyboard shortcuts

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