app

package
v0.0.0-...-74cc791 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2023 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type App

type App interface {
	Routes(ctx context.Context) http.Handler
}

func New

func New(cfg *config.Config, dbPool *pgxpool.Pool) (App, error)

type CancelOrderRequest

type CancelOrderRequest struct {
	OrderID string `json:"order_id"`
}

type GetOrderRequest

type GetOrderRequest struct {
	ID string `json:"id" uri:"id"`
}

type PlaceOrderRequest

type PlaceOrderRequest struct {
	CustomerID int64   `json:"customer_id"`
	Price      float64 `json:"price"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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