server

package
v0.0.0-...-7934b4f Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2023 License: Apache-2.0 Imports: 20 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Setup

func Setup(cfg *flags.API, awscfg *aws.Config, e *echo.Echo) error

Types

type Customers

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

Customers customers REST API

func NewCustomers

func NewCustomers(cfg *flags.API, customerStore stores.Customers) *Customers

NewCustomers construct a new customers with the supplied configuration

func (*Customers) Customers

func (cs *Customers) Customers(c echo.Context, params customersapi.CustomersParams) error

Customers Get a list of customers. (GET /customers)

func (*Customers) GetCustomer

func (cs *Customers) GetCustomer(c echo.Context, id string) error

GetCustomer (GET /customers/{id})

func (*Customers) NewCustomer

func (cs *Customers) NewCustomer(c echo.Context) error

NewCustomer Create a customer. (POST /customers)

func (*Customers) UpdateCustomer

func (cs *Customers) UpdateCustomer(c echo.Context, id string) error

UpdateCustomer Update a customer. (PUT /customers/{id})

Jump to

Keyboard shortcuts

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