userdb

package
v1.2.40 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2026 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrDecodingDB = dmrdb.ErrDecodingDB

Functions

func GetDate added in v1.0.8

func GetDate() (time.Time, error)

func IsValidUserID

func IsValidUserID(dmrID uint) bool

func Len added in v1.0.13

func Len() int

func UnpackDB added in v1.0.13

func UnpackDB() error

func Update

func Update(url string) error

func ValidUserCallsign added in v1.0.13

func ValidUserCallsign(dmrID uint, callsign string) bool

Types

type DMRUser

type DMRUser struct {
	ID       uint   `json:"id"`
	State    string `json:"state"`
	RadioID  uint   `json:"radio_id"`
	Surname  string `json:"surname"`
	City     string `json:"city"`
	Callsign string `json:"callsign"`
	Country  string `json:"country"`
	Name     string `json:"name"`
	FName    string `json:"fname"`
}

func Get added in v1.0.13

func Get(dmrID uint) (DMRUser, bool)

Jump to

Keyboard shortcuts

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