firefly

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: 17 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 {
	client.Config
	// contains filtered or unexported fields
}

func NewConfig

func NewConfig() *Config

NewConfig returns a new Firefly configuration.

func (*Config) Flags

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

Flags returns the flags for the configuration.

func (*Config) Initialize

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

Initialize the configuration.

type Source

type Source struct {
	*Config
	*client.Client
}

func (Source) Close

func (s Source) Close() error

Close implements the Source interface.

func (Source) ExportDevice

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

ExportDevice implements the source.Source interface.

func (Source) Iterator

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

Iterator implements source.Source.

func (Source) RangeDevices

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

RangeDevices implements the source.Source interface.

Source Files

  • config.go
  • firefly.go
  • source.go

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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