status

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HealthCheckInit

func HealthCheckInit(address string)

func NodeInfoGetFromDB

func NodeInfoGetFromDB(key string) (string, error)

func NodeInfoInit

func NodeInfoInit(name string)

func NodeInfoUpdate

func NodeInfoUpdate(key string, value string) error

Types

type HealthCheck

type HealthCheck struct {
}

func (HealthCheck) ServeHTTP

func (HealthCheck) ServeHTTP(w http.ResponseWriter, r *http.Request)

type Network

type Network struct {
	Name  string `json:"name"`
	Value string `json:"network"`
}

type NodeInfo

type NodeInfo struct {
	ID        string    `json:"id"`
	Time      string    `json:"timestamp"`
	Hostname  string    `json:"hostname"`
	Interface []Network `json:"interface"`
}

func NodeInfoGetFromLocal

func NodeInfoGetFromLocal() NodeInfo

Jump to

Keyboard shortcuts

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