Documentation
¶
Index ¶
- func AddTranslation(lang string, label string, value string) error
- func Connect()
- func DeleteOrder(uid, ribbon uint) error
- func DeleteRibbon(id uint) error
- func DeleteTranslation(lang, label string) error
- func Exec(query string, args []any) (sql.Result, error)
- func GetAllOrders() (map[string]any, error)
- func GetGlyphs() (map[uint]Glyph, error)
- func GetOptions() (map[string]any, error)
- func GetOrderByID(order_id uint) (map[string]any, error)
- func GetOrders(uid uint) (map[string]any, error)
- func GetTranslation(lang string, key string) (map[string]interface{}, error)
- func Query(statement string, args []any) ([]map[string]interface{}, error)
- func SetColumns(uid, columns uint) error
- func SetOption(name, value string) error
- func SetOrder(uid, ribbon uint, values map[string]uint) error
- func SetStatus(uid uint, status string) error
- type Category
- type Glyph
- type Ribbon
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeleteOrder ¶
func DeleteRibbon ¶
---------------------------------------------------------------------------------------------------------------------- Delete ----------------------------------------------------------------------------------------------------------------------
func DeleteTranslation ¶
func GetAllOrders ¶
func GetOptions ¶
func SetColumns ¶
Types ¶
type Category ¶
type Category struct {
ID uint
Background string
Stripes string
Glyph string
Wing1 string
Wing2 string
Ordering uint
}
func CreateCategory ¶
func GetCategories ¶
func GetCategory ¶
type Glyph ¶
func CreateGlyph ¶
type Ribbon ¶
type Ribbon struct {
ID uint
Category uint
Glyph uint
NoWings bool
Ordering uint
Special map[string]string
}
func CreateRibbon ¶
---------------------------------------------------------------------------------------------------------------------- Create ----------------------------------------------------------------------------------------------------------------------
func GetRibbons ¶
---------------------------------------------------------------------------------------------------------------------- Read ----------------------------------------------------------------------------------------------------------------------