Documentation ¶
Overview ¶
Package ttgc provides functions to use The Things Gateway Controller.
Package ttgc provides functions to use The Things Gateway Controller.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Upstream ¶
type Upstream struct {
// contains filtered or unexported fields
}
Upstream is the client for The Things Gateway Controller.
func (*Upstream) Claim ¶
func (u *Upstream) Claim( ctx context.Context, eui types.EUI64, ownerToken, clusterAddress string, ) (*dcstypes.GatewayMetadata, error)
Claim implements gateways.GatewayClaimer. Claim does four things:
- Claim the gateway
- Upsert a LoRa Packet Forwarder profile with the root CA presented by the given Gateway Server
- Upsert a Geolocation profile
- Update the gateway with the profiles
func (*Upstream) IsManagedGateway ¶
IsManagedGateway implements gateways.GatewayClaimer. This method always returns true.
Click to show internal directories.
Click to hide internal directories.