loraoss

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AuthError = errors.New("auth error")

Functions

This section is empty.

Types

type Application

type Application interface {
	Create()
	Delete()
	Edit()
	List()
}

type Connector

type Connector interface {
	Login() (token Token, err error)

	Request() *resty.Request
}

type ConnectorConfig

type ConnectorConfig struct {
	Host     string
	UserName string
	Password string
}

type Device

type Device interface {
	Create(device model.DeviceForm) (code int, err error)
	Delete(devEUI string) (int, error)
	Edit(device model.DeviceForm) (code int, err error)
	List(*model.DeviceRequestBuilder) (model.DevicePage, error)

	// OTAA key
	GetOTAAKeys(devEUI string) (keys model.DeviceKeys, code int, err error)
	SetOTAAKeys(keys model.DeviceKeys) (code int, err error)
	UpdateOTAAKeys(keys model.DeviceKeys) (code int, err error)
}

type DeviceProfile added in v0.0.4

type DeviceProfile interface {
	List() (dps model.DeviceProfilePage, err error)
}

type Gateway

type Gateway interface {
	Create(param model.GatewayForm) (code int, err error)
	Delete(id string) (int, error)
	Edit()
	List()
}

type Token

type Token struct {
	Jwt string `json:"jwt"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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