heartbeat

package
v0.0.0-...-13a9703 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2020 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HeartbeatController

type HeartbeatController struct {
	ServerUrl string
	Interval  int32
}

func (*HeartbeatController) Start

func (c *HeartbeatController) Start()

type HeartbeatData

type HeartbeatData struct {
	Id       string `json:"id"`
	Ip       string `json:"ip"`
	Port     int32  `json:"port"`
	Ts       int64  `json:"ts"`
	Version  string `json:"version"`
	External string `json:"external"`
}

type HeartbeatResponse

type HeartbeatResponse struct {
	Error   int32  `json:"error"`
	Message string `json:"msg"`
	Data    string `json:"data"`
}

Jump to

Keyboard shortcuts

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