database

package
v0.0.0-...-5baf481 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2024 License: AGPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DBInit

func DBInit(conf *DBConfig)

func GetBoxPrice

func GetBoxPrice() float32

func GetDB

func GetDB() *gorm.DB

func GetPublicKey

func GetPublicKey() string

func GetStickerPrice

func GetStickerPrice() float32

func GetValues

func GetValues(keys []string) (models.KeyValueStoreSlice, error)

func InsertOrder

func InsertOrder(o *models.Order) bool

func InsertUseCase

func InsertUseCase(o *models.UseCase) bool

func LoadSettings

func LoadSettings(profile string)

func OrderHasValidPrice

func OrderHasValidPrice(o *models.Order) bool

func SaveKeyValues

func SaveKeyValues(values map[string]string)

func SaveSettings

func SaveSettings() error

func SetBoxPrice

func SetBoxPrice(newPrice float32)

func SetPublicKey

func SetPublicKey(nv string) error

func SetStickerPrice

func SetStickerPrice(newPrice float32)

Types

type DBConfig

type DBConfig struct {
	DatabasePath string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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