deviceclaimingserver

package
v3.17.2 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2022 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
}

Config is the configuration for the Device Claiming Server.

type DeviceClaimingServer

type DeviceClaimingServer struct {
	*component.Component
	// contains filtered or unexported fields
}

DeviceClaimingServer is the Device Claiming Server.

func New

func New(c *component.Component, conf *Config, opts ...Option) (*DeviceClaimingServer, error)

New returns a new Device Claiming component.

func (*DeviceClaimingServer) Context

func (dcs *DeviceClaimingServer) Context() context.Context

Context returns the context of the Device Claiming Server.

func (*DeviceClaimingServer) RegisterHandlers

func (dcs *DeviceClaimingServer) RegisterHandlers(s *runtime.ServeMux, conn *grpc.ClientConn)

RegisterHandlers registers gRPC handlers.

func (*DeviceClaimingServer) RegisterRoutes

func (dcs *DeviceClaimingServer) RegisterRoutes(server *web.Server)

RegisterRoutes implements web.Registerer. It registers the Device Claiming Server to the web server.

func (*DeviceClaimingServer) RegisterServices

func (dcs *DeviceClaimingServer) RegisterServices(s *grpc.Server)

RegisterServices registers services provided by dcs at s.

func (*DeviceClaimingServer) Roles

func (dcs *DeviceClaimingServer) Roles() []ttnpb.ClusterRole

Roles returns the roles that the Device Claiming Server fulfills.

type EndDeviceClaimingUpstream

type EndDeviceClaimingUpstream interface {
	// SupportsJoinEUI returns whether this EndDeviceClaimingServer is configured to a Join Server that supports this Join EUI.
	SupportsJoinEUI(types.EUI64) bool
	// RegisterRoutes registers web routes.
	RegisterRoutes(server *web.Server)

	Claim(ctx context.Context, req *ttnpb.ClaimEndDeviceRequest) (ids *ttnpb.EndDeviceIdentifiers, err error)
	AuthorizeApplication(ctx context.Context, req *ttnpb.AuthorizeApplicationRequest) (*pbtypes.Empty, error)
	UnauthorizeApplication(ctx context.Context, ids *ttnpb.ApplicationIdentifiers) (*pbtypes.Empty, error)
}

EndDeviceClaimingUpstream provides upstream methods.

type Option

type Option func(*DeviceClaimingServer)

Option configures GatewayClaimingServer.

Jump to

Keyboard shortcuts

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