lns

package
v1.0.8 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2024 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type APIToken

type APIToken string

func (APIToken) GetRequestMetadata

func (a APIToken) GetRequestMetadata(ctx context.Context, url ...string) (map[string]string, error)

func (APIToken) RequireTransportSecurity

func (a APIToken) RequireTransportSecurity() bool

type BaseClient

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

type ChirpstackClient

type ChirpstackClient struct {
	BaseClient
	// contains filtered or unexported fields
}

func NewChirpstackClient

func NewChirpstackClient(client BaseClient) *ChirpstackClient

func (*ChirpstackClient) AutoRoaming

func (c *ChirpstackClient) AutoRoaming(deviceId string, region common.Region) error

func (*ChirpstackClient) GetApplicationIds

func (c *ChirpstackClient) GetApplicationIds() []string

func (*ChirpstackClient) GetDevice

func (c *ChirpstackClient) GetDevice(deviceId string) (*types.Device, error)

func (*ChirpstackClient) GetDevices

func (c *ChirpstackClient) GetDevices() []*types.Device

func (*ChirpstackClient) Listen

func (c *ChirpstackClient) Listen(ch chan<- types.DeviceEvent)

type Client

type Client interface {
	GetDevices() []*types.Device
	GetDevice(deviceId string) (*types.Device, error)
	Listen(ch chan<- types.DeviceEvent)
}

func NewClient

func NewClient(c *types.LnsConfig) Client

Jump to

Keyboard shortcuts

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