rate

package
v0.22.3 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Counter

type Counter struct {
	core.QSORate
	// contains filtered or unexported fields
}

func NewCounter

func NewCounter(clock core.Clock, asyncRunner core.AsyncRunner) *Counter

func (*Counter) Add

func (c *Counter) Add(qso core.QSO)

func (*Counter) Clear

func (c *Counter) Clear()

func (*Counter) ContestChanged added in v0.11.0

func (c *Counter) ContestChanged(contest core.Contest)

func (*Counter) Hide

func (c *Counter) Hide()

func (*Counter) Notify

func (c *Counter) Notify(listener any)

func (*Counter) SetView

func (c *Counter) SetView(view View)

func (*Counter) Show

func (c *Counter) Show()

func (*Counter) StartAutoRefresh added in v0.5.0

func (c *Counter) StartAutoRefresh()

func (*Counter) Update

func (c *Counter) Update(oldQSO, newQSO core.QSO)

type RateUpdatedListener

type RateUpdatedListener interface {
	RateUpdated(core.QSORate)
}

type RateUpdatedListenerFunc

type RateUpdatedListenerFunc func(core.QSORate)

func (RateUpdatedListenerFunc) RateUpdated

func (f RateUpdatedListenerFunc) RateUpdated(rate core.QSORate)

type View

type View interface {
	Show()
	Hide()

	ShowRate(rate core.QSORate)
	SetGoals(qsos int, points int, multis int)
}

Jump to

Keyboard shortcuts

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