ttnv2

package
v0.9.0-rc5 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2023 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewSource

func NewSource(ctx context.Context, cfg *Config, rootCfg source.Config) (source.Source, error)

NewSource creates a new TTNv2 Source.

Types

type Config added in v0.9.0

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

func New added in v0.9.0

func New() (*Config, *pflag.FlagSet)

func (*Config) Initialize added in v0.9.0

func (c *Config) Initialize(rootConfig source.Config) error

type Source

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

Source implements the Source interface.

func (*Source) Close

func (s *Source) Close() error

Close implements the Source interface.

func (*Source) ExportDevice

func (s *Source) ExportDevice(devID string) (*ttnpb.EndDevice, error)

ExportDevice implements the source.Source interface.

func (*Source) RangeDevices

func (s *Source) RangeDevices(appID string, f func(source.Source, string) error) error

RangeDevices implements the source.Source interface.

Jump to

Keyboard shortcuts

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