client

package
v0.0.0-...-4934a95 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Stat

type Stat struct {
	Value []float64     `json:"value"`
	Time  time.Time     `json:"time"`
	ID    string        `json:"id"`
	Extra []interface{} `json:"extra"`
}

type StatsEndPoint

type StatsEndPoint struct {
	Run      bool   `json:"run"`
	Host     string `json:"host"`
	FileName string `json:"filename"`
	Port     int    `json:"port"`
}

func NewStatsEndPoint

func NewStatsEndPoint(host, filename string, port int) *StatsEndPoint

func (*StatsEndPoint) PostStatHTTP

func (s *StatsEndPoint) PostStatHTTP(stat Stat)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳