Documentation
¶
Index ¶
- Constants
- type DBOption
- func Abbreviate(b bool) DBOption
- func AbbreviateCountries(b bool) DBOption
- func AbbreviateDirections(b bool) DBOption
- func AbbreviateStates(b bool) DBOption
- func CheckTitleCase(b bool) DBOption
- func CuratedUsers() DBOption
- func FilterByCountries(countries ...string) DBOption
- func FixRomanNumerals(b bool) DBOption
- func FixStateCountries(b bool) DBOption
- func FromFile(path string) DBOption
- func MergeNewUsers() DBOption
- func MiscFixes(b bool) DBOption
- func RemoveCallFromNickname(b bool) DBOption
- func RemoveMatchingNickname(b bool) DBOption
- func RemoveRepeatedSurnames(b bool) DBOption
- func RemoveRepeats(b bool) DBOption
- func TitleCase(b bool) DBOption
- type RadioidTop
- type RadioidUser
- type User
- type UsersDB
- func (db *UsersDB) AllCountries() ([]string, error)
- func (db *UsersDB) MD380String() string
- func (db *UsersDB) SetOptions(opts ...DBOption)
- func (db *UsersDB) SetProgressCallback(fcn func(int) error)
- func (db *UsersDB) UV380Image() []byte
- func (db *UsersDB) Users() []*User
- func (db *UsersDB) WriteMD380ToolsFile(filename string) error
Constants ¶
View Source
const ( MinProgress = 0 MaxProgress = 1000000 )
Minimum and maximum vallues of the progress counter
View Source
const (
MaxUV380Users = 122197
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DBOption ¶ added in v1.0.26
type DBOption func(db *UsersDB)
func Abbreviate ¶ added in v1.0.26
func AbbreviateCountries ¶ added in v1.0.26
func AbbreviateDirections ¶ added in v1.0.26
func AbbreviateStates ¶ added in v1.0.26
func CheckTitleCase ¶ added in v1.0.26
func CuratedUsers ¶ added in v1.0.26
func CuratedUsers() DBOption
func FilterByCountries ¶ added in v1.0.26
func FixRomanNumerals ¶ added in v1.0.26
func FixStateCountries ¶ added in v1.0.26
func MergeNewUsers ¶ added in v1.0.26
func MergeNewUsers() DBOption
func RemoveCallFromNickname ¶ added in v1.0.26
func RemoveMatchingNickname ¶ added in v1.0.26
func RemoveRepeatedSurnames ¶ added in v1.0.26
func RemoveRepeats ¶ added in v1.0.26
type RadioidTop ¶
type RadioidTop struct {
RadioidUsers []*RadioidUser `json:"users"`
}
type RadioidUser ¶
type User ¶
type User struct { ID int Callsign string Name string City string State string Nickname string Country string // contains filtered or unexported fields }
User - A structure holding information about a user in the databae
type UsersDB ¶
type UsersDB struct {
// contains filtered or unexported fields
}
UsersDB - A structure holding information about the database of DMR users
func (*UsersDB) AllCountries ¶ added in v1.0.18
func (*UsersDB) MD380String ¶ added in v1.0.18
func (*UsersDB) SetOptions ¶
func (*UsersDB) SetProgressCallback ¶
SetProgressCallback - Set callback function for progress of db operations.
func (*UsersDB) UV380Image ¶ added in v1.0.18
func (*UsersDB) WriteMD380ToolsFile ¶
WriteMD380ToolsFile - Write a user db file in MD380 format
Click to show internal directories.
Click to hide internal directories.