goinfluxclient

package module
v0.1.0 Latest Latest
Warning

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

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

README

go-mqtt-client

Test of providing a lib for another project as a git repo.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitClient

func InitClient(c Config)

func Publish

func Publish(sender string, val float32)

func TeardownClient

func TeardownClient()

Types

type Config

type Config struct {
	Url      string
	Token    string
	Database string
}

type Entry

type Entry struct {
	Sender string    `json:"sender"`
	Time   time.Time `json:"time"`
	Value  float64   `json:"value"`
}

func Retrieve

func Retrieve(senders []string) []Entry

Jump to

Keyboard shortcuts

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