Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultServerURL = func() *url.URL { parsed, err := url.Parse(defaultServerURL) if err != nil { panic(fmt.Sprintf("loradms: failed to parse base URL: %v", err)) } return parsed }()
DefaultServerURL is the default server URL for LoRa Cloud Device Management v1.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct { Uplinks *Uplinks // contains filtered or unexported fields }
Client is an API client for the LoRa Cloud Device Management v1 service.
type Option ¶
type Option interface {
// contains filtered or unexported methods
}
Option is an option for the API client.
func WithBaseURL ¶ added in v3.9.0
WithBaseURL uses the given base URL for the requests of the client.
type Uplinks ¶
type Uplinks struct {
// contains filtered or unexported fields
}
Uplinks is an API client for the Uplink API.
func (*Uplinks) Send ¶
func (u *Uplinks) Send(ctx context.Context, uplinks objects.DeviceUplinks) (objects.DeviceUplinkResponses, error)
Send sends the given uplink to the Device Management service.
Click to show internal directories.
Click to hide internal directories.