gormfilament

package module
v0.0.0-...-2fe2c46 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2021 License: LGPL-2.1 Imports: 2 Imported by: 0

README

gormFilament

Gorm universal Filament Model

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Filament

type Filament struct {
	gorm.Model
	Name     string `gorm:"not null"`
	Material string `gorm:"not null"`
	Color    string `gorm:"not null"`
	Weight   uint   `gorm:"not null"`
	Slot     uint   `gorm:"unique;not null;check:slot > 0"`
	Price    uint   `gorm:"check:price >= 0"`
}

func CreateFilamentRGB

func CreateFilamentRGB(name string, material string, color colors.RGBColor, weight uint, slot uint, price uint) Filament

func CreateFilamentRGBHex

func CreateFilamentRGBHex(name string, material string, color string, weight uint, slot uint, price uint) Filament

func CreateFilamentRGBRaw

func CreateFilamentRGBRaw(name string, material string, r uint8, g uint8, b uint8, weight uint, slot uint, price uint) Filament

Jump to

Keyboard shortcuts

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