Documentation ¶ Index ¶ func NewSource(ctx context.Context, flags *pflag.FlagSet) (source.Source, error) type Source func (s *Source) Close() error func (s *Source) ExportDevice(devID string) (*ttnpb.EndDevice, error) func (s *Source) RangeDevices(_ string, f func(source.Source, string) error) error Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func NewSource ¶ func NewSource(ctx context.Context, flags *pflag.FlagSet) (source.Source, error) NewSource creates a new TTNv2 Source. Types ¶ 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(_ string, f func(source.Source, string) error) error RangeDevices implements the source.Source interface. Source Files ¶ View all Source files config.go errors.go retry.go source.go ttnv2.go Click to show internal directories. Click to hide internal directories.