parrot

package
v0.22.2 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2025 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const CQMessageIndex = 0
View Source
const DefaultInterval = 10 * time.Second

Variables

This section is empty.

Functions

This section is empty.

Types

type Keyer

type Keyer interface {
	Send(index int)
	Stop()
}

type Parrot

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

Parrot is a CQ 🦜

func New

func New(workmodeController WorkmodeController, keyer Keyer) *Parrot

func (*Parrot) CallsignEntered

func (p *Parrot) CallsignEntered(call string)

func (*Parrot) KeyerStopped

func (p *Parrot) KeyerStopped()

func (*Parrot) Notify

func (p *Parrot) Notify(listener any)

func (*Parrot) SetInterval

func (p *Parrot) SetInterval(interval time.Duration)

func (*Parrot) SetView

func (p *Parrot) SetView(view View)

func (*Parrot) Start

func (p *Parrot) Start()

func (*Parrot) Stop

func (p *Parrot) Stop()

func (*Parrot) WorkmodeChanged

func (p *Parrot) WorkmodeChanged(workmode core.Workmode)

type ParrotActiveListener

type ParrotActiveListener interface {
	ParrotActive(active bool)
}

type View

type View interface {
	SetParrotActive(active bool)
}

type WorkmodeController

type WorkmodeController interface {
	SetWorkmode(workmode core.Workmode)
}

Jump to

Keyboard shortcuts

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