config

package
v0.0.0-...-ebc8d01 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2019 License: MIT Imports: 1 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	OrderDB        string
	OrderTable     string
	ItemTable      string
	ClosedInterval int

	Stock Stocker
	User  UserChecker
}

type Stocker

type Stocker interface {
	ModifyProductStock(tx *sql.Tx, targetID uint32, num int) error
}

type UserChecker

type UserChecker interface {
	UserCheck(tx *sql.Tx, userid uint64, productID uint32) error
}

Jump to

Keyboard shortcuts

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