repeaterdb

package
v1.0.47 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2023 License: AGPL-3.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrUpdateFailed = errors.New("update failed")
	ErrUnmarshal    = errors.New("unmarshal failed")
)

Functions

func GetDate added in v1.0.8

func GetDate() time.Time

func IsValidRepeaterID

func IsValidRepeaterID(dmrID uint) bool

func Len added in v1.0.13

func Len() int

func UnpackDB added in v1.0.13

func UnpackDB()

func Update

func Update() error

func ValidRepeaterCallsign added in v1.0.13

func ValidRepeaterCallsign(dmrID uint, callsign string) bool

Types

type DMRRepeater

type DMRRepeater struct {
	Locator     string `json:"locator"`
	ID          string `json:"id"`
	Callsign    string `json:"callsign"`
	City        string `json:"city"`
	State       string `json:"state"`
	Country     string `json:"country"`
	Frequency   string `json:"frequency"`
	ColorCode   uint   `json:"color_code"`
	Offset      string `json:"offset"`
	Assigned    string `json:"assigned"`
	TSLinked    string `json:"ts_linked"`
	Trustee     string `json:"trustee"`
	MapInfo     string `json:"map_info"`
	Map         uint   `json:"map"`
	IPSCNetwork string `json:"ipsc_network"`
}

func Get added in v1.0.13

func Get(id uint) (DMRRepeater, bool)

type RepeaterDB added in v1.0.13

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

Jump to

Keyboard shortcuts

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