ttnv2

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2024 License: Apache-2.0 Imports: 25 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 NewConfig added in v0.12.0

func NewConfig() *Config

func (*Config) Flags added in v0.12.0

func (c *Config) Flags() *pflag.FlagSet

Flags returns the flags for the configuration.

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) Iterator added in v0.10.0

func (s *Source) Iterator(bool) iterator.Iterator

Iterator implements source.Source.

func (*Source) RangeDevices

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

RangeDevices implements the source.Source interface.

Source Files

  • config.go
  • errors.go
  • retry.go
  • source.go
  • ttnv2.go

Jump to

Keyboard shortcuts

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