Discover Packages
github.com/deliangyang/redis-shake
internal
heartbeat
package
Version:
v0.0.0-...-13a9703
Opens a new window with list of versions in this module.
Published: Dec 11, 2020
License: MIT
Opens a new window with license information.
Imports: 8
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
type HeartbeatController struct {
ServerUrl string
Interval int32
}
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 struct {
Error int32 `json:"error"`
Message string `json:"msg"`
Data string `json:"data"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.