Documentation ¶
Index ¶
- Constants
- func CreateBuckets(db *bolt.DB, bucketNames []string)
- func GetAll(db *bolt.DB, bucketName string) map[string]string
- func GetAllKeys(db *bolt.DB, bucketName string) []string
- func GetAllLists(db *bolt.DB, bucketName string) map[string][]string
- func GetBooleanMachines(db *bolt.DB) map[string][]string
- func GetControlMachines(db *bolt.DB) map[string][]string
- func GetControlNames(db *bolt.DB) map[string]string
- func GetControls(db *bolt.DB) []string
- func GetDriverStatusMachines(db *bolt.DB) map[string][]string
- func GetNPlayerMachines(db *bolt.DB) map[string][]string
- func GetNPlayerRawKeys(db *bolt.DB) []string
- func GetNPlayerRawMachines(db *bolt.DB) map[string][]string
- func GetNPlayerTypeMachines(db *bolt.DB) map[string][]string
- func GetPrimaryCategories(db *bolt.DB) []string
- func GetPrimaryCategoryMachines(db *bolt.DB) map[string][]string
- func GetRawCategories(db *bolt.DB) []string
- func GetRawCategoryMachines(db *bolt.DB) map[string][]string
- func GetSecondaryCategories(db *bolt.DB) []string
- func GetSecondaryCategoryMachines(db *bolt.DB) map[string][]string
- func InList(list []string, key string) bool
- func NewBucketNotFoundError(bucketName string) error
- func NewCreateBucketError(bucketName string, err error) error
- func NewPutBucketError(bucketName string, key string, value string, err error) error
- func UniqueStrings(data map[string][]string) map[string]bool
- func UpdateCategories(db *bolt.DB, fileName string)
- func UpdateControls(db *bolt.DB, fileName string)
- func UpdateMachines(db *bolt.DB, fileName string)
- func UpdateNPlayers(db *bolt.DB, fileName string)
- func UpdateStringList(db *bolt.DB, bucketName string, data map[string][]string) error
Constants ¶
const CategoryPrimaryMachines = "categoryprimary-machines"
CategoryPrimaryMachines bucket name
const CategoryRawMachines = "categoryraw-machines"
CategoryRawMachines bucket name
const CategorySecondaryMachines = "categorysecondary-machines"
CategorySecondaryMachines bucket name
const ControlMachines = "control-machines"
ControlMachines bucket name
const ControlNames = "control-names"
ControlNames bucket name
const MameBooleanMachines = "mameboolean-machines"
MameBooleanMachines bucket name
const MameDriverStatusMachines = "mamedriverstatus-machines"
MameDriverStatusMachines bucket name
const MatureCategory = "Mature"
MatureCategory key name
const NPlayerMachines = "nplayer-machines"
NPlayerMachines bucket name
const NPlayerRawMachines = "nplayerraw-machines"
NPlayerRawMachines bucket name
const NPlayerTypeMachines = "nplayertype-machines"
NPlayerTypeMachines bucket name
Variables ¶
This section is empty.
Functions ¶
func CreateBuckets ¶
CreateBuckets Creates buckets if they don't exist
func GetAllKeys ¶
GetAllKeys Helper to get all keys in a bucket
func GetAllLists ¶
GetAllLists Helper to get all lists in a bucket
func GetBooleanMachines ¶
GetBooleanMachines returns machines by boolean states
func GetControlMachines ¶
GetControlMachines returns all machines by control
func GetControlNames ¶
GetControlNames returns unique control constants with freesytle names
func GetControls ¶
GetControls returns unique control constants
func GetDriverStatusMachines ¶
GetDriverStatusMachines returns machines by driver status
func GetNPlayerMachines ¶
GetNPlayerMachines returns machines by player count
func GetNPlayerRawKeys ¶
GetNPlayerRawKeys returns all unique nplayer raw keys
func GetNPlayerRawMachines ¶
GetNPlayerRawMachines returns machines by raw nplayer notation
func GetNPlayerTypeMachines ¶
GetNPlayerTypeMachines returns machines by player type
func GetPrimaryCategories ¶
GetPrimaryCategories return all unique primary categories
func GetPrimaryCategoryMachines ¶
GetPrimaryCategoryMachines returns all machines data for primary categories
func GetRawCategories ¶
GetRawCategories returns all unqiue categories from boltdb
func GetRawCategoryMachines ¶
GetRawCategoryMachines returns all machines data for raw categories
func GetSecondaryCategories ¶
GetSecondaryCategories return all unique primary categories
func GetSecondaryCategoryMachines ¶
GetSecondaryCategoryMachines returns all machines data for secondary categories
func NewBucketNotFoundError ¶
NewBucketNotFoundError formatting for missing bucket
func NewCreateBucketError ¶
NewCreateBucketError formatting for create bucket errors
func NewPutBucketError ¶
NewPutBucketError formatting for create bucket errors
func UniqueStrings ¶
UniqueStrings convert map[string][]string in a set
func UpdateCategories ¶
UpdateCategories populates categories from INI
func UpdateControls ¶
UpdateControls Populates controls from XML into boltdb
func UpdateMachines ¶
UpdateMachines populates mamexml into boltdb
func UpdateNPlayers ¶
UpdateNPlayers populate nplayers data from INI
Types ¶
This section is empty.