store

package
v0.0.0-...-065a330 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2020 License: AGPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BandRecord

type BandRecord struct {
	radio.FreqBand
	Date       time.Time
	Name       string
	Modulation string
}

type BandStore

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

func NewBandStore

func NewBandStore() *BandStore

func (*BandStore) Add

func (b *BandStore) Add(fbs []radio.FreqBand)

func (BandStore) Bands

func (b BandStore) Bands() []BandRecord

func (*BandStore) ImportCSV

func (b *BandStore) ImportCSV(r io.Reader) error

func (*BandStore) Load

func (b *BandStore) Load(fpath string) error

func (*BandStore) Range

func (b *BandStore) Range(fb radio.FreqBand) (ret []radio.FreqBand)

func (*BandStore) Save

func (b *BandStore) Save(fpath string) error

type SignalDir

type SignalDir struct {
	CenterMHz float64
	Path      string
}

type SignalFile

type SignalFile struct {
	Band radio.FreqBand
	Date time.Time
	Path string
}

type SignalStore

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

func NewSignalStore

func NewSignalStore(dir string) (*SignalStore, error)

func (*SignalStore) HasBand

func (ss *SignalStore) HasBand(fb radio.FreqBand) bool

func (*SignalStore) OpenFile

func (ss *SignalStore) OpenFile(fb radio.FreqBand) (*os.File, error)

func (*SignalStore) Signals

func (ss *SignalStore) Signals(fb radio.FreqBand) (ret []SignalFile)

func (*SignalStore) Spectrograms

func (ss *SignalStore) Spectrograms(fb radio.FreqBand) (ret []SignalFile)

Jump to

Keyboard shortcuts

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