userdb

package
v1.0.20 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2023 License: AGPL-3.0 Imports: 14 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 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()

func Update

func Update() 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)

type UserDB added in v1.0.13

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

Jump to

Keyboard shortcuts

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