spec

package
v0.0.0-...-822ec7e Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2021 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Order

type Order struct {
	ID          string `json:"id"`
	Product     string `json:"product"`
	Description string `json:"description"`
	Items       int    `json:"items"`
}

Order is a model of an order

type OrderService

type OrderService interface {
	Get(string) (*Order, error)
	Create(*Order) (*Order, error)
	Delete(string) error
	Find(string) ([]Order, error)
	HealthCheck() bool
}

OrderService defines core CRUD methods a order service should have

Jump to

Keyboard shortcuts

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