gouptimesdk

package module
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2023 License: MIT Imports: 1 Imported by: 0

README

go-uptimesdk

Internal used client

install
go get github.com/4everland/go-uptimesdk
Usage
client := NewClient("http://127.0.0.1", "test", "test-server", "test-instance")
//simple report 
err := c.Report("test", message.Message{
		Value: 32,
	})
//with options
	err := c.ReportWithOpt(map[string]message.Message{
		"test": {
			Value: 32,
		},
	}, "", WithServerName("test-2"))

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewClient

func NewClient(host, auth, server, instance string) *client.Client

func WithAuthorization

func WithAuthorization(auth string) client.Option

func WithHost

func WithHost(host string) client.Option

func WithInstanceName

func WithInstanceName(instanceName string) client.Option

func WithServerName

func WithServerName(serverName string) client.Option

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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