sdrtrunk

package
v0.0.0-...-6d053a5 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2026 License: BSD-3-Clause Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Alias

type Alias struct {
	XMLName  xml.Name `xml:"alias"`
	Name     string   `xml:"name,attr,omitempty"`
	Color    int      `xml:"color,attr,omitempty"`
	Group    string   `xml:"group,attr,omitempty"`
	IconName string   `xml:"iconName,attr,omitempty"`
	List     string   `xml:"list,attr,omitempty"`
	IDs      []ID     `xml:"id"`
}

type AuxDecodeConfig

type AuxDecodeConfig struct {
	Attributes []xml.Attr `xml:",any,attr"`
	Config     []byte     `xml:",innerxml"`
}

type Channel

type Channel struct {
	XMLName xml.Name `xml:"channel"`
	Name    string   `xml:"name,attr"`
	System  string   `xml:"system,attr"`
	Enabled bool     `xml:"enabled,attr"`
	Site    string   `xml:"site,attr"`
	Order   int      `xml:"order,attr"`

	AliasList           string          `xml:"alias_list_name"`
	EventLogConfig      EventLogConfig  `xml:"event_log_configuration"`
	SourceConfiguration SourceConfig    `xml:"source_configuration"`
	AuxDecodeConfig     AuxDecodeConfig `xml:"aux_decode_configuration"`
	DecodeConfig        DecodeConfig    `xml:"decode_configuration"`
	RecordConfig        RecordConfig    `xml:"record_configuration"`
}

type DecodeConfig

type DecodeConfig struct {
	Attributes []xml.Attr `xml:",any,attr"`
	Config     []byte     `xml:",innerxml"`
}

type Driver

type Driver struct{}

func New

func New() *Driver

func (*Driver) ExportTalkgroups

func (st *Driver) ExportTalkgroups(ctx context.Context, w io.Writer, tgs []*talkgroups.Talkgroup, tmpl []byte) error

type EventLogConfig

type EventLogConfig struct {
	Attributes []xml.Attr `xml:",any,attr"`
	Config     []byte     `xml:",innerxml"`
}

type ID

type ID struct {
	XMLName  xml.Name `xml:"id"`
	Type     string   `xml:"type,attr"`
	Priority *int     `xml:"priority,attr,omitempty"`
	Channel  *string  `xml:"channel,attr,omitempty"`
	Protocol *string  `xml:"protocol,attr,omitempty"`
	Value    *int     `xml:"value,attr,omitempty"`
	Min      *int     `xml:"min,attr,omitempty"`
	Max      *int     `xml:"max,attr,omitempty"`
}

type Playlist

type Playlist struct {
	XMLName  xml.Name  `xml:"playlist"`
	Version  int       `xml:"version,attr"`
	Aliases  []Alias   `xml:"alias"`
	Channels []Channel `xml:"channel,omitempty"`
	Streams  []Stream  `xml:"stream,omitempty"`
	// contains filtered or unexported fields
}

func (*Playlist) HasStream

func (p *Playlist) HasStream(name string) bool

type RecordConfig

type RecordConfig struct {
	Attributes []xml.Attr `xml:",any,attr"`
	Config     []byte     `xml:",innerxml"`
}

type SourceConfig

type SourceConfig struct {
	Attributes []xml.Attr `xml:",any,attr"`
	Config     []byte     `xml:",innerxml"`
}

type Stream

type Stream struct {
	XMLName    xml.Name   `xml:"stream"`
	Attributes []xml.Attr `xml:",any,attr"`
	Stream     []byte     `xml:",innerxml"`
}

Jump to

Keyboard shortcuts

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