kiwi

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2024 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrTooBusy     = errors.New("kiwi too busy")
	ErrBadPassword = errors.New("bad password")
	ErrDown        = errors.New("kiwi down")
)

Functions

This section is empty.

Types

type Client

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

func Open

func Open(host string, username string, password string, centerFrequency float64, bandwidth int, kiwiHandler KiwiHandler) (*Client, error)

func (*Client) Close

func (c *Client) Close()

type KiwiHandler

type KiwiHandler interface {
	Connected(sampleRate int)
	IQData(sampleRate int, data []float32)
}

type Process

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

func New

func New(host string, username string, password string, centerFrequency float64, bandwidth int, spotter Spotter) (*Process, error)

func (*Process) CallsignDecoded

func (p *Process) CallsignDecoded(listener string, callsign string, frequency int, count int, weight int)

func (*Process) CallsignSpotted

func (p *Process) CallsignSpotted(listener string, callsign string, frequency int)

func (*Process) Close

func (p *Process) Close()

func (*Process) Connected

func (p *Process) Connected(sampleRate int)

func (*Process) IQData

func (p *Process) IQData(sampleRate int, data []float32)

func (*Process) ListenerActivated

func (p *Process) ListenerActivated(listener string, frequency int)

func (*Process) ListenerDeactivated

func (p *Process) ListenerDeactivated(listener string, frequency int)

func (*Process) SetAttachmentTimeout

func (p *Process) SetAttachmentTimeout(timeout time.Duration)

func (*Process) SetRXFrequency

func (p *Process) SetRXFrequency(frequency float64)

func (*Process) SetSignalDebounce

func (p *Process) SetSignalDebounce(debounce int)

func (*Process) SetSilenceTimeout

func (p *Process) SetSilenceTimeout(timeout time.Duration)

func (*Process) SetThreshold

func (p *Process) SetThreshold(threshold int)

func (*Process) SetTracer

func (p *Process) SetTracer(tracer trace.Tracer)

func (*Process) SpotTimeout

func (p *Process) SpotTimeout(listener string, callsign string, frequency int)

type Spotter

type Spotter interface {
	Spot(callsign string, frequency float64, msg string, timestamp time.Time)
}

Jump to

Keyboard shortcuts

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