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

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