talkgroups

package
v0.0.0-...-1a3a2fa Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2026 License: BSD-3-Clause Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrBadTG = errors.New("bad talkgroup format")

Functions

This section is empty.

Types

type ID

type ID struct {
	System    uint32 `json:"sys"`
	Talkgroup uint32 `json:"tg"`
}

func TG

func TG[T intId, U intId](sys T, tgid U) ID

func (*ID) MarshalJSON

func (tid *ID) MarshalJSON() ([]byte, error)

func (ID) String

func (t ID) String() string

func (*ID) UnmarshalJSON

func (tid *ID) UnmarshalJSON(j []byte) error

func (*ID) UnmarshalText

func (id *ID) UnmarshalText(txt []byte) error

func (*ID) UnmarshalYAML

func (id *ID) UnmarshalYAML(node *yaml.Node) error

type IDs

type IDs []ID

func TGIDs

func TGIDs(s ...string) IDs

TGIDs creates IDs from its string "sys:tg" arguments. It is primarily intended for tests.

func (IDs) Tuples

func (t IDs) Tuples() database.TGTuples

func (IDs) UTuples

func (t IDs) UTuples() database.TGTuplesU

type Metadata

type Metadata map[string]any

type PresenceMap

type PresenceMap map[ID]struct{}

func (PresenceMap) Has

func (t PresenceMap) Has(id ID) bool

func (PresenceMap) Put

func (t PresenceMap) Put(id ID)

type Talkgroup

type Talkgroup struct {
	database.Talkgroup
	System  database.System `json:"system"`
	Learned bool            `json:"learned"`
}

func (*Talkgroup) GetResourceName

func (t *Talkgroup) GetResourceName() string

func (Talkgroup) String

func (t Talkgroup) String() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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