tts

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: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CompressFields added in v0.11.1

func CompressFields(fields []string, tree FieldTree) []string

CompressFields compresses the fields with the reference field tree.

Types

type FieldTree added in v0.11.1

type FieldTree map[string]FieldTree

FieldTree is a tree of fields.

func (FieldTree) Add added in v0.11.1

func (n FieldTree) Add(paths ...string) FieldTree

Add adds the paths to the field tree.

func (FieldTree) Compress added in v0.11.1

func (n FieldTree) Compress(reference FieldTree) FieldTree

Compress returns a new field tree that is the result of compressing the field tree with the reference field tree.

func (FieldTree) Fields added in v0.11.1

func (n FieldTree) Fields() []string

Fields returns the fields of the field tree.

func (FieldTree) Same added in v0.11.1

func (n FieldTree) Same(other FieldTree) bool

Same returns true if the field tree is the same as the other field tree.

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

  • errors.go
  • field_masks_generated.go
  • field_tree.go
  • source.go
  • tts.go
  • util.go

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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