Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/PacktPublishing/Building-Microservices-with-Go-Second-Edition
/ functions
Functions
488 in github.com/PacktPublishing/Building-Microservices-with-Go-Second-Edition
⨍
Functions
488
◇
Types & classes
125
↓ 1 callers
Function
NewUpdateUnprocessableEntity
NewUpdateUnprocessableEntity creates a UpdateUnprocessableEntity with default headers values
product-api/10_CORS/client-sdk/client/products/update_responses.go:106
↓ 1 callers
Function
NewWrappedResponseWriter
NewWrappedResponseWriter returns a new wrapped response writer
product-images/3_final/handlers/middleware.go:73
↓ 1 callers
Function
NewWrappedResponseWriter
NewWrappedResponseWriter returns a new wrapped response writer
product-images/2_download/handlers/middleware.go:71
↓ 1 callers
Method
SetBody
SetBody adds the body to the create params
product-api/9_docs/client-sdk/client/products/create_parameters.go:118
↓ 1 callers
Method
SetBody
SetBody adds the body to the update params
product-api/9_docs/client-sdk/client/products/update_parameters.go:118
↓ 1 callers
Method
SetBody
SetBody adds the body to the create params
product-api/10_CORS/client-sdk/client/products/create_parameters.go:118
↓ 1 callers
Method
SetBody
SetBody adds the body to the update params
product-api/10_CORS/client-sdk/client/products/update_parameters.go:118
↓ 1 callers
Method
SetContext
SetContext adds the context to the delete params
product-api/9_docs/client-sdk/client/products/delete_parameters.go:94
↓ 1 callers
Method
SetContext
SetContext adds the context to the list all params
product-api/9_docs/client-sdk/client/products/list_all_parameters.go:86
↓ 1 callers
Method
SetContext
SetContext adds the context to the create params
product-api/9_docs/client-sdk/client/products/create_parameters.go:96
↓ 1 callers
Method
SetContext
SetContext adds the context to the list single params
product-api/9_docs/client-sdk/client/products/list_single_parameters.go:94
↓ 1 callers
Method
SetContext
SetContext adds the context to the update params
product-api/9_docs/client-sdk/client/products/update_parameters.go:96
↓ 1 callers
Method
SetContext
SetContext adds the context to the delete params
product-api/10_CORS/client-sdk/client/products/delete_parameters.go:94
↓ 1 callers
Method
SetContext
SetContext adds the context to the list all params
product-api/10_CORS/client-sdk/client/products/list_all_parameters.go:86
↓ 1 callers
Method
SetContext
SetContext adds the context to the create params
product-api/10_CORS/client-sdk/client/products/create_parameters.go:96
↓ 1 callers
Method
SetContext
SetContext adds the context to the list single params
product-api/10_CORS/client-sdk/client/products/list_single_parameters.go:94
↓ 1 callers
Method
SetContext
SetContext adds the context to the update params
product-api/10_CORS/client-sdk/client/products/update_parameters.go:96
↓ 1 callers
Method
SetHTTPClient
SetHTTPClient adds the HTTPClient to the delete params
product-api/9_docs/client-sdk/client/products/delete_parameters.go:105
↓ 1 callers
Method
SetHTTPClient
SetHTTPClient adds the HTTPClient to the list all params
product-api/9_docs/client-sdk/client/products/list_all_parameters.go:97
↓ 1 callers
Method
SetHTTPClient
SetHTTPClient adds the HTTPClient to the create params
product-api/9_docs/client-sdk/client/products/create_parameters.go:107
↓ 1 callers
Method
SetHTTPClient
SetHTTPClient adds the HTTPClient to the list single params
product-api/9_docs/client-sdk/client/products/list_single_parameters.go:105
↓ 1 callers
Method
SetHTTPClient
SetHTTPClient adds the HTTPClient to the update params
product-api/9_docs/client-sdk/client/products/update_parameters.go:107
↓ 1 callers
Method
SetHTTPClient
SetHTTPClient adds the HTTPClient to the delete params
product-api/10_CORS/client-sdk/client/products/delete_parameters.go:105
↓ 1 callers
Method
SetHTTPClient
SetHTTPClient adds the HTTPClient to the list all params
product-api/10_CORS/client-sdk/client/products/list_all_parameters.go:97
↓ 1 callers
Method
SetHTTPClient
SetHTTPClient adds the HTTPClient to the create params
product-api/10_CORS/client-sdk/client/products/create_parameters.go:107
↓ 1 callers
Method
SetHTTPClient
SetHTTPClient adds the HTTPClient to the list single params
product-api/10_CORS/client-sdk/client/products/list_single_parameters.go:105
↓ 1 callers
Method
SetHTTPClient
SetHTTPClient adds the HTTPClient to the update params
product-api/10_CORS/client-sdk/client/products/update_parameters.go:107
↓ 1 callers
Method
SetID
SetID adds the id to the delete params
product-api/9_docs/client-sdk/client/products/delete_parameters.go:116
↓ 1 callers
Method
SetID
SetID adds the id to the list single params
product-api/9_docs/client-sdk/client/products/list_single_parameters.go:116
↓ 1 callers
Method
SetID
SetID adds the id to the delete params
product-api/10_CORS/client-sdk/client/products/delete_parameters.go:116
↓ 1 callers
Method
SetID
SetID adds the id to the list single params
product-api/10_CORS/client-sdk/client/products/list_single_parameters.go:116
↓ 1 callers
Function
ToJSON
ToJSON serializes the given interface into a string based JSON format
product-api/9_docs/data/json.go:9
↓ 1 callers
Function
ToJSON
ToJSON serializes the given interface into a string based JSON format
product-api/10_CORS/data/json.go:9
↓ 1 callers
Method
WithContext
WithContext adds the context to the delete params
product-api/9_docs/client-sdk/client/products/delete_parameters.go:88
↓ 1 callers
Method
WithContext
WithContext adds the context to the delete params
product-api/10_CORS/client-sdk/client/products/delete_parameters.go:88
↓ 1 callers
Method
WithHost
WithHost overrides the default host, provided by the meta section of the spec file.
product-api/9_docs/client-sdk/client/of_product_client.go:83
↓ 1 callers
Method
WithHost
WithHost overrides the default host, provided by the meta section of the spec file.
product-api/10_CORS/client-sdk/client/of_product_client.go:83
↓ 1 callers
Method
WithTimeout
WithTimeout adds the timeout to the delete params
product-api/10_CORS/client-sdk/client/products/delete_parameters.go:77
↓ 1 callers
Function
checkValidServiceWorker
(swUrl, config)
frontend/src/serviceWorker.js:101
↓ 1 callers
Method
delete
(rw http.ResponseWriter, r *http.Request)
product-api/6_REST/handlers/products.go:143
↓ 1 callers
Method
fullPath
returns the absolute path
product-images/1_restful/files/local.go:70
↓ 1 callers
Method
fullPath
returns the absolute path
product-images/2_download/files/local.go:70
↓ 1 callers
Method
getAll
getAll handles HTTP GET requests for the products returning all products
product-api/6_REST/handlers/products.go:91
↓ 1 callers
Function
getProductID
getProductID returns the product ID from the URL
product-api/7_Gorilla/handlers/products.go:33
↓ 1 callers
Function
getProductID
getProductID returns the product ID from the URL
product-api/8_validation/handlers/products.go:33
↓ 1 callers
Method
getSingle
getSingle handles HTTP GET requests for the products returning a single product
product-api/6_REST/handlers/products.go:76
↓ 1 callers
Method
put
(rw http.ResponseWriter, r *http.Request)
product-api/6_REST/handlers/products.go:101
↓ 1 callers
Method
readResponse
(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry)
product-api/9_docs/client-sdk/client/products/list_all_responses.go:60
↓ 1 callers
Method
readResponse
(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry)
product-api/10_CORS/client-sdk/client/products/list_all_responses.go:60
↓ 1 callers
Method
render
()
frontend/src/Toast.js:22
↓ 1 callers
Method
saveFile
(id, name string, rw http.ResponseWriter, r io.ReadCloser)
product-images/1_restful/handlers/files.go:47
↓ 1 callers
Method
saveFile
(id, name string, rw http.ResponseWriter, r io.ReadCloser)
product-images/2_download/handlers/files.go:47
↓ 1 callers
Method
validateDescription
(formats strfmt.Registry)
product-api/9_docs/client-sdk/models/product.go:74
↓ 1 callers
Method
validateDescription
(formats strfmt.Registry)
product-api/10_CORS/client-sdk/models/product.go:74
↓ 1 callers
Method
validateID
(formats strfmt.Registry)
product-api/9_docs/client-sdk/models/product.go:87
↓ 1 callers
Method
validateID
(formats strfmt.Registry)
product-api/10_CORS/client-sdk/models/product.go:87
↓ 1 callers
Method
validateName
(formats strfmt.Registry)
product-api/9_docs/client-sdk/models/product.go:100
↓ 1 callers
Method
validateName
(formats strfmt.Registry)
product-api/10_CORS/client-sdk/models/product.go:100
↓ 1 callers
Method
validatePrice
(formats strfmt.Registry)
product-api/9_docs/client-sdk/models/product.go:113
↓ 1 callers
Method
validatePrice
(formats strfmt.Registry)
product-api/10_CORS/client-sdk/models/product.go:113
↓ 1 callers
Method
validateSKU
(formats strfmt.Registry)
product-api/9_docs/client-sdk/models/product.go:130
↓ 1 callers
Method
validateSKU
(formats strfmt.Registry)
product-api/10_CORS/client-sdk/models/product.go:130
Function
AddProduct
AddProduct adds a new product to the database
product-api/9_docs/data/products.go:83
Function
AddProduct
AddProduct adds a new product to the database
product-api/7_Gorilla/data/products.go:56
Function
AddProduct
AddProduct adds a new product to the database
product-api/10_CORS/data/products.go:83
Function
AddProduct
AddProduct adds a new product to the database
product-api/6_REST/data/products.go:71
Function
AddProduct
AddProduct adds a new product to the database
product-api/8_validation/data/products.go:79
Method
CheckContentLengthMiddleware
CheckContentLengthMiddleware ensures that the content length is not greater than our allowed max. This can not be 100% depended on as Content-Length m
product-images/1_restful/handlers/middleware.go:23
Method
CheckContentLengthMiddleware
CheckContentLengthMiddleware ensures that the content length is not greater than our allowed max. This can not be 100% depended on as Content-Length m
product-images/3_final/handlers/middleware.go:26
Method
CheckContentLengthMiddleware
CheckContentLengthMiddleware ensures that the content length is not greater than our allowed max. This can not be 100% depended on as Content-Length m
product-images/2_download/handlers/middleware.go:26
Method
Create
(params *CreateParams)
product-api/9_docs/client-sdk/client/products/products_client.go:30
Method
Create
* Create Create a new product */
product-api/9_docs/client-sdk/client/products/products_client.go:46
Method
Create
swagger:route POST /products products create Create a new product responses: 200: productResponse 422: errorValidation 501: errorResponse Create han
product-api/9_docs/handlers/post.go:18
Method
Create
* Create Create a new product */
product-api/10_CORS/client-sdk/client/products/products_client.go:46
Method
Create
swagger:route POST /products products create Create a new product responses: 200: productResponse 422: errorValidation 501: errorResponse Create han
product-api/10_CORS/handlers/post.go:18
Method
CreateProduct
CreateProduct handles post requests to add new products
product-api/7_Gorilla/handlers/products.go:114
Method
CreateProduct
CreateProduct handles post requests to add new products
product-api/8_validation/handlers/products.go:114
Method
Delete
(params *DeleteParams)
product-api/9_docs/client-sdk/client/products/products_client.go:32
Method
Delete
* Delete Update a products details */
product-api/9_docs/client-sdk/client/products/products_client.go:80
Method
Delete
swagger:route DELETE /products/{id} products delete Update a products details responses: 201: noContentResponse 404: errorResponse 501: errorRespons
product-api/9_docs/handlers/delete.go:18
Method
Delete
(params *DeleteParams)
product-api/10_CORS/client-sdk/client/products/products_client.go:32
Method
Delete
* Delete Update a products details */
product-api/10_CORS/client-sdk/client/products/products_client.go:80
Method
Delete
swagger:route DELETE /products/{id} products delete Update a products details responses: 201: noContentResponse 404: errorResponse 501: errorRespons
product-api/10_CORS/handlers/delete.go:18
Function
DeleteProduct
DeleteProduct deletes a product from the database
product-api/9_docs/data/products.go:91
Function
DeleteProduct
DeleteProduct deletes a product from the database
product-api/10_CORS/data/products.go:91
Function
DeleteProduct
DeleteProduct deletes a product from the database If a product with the given id does not exist in the database this function returns a ProductNotFoun
product-api/6_REST/data/products.go:83
Method
Error
()
product-api/9_docs/client-sdk/client/products/list_all_responses.go:52
Method
Error
()
product-api/9_docs/client-sdk/client/products/delete_responses.go:63
Method
Error
()
product-api/9_docs/client-sdk/client/products/delete_responses.go:85
Method
Error
()
product-api/9_docs/client-sdk/client/products/delete_responses.go:118
Method
Error
()
product-api/9_docs/client-sdk/client/products/create_responses.go:64
Method
Error
()
product-api/9_docs/client-sdk/client/products/create_responses.go:97
Method
Error
()
product-api/9_docs/client-sdk/client/products/create_responses.go:130
Method
Error
()
product-api/9_docs/client-sdk/client/products/list_single_responses.go:58
Method
Error
()
product-api/9_docs/client-sdk/client/products/list_single_responses.go:91
Method
Error
()
product-api/9_docs/client-sdk/client/products/update_responses.go:63
Method
Error
()
product-api/9_docs/client-sdk/client/products/update_responses.go:85
Method
Error
()
product-api/9_docs/client-sdk/client/products/update_responses.go:118
Method
Error
()
product-api/10_CORS/client-sdk/client/products/list_all_responses.go:52
Method
Error
()
product-api/10_CORS/client-sdk/client/products/delete_responses.go:63
← previous
next →
101–200 of 488, ranked by callers