db

package
v0.0.0-...-2ea3e0e Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2016 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const CategoryPrimaryMachines = "categoryprimary-machines"

CategoryPrimaryMachines bucket name

View Source
const CategoryRawMachines = "categoryraw-machines"

CategoryRawMachines bucket name

View Source
const CategorySecondaryMachines = "categorysecondary-machines"

CategorySecondaryMachines bucket name

View Source
const ControlMachines = "control-machines"

ControlMachines bucket name

View Source
const ControlNames = "control-names"

ControlNames bucket name

View Source
const MameBooleanMachines = "mameboolean-machines"

MameBooleanMachines bucket name

View Source
const MameDriverStatusMachines = "mamedriverstatus-machines"

MameDriverStatusMachines bucket name

View Source
const MatureCategory = "Mature"

MatureCategory key name

View Source
const NPlayerMachines = "nplayer-machines"

NPlayerMachines bucket name

View Source
const NPlayerRawMachines = "nplayerraw-machines"

NPlayerRawMachines bucket name

View Source
const NPlayerTypeMachines = "nplayertype-machines"

NPlayerTypeMachines bucket name

Variables

This section is empty.

Functions

func CreateBuckets

func CreateBuckets(db *bolt.DB, bucketNames []string)

CreateBuckets Creates buckets if they don't exist

func GetAll

func GetAll(db *bolt.DB, bucketName string) map[string]string

GetAll Helper to get all keys and values in a bucket

func GetAllKeys

func GetAllKeys(db *bolt.DB, bucketName string) []string

GetAllKeys Helper to get all keys in a bucket

func GetAllLists

func GetAllLists(db *bolt.DB, bucketName string) map[string][]string

GetAllLists Helper to get all lists in a bucket

func GetBooleanMachines

func GetBooleanMachines(db *bolt.DB) map[string][]string

GetBooleanMachines returns machines by boolean states

func GetControlMachines

func GetControlMachines(db *bolt.DB) map[string][]string

GetControlMachines returns all machines by control

func GetControlNames

func GetControlNames(db *bolt.DB) map[string]string

GetControlNames returns unique control constants with freesytle names

func GetControls

func GetControls(db *bolt.DB) []string

GetControls returns unique control constants

func GetDriverStatusMachines

func GetDriverStatusMachines(db *bolt.DB) map[string][]string

GetDriverStatusMachines returns machines by driver status

func GetNPlayerMachines

func GetNPlayerMachines(db *bolt.DB) map[string][]string

GetNPlayerMachines returns machines by player count

func GetNPlayerRawKeys

func GetNPlayerRawKeys(db *bolt.DB) []string

GetNPlayerRawKeys returns all unique nplayer raw keys

func GetNPlayerRawMachines

func GetNPlayerRawMachines(db *bolt.DB) map[string][]string

GetNPlayerRawMachines returns machines by raw nplayer notation

func GetNPlayerTypeMachines

func GetNPlayerTypeMachines(db *bolt.DB) map[string][]string

GetNPlayerTypeMachines returns machines by player type

func GetPrimaryCategories

func GetPrimaryCategories(db *bolt.DB) []string

GetPrimaryCategories return all unique primary categories

func GetPrimaryCategoryMachines

func GetPrimaryCategoryMachines(db *bolt.DB) map[string][]string

GetPrimaryCategoryMachines returns all machines data for primary categories

func GetRawCategories

func GetRawCategories(db *bolt.DB) []string

GetRawCategories returns all unqiue categories from boltdb

func GetRawCategoryMachines

func GetRawCategoryMachines(db *bolt.DB) map[string][]string

GetRawCategoryMachines returns all machines data for raw categories

func GetSecondaryCategories

func GetSecondaryCategories(db *bolt.DB) []string

GetSecondaryCategories return all unique primary categories

func GetSecondaryCategoryMachines

func GetSecondaryCategoryMachines(db *bolt.DB) map[string][]string

GetSecondaryCategoryMachines returns all machines data for secondary categories

func InList

func InList(list []string, key string) bool

InList Test membership of list

func NewBucketNotFoundError

func NewBucketNotFoundError(bucketName string) error

NewBucketNotFoundError formatting for missing bucket

func NewCreateBucketError

func NewCreateBucketError(bucketName string, err error) error

NewCreateBucketError formatting for create bucket errors

func NewPutBucketError

func NewPutBucketError(bucketName string, key string, value string, err error) error

NewPutBucketError formatting for create bucket errors

func UniqueStrings

func UniqueStrings(data map[string][]string) map[string]bool

UniqueStrings convert map[string][]string in a set

func UpdateCategories

func UpdateCategories(db *bolt.DB, fileName string)

UpdateCategories populates categories from INI

func UpdateControls

func UpdateControls(db *bolt.DB, fileName string)

UpdateControls Populates controls from XML into boltdb

func UpdateMachines

func UpdateMachines(db *bolt.DB, fileName string)

UpdateMachines populates mamexml into boltdb

func UpdateNPlayers

func UpdateNPlayers(db *bolt.DB, fileName string)

UpdateNPlayers populate nplayers data from INI

func UpdateStringList

func UpdateStringList(db *bolt.DB, bucketName string, data map[string][]string) error

UpdateStringList Puts a map[string][]string into the db

Types

This section is empty.

Jump to

Keyboard shortcuts

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