logistics

package
v0.0.0-...-3aa8cb2 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2024 License: BSD-3-Clause, Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Fixture string
View Source
var Schema string

Functions

func NewUIRouter

func NewUIRouter(templateFS fs.FS, service Service) (*chi.Mux, error)

Types

type Address

type Address struct {
	ID        int64   `db:"id" json:"id"`
	ZIP       string  `db:"zip" json:"zip"`
	City      string  `db:"city" json:"city"`
	Street    string  `db:"street" json:"street"`
	Country   string  `db:"country" json:"country"`
	Latitude  float64 `db:"latitude" json:"latitude"`
	Longitude float64 `db:"longitude" json:"longitude"`
}

func (Address) GetID

func (address Address) GetID() string

func (Address) Redirect

func (address Address) Redirect() string

type AddressFilter

type AddressFilter struct {
	// contains filtered or unexported fields
}

type AddressParams

type AddressParams struct {
	ZIP       string  `form:"zip" json:"zip"`
	City      string  `form:"city" json:"city"`
	Street    string  `form:"street" json:"street"`
	Country   string  `form:"country" json:"country"`
	Latitude  float64 `form:"latitude" json:"latitude"`
	Longitude float64 `form:"longitude" json:"longitude"`
}

type Database

type Database struct {
	// contains filtered or unexported fields
}

func MakeDatabase

func MakeDatabase(db *pgx.Conn) Database

type Item

type Item struct {
	ID         int64  `db:"id" json:"id"`
	Name       string `db:"name" json:"name"`
	SKU        string `db:"sku" json:"sku"`
	CategoryID int64  `db:"category_id" json:"category_id"`
	GrossPrice int64  `db:"gross_price" json:"gross_price"`
	NetPrice   int64  `db:"net_price" json:"net_price"`
}

func (Item) GetID

func (item Item) GetID() string

func (Item) Redirect

func (item Item) Redirect() string

type ItemCategory

type ItemCategory struct {
	ID   int64  `db:"id"`
	Name string `db:"name"`
}

func (ItemCategory) GetID

func (itemCategory ItemCategory) GetID() string

func (ItemCategory) Redirect

func (itemCategory ItemCategory) Redirect() string

type ItemFilter

type ItemFilter struct {
	// contains filtered or unexported fields
}

type ItemParams

type ItemParams struct {
	Name       string `json:"name" form:"name"`
	SKU        string `json:"sku" form:"sku"`
	CategoryID int64  `json:"category_id" form:"category_id"`
	GrossPrice int64  `json:"gross_price" form:"gross_price"`
	NetPrice   int64  `json:"net_price" form:"net_price"`
}

type Plant

type Plant struct {
	ID        int64  `db:"id" json:"id"`
	Name      string `db:"name" json:"name"`
	AddressID int64  `db:"address_id" json:"address_id"`
}

func (Plant) GetID

func (plant Plant) GetID() string

func (Plant) Redirect

func (plant Plant) Redirect() string

type PlantFilter

type PlantFilter struct {
	// contains filtered or unexported fields
}

type PlantParams

type PlantParams struct {
	Name      string `form:"name" json:"name"`
	AddressID int64  `form:"address_id" json:"address_id"`
}

type Service

type Service struct {
	// contains filtered or unexported fields
}

func MakeService

func MakeService(db Database) Service

type UI

type UI struct {
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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