config

package
v0.0.0-...-4c4b7df Latest Latest
Warning

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

Go to latest
Published: May 7, 2019 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddEditConfiguration

func AddEditConfiguration(config *model.Configuration) error

func GetAllConfigurations

func GetAllConfigurations() ([]model.Configuration, error)

func GetConfiguration

func GetConfiguration(id int64) (*model.Configuration, error)

func RemoveConfiguration

func RemoveConfiguration(id int64) error

Types

type Car

type Car struct {
	Name        string   `json:"name"`
	Description string   `json:"description"`
	Paintings   []string `json:"paintings"`
}

func GetAvailableCars

func GetAvailableCars() ([]Car, error)

type Track

type Track struct {
	Name        string `json:"name"`
	Config      string `json:"config"`
	Description string `json:"description"`
	MaxSlots    int    `json:"max_slots"`
}

func GetAvailableTracks

func GetAvailableTracks() ([]Track, error)

Jump to

Keyboard shortcuts

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