Documentation ¶
Index ¶
- func DBInit(conf *DBConfig)
- func GetBoxPrice() float32
- func GetDB() *gorm.DB
- func GetPublicKey() string
- func GetStickerPrice() float32
- func GetValues(keys []string) (models.KeyValueStoreSlice, error)
- func InsertOrder(o *models.Order) bool
- func InsertUseCase(o *models.UseCase) bool
- func LoadSettings(profile string)
- func OrderHasValidPrice(o *models.Order) bool
- func SaveKeyValues(values map[string]string)
- func SaveSettings() error
- func SetBoxPrice(newPrice float32)
- func SetPublicKey(nv string) error
- func SetStickerPrice(newPrice float32)
- type DBConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetBoxPrice ¶
func GetBoxPrice() float32
func GetPublicKey ¶
func GetPublicKey() string
func GetStickerPrice ¶
func GetStickerPrice() float32
func InsertOrder ¶
func InsertUseCase ¶
func LoadSettings ¶
func LoadSettings(profile string)
func OrderHasValidPrice ¶
func SaveKeyValues ¶
func SaveSettings ¶
func SaveSettings() error
func SetBoxPrice ¶
func SetBoxPrice(newPrice float32)
func SetPublicKey ¶
func SetStickerPrice ¶
func SetStickerPrice(newPrice float32)
Types ¶
Click to show internal directories.
Click to hide internal directories.