customers

package
v0.0.0-...-b9e8574 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateCustomer

func CreateCustomer(w http.ResponseWriter, r *http.Request)

func DeleteCustomer

func DeleteCustomer(w http.ResponseWriter, r *http.Request)

func GetCustomers

func GetCustomers(w http.ResponseWriter, r *http.Request)

func GetSingleCustomer

func GetSingleCustomer(w http.ResponseWriter, r *http.Request)

func Init

func Init()

func UpdateCustomer

func UpdateCustomer(w http.ResponseWriter, r *http.Request)

Types

type Customer

type Customer struct {
	Id        string `json:"id"`
	Name      string `json:"name"`
	Role      string `json:"role"`
	Email     string `json:"email"`
	Phone     string `json:"phone"`
	Contacted bool   `json:"contacted"`
}

type ErrorResponse

type ErrorResponse struct {
	Message string `json:"message"`
}

Jump to

Keyboard shortcuts

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