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
↓ 46 callers
Method
Error
()
product-api/9_docs/data/validation.go:16
↓ 31 callers
Method
WriteHeader
WriteHeader implements the http.ResponseWriter WriteHeader method
product-images/3_final/handlers/middleware.go:91
↓ 12 callers
Method
ServeHTTP
ServeHTTP implements the go http.Handler interface https://golang.org/pkg/net/http/#Handler
product-api/5_pattern/handlers/hello.go:22
↓ 9 callers
Method
Save
(path string, file io.Reader)
product-images/2_download/files/storage.go:8
↓ 8 callers
Method
WithTimeout
WithTimeout adds the timeout to the delete params
product-api/9_docs/client-sdk/client/products/delete_parameters.go:77
↓ 6 callers
Method
Error
()
product-api/10_CORS/data/validation.go:16
↓ 5 callers
Method
Get
Get the file at the given path and return a Reader the calling function is responsible for closing the reader
product-images/3_final/files/local.go:72
↓ 5 callers
Method
Validate
Validate the item for more detail the returned error can be cast into a validator.ValidationErrors collection if ve, ok := err.(validator.ValidationE
product-api/9_docs/data/validation.go:68
↓ 5 callers
Method
Validate
Validate the item for more detail the returned error can be cast into a validator.ValidationErrors collection if ve, ok := err.(validator.ValidationE
product-api/10_CORS/data/validation.go:68
↓ 5 callers
Method
Validate
Validate the product
product-api/8_validation/data/products.go:23
↓ 4 callers
Method
Header
Header implements the http.ResponseWriter Header method
product-images/3_final/handlers/middleware.go:81
↓ 4 callers
Function
NewValidation
NewValidation creates a new Validation type
product-api/9_docs/data/validation.go:44
↓ 4 callers
Function
NewValidation
NewValidation creates a new Validation type
product-api/10_CORS/data/validation.go:44
↓ 3 callers
Method
Create
(params *CreateParams)
product-api/10_CORS/client-sdk/client/products/products_client.go:30
↓ 3 callers
Method
UpdateProduct
UpdateProduct handles PUT requests to update products
product-api/7_Gorilla/handlers/products.go:93
↓ 3 callers
Function
findIndexByProductID
findIndex finds the index of a product in the database returns -1 when no product can be found
product-api/9_docs/data/products.go:104
↓ 3 callers
Function
findIndexByProductID
findIndex finds the index of a product in the database returns -1 when no product can be found
product-api/10_CORS/data/products.go:104
↓ 3 callers
Function
findIndexByProductID
findIndex finds the index of a product in the database returns -1 when no product can be found
product-api/6_REST/data/products.go:97
↓ 3 callers
Method
readResponse
(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry)
product-api/9_docs/client-sdk/client/products/delete_responses.go:126
↓ 3 callers
Method
readResponse
(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry)
product-api/9_docs/client-sdk/client/products/create_responses.go:138
↓ 3 callers
Method
readResponse
(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry)
product-api/9_docs/client-sdk/client/products/update_responses.go:126
↓ 3 callers
Method
readResponse
(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry)
product-api/10_CORS/client-sdk/client/products/delete_responses.go:126
↓ 3 callers
Method
readResponse
(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry)
product-api/10_CORS/client-sdk/client/products/create_responses.go:138
↓ 3 callers
Method
readResponse
(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry)
product-api/10_CORS/client-sdk/client/products/update_responses.go:126
↓ 2 callers
Method
ListAll
(params *ListAllParams)
product-api/10_CORS/client-sdk/client/products/products_client.go:34
↓ 2 callers
Method
SetTimeout
SetTimeout adds the timeout to the delete params
product-api/9_docs/client-sdk/client/products/delete_parameters.go:83
↓ 2 callers
Method
SetTimeout
SetTimeout adds the timeout to the list all params
product-api/9_docs/client-sdk/client/products/list_all_parameters.go:75
↓ 2 callers
Method
SetTimeout
SetTimeout adds the timeout to the create params
product-api/9_docs/client-sdk/client/products/create_parameters.go:85
↓ 2 callers
Method
SetTimeout
SetTimeout adds the timeout to the list single params
product-api/9_docs/client-sdk/client/products/list_single_parameters.go:83
↓ 2 callers
Method
SetTimeout
SetTimeout adds the timeout to the update params
product-api/9_docs/client-sdk/client/products/update_parameters.go:85
↓ 2 callers
Method
SetTimeout
SetTimeout adds the timeout to the delete params
product-api/10_CORS/client-sdk/client/products/delete_parameters.go:83
↓ 2 callers
Method
SetTimeout
SetTimeout adds the timeout to the list all params
product-api/10_CORS/client-sdk/client/products/list_all_parameters.go:75
↓ 2 callers
Method
SetTimeout
SetTimeout adds the timeout to the create params
product-api/10_CORS/client-sdk/client/products/create_parameters.go:85
↓ 2 callers
Method
SetTimeout
SetTimeout adds the timeout to the list single params
product-api/10_CORS/client-sdk/client/products/list_single_parameters.go:83
↓ 2 callers
Method
SetTimeout
SetTimeout adds the timeout to the update params
product-api/10_CORS/client-sdk/client/products/update_parameters.go:85
↓ 2 callers
Method
SetTransport
(transport runtime.ClientTransport)
product-api/10_CORS/client-sdk/client/products/products_client.go:40
↓ 2 callers
Function
findIndexByProductID
findIndex finds the index of a product in the database returns -1 when no product can be found
product-api/7_Gorilla/data/products.go:65
↓ 2 callers
Function
findIndexByProductID
findIndex finds the index of a product in the database returns -1 when no product can be found
product-api/8_validation/data/products.go:88
↓ 2 callers
Method
fullPath
returns the absolute path
product-images/3_final/files/local.go:86
↓ 2 callers
Function
getProductID
getProductID returns the product ID from the URL Panics if cannot convert the id into an integer this should never happen as the router ensures that t
product-api/9_docs/handlers/products.go:44
↓ 2 callers
Function
getProductID
getProductID returns the product ID from the URL Panics if cannot convert the id into an integer this should never happen as the router ensures that t
product-api/10_CORS/handlers/products.go:44
↓ 2 callers
Function
getProductID
getProductID returns the product ID from the URL
product-api/6_REST/handlers/products.go:59
↓ 2 callers
Method
post
(rw http.ResponseWriter, r *http.Request)
product-api/6_REST/handlers/products.go:125
↓ 2 callers
Method
readResponse
(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry)
product-api/9_docs/client-sdk/client/products/list_single_responses.go:99
↓ 2 callers
Method
readResponse
(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry)
product-api/10_CORS/client-sdk/client/products/list_single_responses.go:99
↓ 2 callers
Function
registerValidSW
(swUrl, config)
frontend/src/serviceWorker.js:57
↓ 2 callers
Method
saveFile
(id, name string, rw http.ResponseWriter, r io.ReadCloser)
product-images/3_final/handlers/files.go:75
↓ 2 callers
Function
setupLocal
(t *testing.T)
product-images/1_restful/files/local_test.go:12
↓ 2 callers
Function
setupLocal
(t *testing.T)
product-images/3_final/files/local_test.go:12
↓ 2 callers
Function
setupLocal
(t *testing.T)
product-images/2_download/files/local_test.go:12
↓ 1 callers
Function
DefaultTransportConfig
DefaultTransportConfig creates a TransportConfig with the default settings taken from the meta section of the spec file.
product-api/9_docs/client-sdk/client/of_product_client.go:65
↓ 1 callers
Function
DefaultTransportConfig
DefaultTransportConfig creates a TransportConfig with the default settings taken from the meta section of the spec file.
product-api/10_CORS/client-sdk/client/of_product_client.go:65
↓ 1 callers
Method
Errors
Errors converts the slice into a string slice
product-api/9_docs/data/validation.go:29
↓ 1 callers
Method
Errors
Errors converts the slice into a string slice
product-api/10_CORS/data/validation.go:29
↓ 1 callers
Method
Flush
Flush implements the http.ResponseWriter Flush method
product-images/3_final/handlers/middleware.go:96
↓ 1 callers
Method
Flush
Flush implements the Flusher interface which allows ResponseWriters
product-images/2_download/handlers/middleware.go:85
↓ 1 callers
Method
GetPayload
()
product-api/9_docs/client-sdk/client/products/create_responses.go:68
↓ 1 callers
Method
GetPayload
()
product-api/10_CORS/client-sdk/client/products/create_responses.go:68
↓ 1 callers
Function
New
New creates a new of product client
product-api/9_docs/client-sdk/client/of_product_client.go:51
↓ 1 callers
Function
New
New creates a new of product client
product-api/10_CORS/client-sdk/client/of_product_client.go:51
↓ 1 callers
Function
NewCreateNotImplemented
NewCreateNotImplemented creates a CreateNotImplemented with default headers values
product-api/9_docs/client-sdk/client/products/create_responses.go:118
↓ 1 callers
Function
NewCreateNotImplemented
NewCreateNotImplemented creates a CreateNotImplemented with default headers values
product-api/10_CORS/client-sdk/client/products/create_responses.go:118
↓ 1 callers
Function
NewCreateOK
NewCreateOK creates a CreateOK with default headers values
product-api/9_docs/client-sdk/client/products/create_responses.go:52
↓ 1 callers
Function
NewCreateOK
NewCreateOK creates a CreateOK with default headers values
product-api/10_CORS/client-sdk/client/products/create_responses.go:52
↓ 1 callers
Function
NewCreateParams
NewCreateParams creates a new CreateParams object with the default values initialized.
product-api/9_docs/client-sdk/client/products/create_parameters.go:24
↓ 1 callers
Function
NewCreateParams
NewCreateParams creates a new CreateParams object with the default values initialized.
product-api/10_CORS/client-sdk/client/products/create_parameters.go:24
↓ 1 callers
Function
NewCreateUnprocessableEntity
NewCreateUnprocessableEntity creates a CreateUnprocessableEntity with default headers values
product-api/9_docs/client-sdk/client/products/create_responses.go:85
↓ 1 callers
Function
NewCreateUnprocessableEntity
NewCreateUnprocessableEntity creates a CreateUnprocessableEntity with default headers values
product-api/10_CORS/client-sdk/client/products/create_responses.go:85
↓ 1 callers
Function
NewDeleteCreated
NewDeleteCreated creates a DeleteCreated with default headers values
product-api/9_docs/client-sdk/client/products/delete_responses.go:52
↓ 1 callers
Function
NewDeleteCreated
NewDeleteCreated creates a DeleteCreated with default headers values
product-api/10_CORS/client-sdk/client/products/delete_responses.go:52
↓ 1 callers
Function
NewDeleteNotFound
NewDeleteNotFound creates a DeleteNotFound with default headers values
product-api/9_docs/client-sdk/client/products/delete_responses.go:73
↓ 1 callers
Function
NewDeleteNotFound
NewDeleteNotFound creates a DeleteNotFound with default headers values
product-api/10_CORS/client-sdk/client/products/delete_responses.go:73
↓ 1 callers
Function
NewDeleteNotImplemented
NewDeleteNotImplemented creates a DeleteNotImplemented with default headers values
product-api/9_docs/client-sdk/client/products/delete_responses.go:106
↓ 1 callers
Function
NewDeleteNotImplemented
NewDeleteNotImplemented creates a DeleteNotImplemented with default headers values
product-api/10_CORS/client-sdk/client/products/delete_responses.go:106
↓ 1 callers
Function
NewDeleteParams
NewDeleteParams creates a new DeleteParams object with the default values initialized.
product-api/9_docs/client-sdk/client/products/delete_parameters.go:23
↓ 1 callers
Function
NewDeleteParams
NewDeleteParams creates a new DeleteParams object with the default values initialized.
product-api/10_CORS/client-sdk/client/products/delete_parameters.go:23
↓ 1 callers
Function
NewHTTPClient
NewHTTPClient creates a new of product HTTP client.
product-api/9_docs/client-sdk/client/of_product_client.go:33
↓ 1 callers
Function
NewHTTPClient
NewHTTPClient creates a new of product HTTP client.
product-api/10_CORS/client-sdk/client/of_product_client.go:33
↓ 1 callers
Function
NewHTTPClientWithConfig
NewHTTPClientWithConfig creates a new of product HTTP client, using a customizable transport config.
product-api/9_docs/client-sdk/client/of_product_client.go:39
↓ 1 callers
Function
NewHTTPClientWithConfig
NewHTTPClientWithConfig creates a new of product HTTP client, using a customizable transport config.
product-api/10_CORS/client-sdk/client/of_product_client.go:39
↓ 1 callers
Function
NewListAllOK
NewListAllOK creates a ListAllOK with default headers values
product-api/9_docs/client-sdk/client/products/list_all_responses.go:40
↓ 1 callers
Function
NewListAllOK
NewListAllOK creates a ListAllOK with default headers values
product-api/10_CORS/client-sdk/client/products/list_all_responses.go:40
↓ 1 callers
Function
NewListAllParams
NewListAllParams creates a new ListAllParams object with the default values initialized.
product-api/9_docs/client-sdk/client/products/list_all_parameters.go:22
↓ 1 callers
Function
NewListAllParams
NewListAllParams creates a new ListAllParams object with the default values initialized.
product-api/10_CORS/client-sdk/client/products/list_all_parameters.go:22
↓ 1 callers
Function
NewListSingleNotFound
NewListSingleNotFound creates a ListSingleNotFound with default headers values
product-api/9_docs/client-sdk/client/products/list_single_responses.go:79
↓ 1 callers
Function
NewListSingleNotFound
NewListSingleNotFound creates a ListSingleNotFound with default headers values
product-api/10_CORS/client-sdk/client/products/list_single_responses.go:79
↓ 1 callers
Function
NewListSingleOK
NewListSingleOK creates a ListSingleOK with default headers values
product-api/9_docs/client-sdk/client/products/list_single_responses.go:46
↓ 1 callers
Function
NewListSingleOK
NewListSingleOK creates a ListSingleOK with default headers values
product-api/10_CORS/client-sdk/client/products/list_single_responses.go:46
↓ 1 callers
Function
NewListSingleParams
NewListSingleParams creates a new ListSingleParams object with the default values initialized.
product-api/9_docs/client-sdk/client/products/list_single_parameters.go:23
↓ 1 callers
Function
NewListSingleParams
NewListSingleParams creates a new ListSingleParams object with the default values initialized.
product-api/10_CORS/client-sdk/client/products/list_single_parameters.go:23
↓ 1 callers
Function
NewLocal
NewLocal creates a new Local filesytem with the given base path basePath is the base directory to save files to
product-images/1_restful/files/local.go:19
↓ 1 callers
Function
NewLocal
NewLocal creates a new Local filesytem with the given base path basePath is the base directory to save files to
product-images/3_final/files/local.go:19
↓ 1 callers
Function
NewLocal
NewLocal creates a new Local filesytem with the given base path basePath is the base directory to save files to
product-images/2_download/files/local.go:19
↓ 1 callers
Function
NewUpdateCreated
NewUpdateCreated creates a UpdateCreated with default headers values
product-api/9_docs/client-sdk/client/products/update_responses.go:52
↓ 1 callers
Function
NewUpdateCreated
NewUpdateCreated creates a UpdateCreated with default headers values
product-api/10_CORS/client-sdk/client/products/update_responses.go:52
↓ 1 callers
Function
NewUpdateNotFound
NewUpdateNotFound creates a UpdateNotFound with default headers values
product-api/9_docs/client-sdk/client/products/update_responses.go:73
↓ 1 callers
Function
NewUpdateNotFound
NewUpdateNotFound creates a UpdateNotFound with default headers values
product-api/10_CORS/client-sdk/client/products/update_responses.go:73
↓ 1 callers
Function
NewUpdateParams
NewUpdateParams creates a new UpdateParams object with the default values initialized.
product-api/9_docs/client-sdk/client/products/update_parameters.go:24
↓ 1 callers
Function
NewUpdateParams
NewUpdateParams creates a new UpdateParams object with the default values initialized.
product-api/10_CORS/client-sdk/client/products/update_parameters.go:24
↓ 1 callers
Function
NewUpdateUnprocessableEntity
NewUpdateUnprocessableEntity creates a UpdateUnprocessableEntity with default headers values
product-api/9_docs/client-sdk/client/products/update_responses.go:106
next →
1–100 of 488, ranked by callers