hb

package
v0.0.0-...-f4c30ac Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2020 License: Apache-2.0 Imports: 11 Imported by: 11

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Grpcc

func Grpcc(addr, dir, bra string)

Grpcc grpc heartbeat

func Health

func Health(w http.ResponseWriter, req *http.Request)

Health server health

func KillSer

func KillSer(w http.ResponseWriter, req *http.Request)

KillSer kill server

func RestartSer

func RestartSer(w http.ResponseWriter, req *http.Request)

RestartSer restart server

Types

type Conf

type Conf struct {
	Addr string
	Path string
	Cmd  string
}

Conf config

type Json

type Json struct {
	Code      int32 `json:"code"`
	Timestamp int64 `json:"timestamp"`
	Health    int32 `json:"health"`
}

Json json

Jump to

Keyboard shortcuts

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