http

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

func NewClient

func NewClient(cfg model.HTTPConfig, s *storage.Storage) *Client

func (*Client) GetStats

func (c *Client) GetStats() map[string]int64

func (*Client) Publish added in v0.0.7

func (c *Client) Publish(v model.Value)

func (*Client) PublishDeviceLifecycle

func (c *Client) PublishDeviceLifecycle(event string, device model.Device)

func (*Client) PublishDeviceStatus

func (c *Client) PublishDeviceStatus(deviceID string, status int)

func (*Client) Send

func (c *Client) Send(payload []byte) error

func (*Client) Start

func (c *Client) Start()

func (*Client) Stop

func (c *Client) Stop()

func (*Client) UpdateConfig

func (c *Client) UpdateConfig(cfg model.HTTPConfig)

Jump to

Keyboard shortcuts

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