MCPcopy Create free account

hub / github.com/PacktPublishing/Building-Microservices-with-Go-Second-Edition / functions

Functions488 in github.com/PacktPublishing/Building-Microservices-with-Go-Second-Edition

↓ 46 callersMethodError
()
product-api/9_docs/data/validation.go:16
↓ 31 callersMethodWriteHeader
WriteHeader implements the http.ResponseWriter WriteHeader method
product-images/3_final/handlers/middleware.go:91
↓ 12 callersMethodServeHTTP
ServeHTTP implements the go http.Handler interface https://golang.org/pkg/net/http/#Handler
product-api/5_pattern/handlers/hello.go:22
↓ 9 callersMethodSave
(path string, file io.Reader)
product-images/2_download/files/storage.go:8
↓ 8 callersMethodWithTimeout
WithTimeout adds the timeout to the delete params
product-api/9_docs/client-sdk/client/products/delete_parameters.go:77
↓ 6 callersMethodError
()
product-api/10_CORS/data/validation.go:16
↓ 5 callersMethodGet
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 callersMethodValidate
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 callersMethodValidate
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 callersMethodValidate
Validate the product
product-api/8_validation/data/products.go:23
↓ 4 callersMethodHeader
Header implements the http.ResponseWriter Header method
product-images/3_final/handlers/middleware.go:81
↓ 4 callersFunctionNewValidation
NewValidation creates a new Validation type
product-api/9_docs/data/validation.go:44
↓ 4 callersFunctionNewValidation
NewValidation creates a new Validation type
product-api/10_CORS/data/validation.go:44
↓ 3 callersMethodCreate
(params *CreateParams)
product-api/10_CORS/client-sdk/client/products/products_client.go:30
↓ 3 callersMethodUpdateProduct
UpdateProduct handles PUT requests to update products
product-api/7_Gorilla/handlers/products.go:93
↓ 3 callersFunctionfindIndexByProductID
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 callersFunctionfindIndexByProductID
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 callersFunctionfindIndexByProductID
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 callersMethodreadResponse
(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry)
product-api/9_docs/client-sdk/client/products/delete_responses.go:126
↓ 3 callersMethodreadResponse
(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry)
product-api/9_docs/client-sdk/client/products/create_responses.go:138
↓ 3 callersMethodreadResponse
(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry)
product-api/9_docs/client-sdk/client/products/update_responses.go:126
↓ 3 callersMethodreadResponse
(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry)
product-api/10_CORS/client-sdk/client/products/delete_responses.go:126
↓ 3 callersMethodreadResponse
(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry)
product-api/10_CORS/client-sdk/client/products/create_responses.go:138
↓ 3 callersMethodreadResponse
(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry)
product-api/10_CORS/client-sdk/client/products/update_responses.go:126
↓ 2 callersMethodListAll
(params *ListAllParams)
product-api/10_CORS/client-sdk/client/products/products_client.go:34
↓ 2 callersMethodSetTimeout
SetTimeout adds the timeout to the delete params
product-api/9_docs/client-sdk/client/products/delete_parameters.go:83
↓ 2 callersMethodSetTimeout
SetTimeout adds the timeout to the list all params
product-api/9_docs/client-sdk/client/products/list_all_parameters.go:75
↓ 2 callersMethodSetTimeout
SetTimeout adds the timeout to the create params
product-api/9_docs/client-sdk/client/products/create_parameters.go:85
↓ 2 callersMethodSetTimeout
SetTimeout adds the timeout to the list single params
product-api/9_docs/client-sdk/client/products/list_single_parameters.go:83
↓ 2 callersMethodSetTimeout
SetTimeout adds the timeout to the update params
product-api/9_docs/client-sdk/client/products/update_parameters.go:85
↓ 2 callersMethodSetTimeout
SetTimeout adds the timeout to the delete params
product-api/10_CORS/client-sdk/client/products/delete_parameters.go:83
↓ 2 callersMethodSetTimeout
SetTimeout adds the timeout to the list all params
product-api/10_CORS/client-sdk/client/products/list_all_parameters.go:75
↓ 2 callersMethodSetTimeout
SetTimeout adds the timeout to the create params
product-api/10_CORS/client-sdk/client/products/create_parameters.go:85
↓ 2 callersMethodSetTimeout
SetTimeout adds the timeout to the list single params
product-api/10_CORS/client-sdk/client/products/list_single_parameters.go:83
↓ 2 callersMethodSetTimeout
SetTimeout adds the timeout to the update params
product-api/10_CORS/client-sdk/client/products/update_parameters.go:85
↓ 2 callersMethodSetTransport
(transport runtime.ClientTransport)
product-api/10_CORS/client-sdk/client/products/products_client.go:40
↓ 2 callersFunctionfindIndexByProductID
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 callersFunctionfindIndexByProductID
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 callersMethodfullPath
returns the absolute path
product-images/3_final/files/local.go:86
↓ 2 callersFunctiongetProductID
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 callersFunctiongetProductID
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 callersFunctiongetProductID
getProductID returns the product ID from the URL
product-api/6_REST/handlers/products.go:59
↓ 2 callersMethodpost
(rw http.ResponseWriter, r *http.Request)
product-api/6_REST/handlers/products.go:125
↓ 2 callersMethodreadResponse
(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry)
product-api/9_docs/client-sdk/client/products/list_single_responses.go:99
↓ 2 callersMethodreadResponse
(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry)
product-api/10_CORS/client-sdk/client/products/list_single_responses.go:99
↓ 2 callersFunctionregisterValidSW
(swUrl, config)
frontend/src/serviceWorker.js:57
↓ 2 callersMethodsaveFile
(id, name string, rw http.ResponseWriter, r io.ReadCloser)
product-images/3_final/handlers/files.go:75
↓ 2 callersFunctionsetupLocal
(t *testing.T)
product-images/1_restful/files/local_test.go:12
↓ 2 callersFunctionsetupLocal
(t *testing.T)
product-images/3_final/files/local_test.go:12
↓ 2 callersFunctionsetupLocal
(t *testing.T)
product-images/2_download/files/local_test.go:12
↓ 1 callersFunctionDefaultTransportConfig
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 callersFunctionDefaultTransportConfig
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 callersMethodErrors
Errors converts the slice into a string slice
product-api/9_docs/data/validation.go:29
↓ 1 callersMethodErrors
Errors converts the slice into a string slice
product-api/10_CORS/data/validation.go:29
↓ 1 callersMethodFlush
Flush implements the http.ResponseWriter Flush method
product-images/3_final/handlers/middleware.go:96
↓ 1 callersMethodFlush
Flush implements the Flusher interface which allows ResponseWriters
product-images/2_download/handlers/middleware.go:85
↓ 1 callersMethodGetPayload
()
product-api/9_docs/client-sdk/client/products/create_responses.go:68
↓ 1 callersMethodGetPayload
()
product-api/10_CORS/client-sdk/client/products/create_responses.go:68
↓ 1 callersFunctionNew
New creates a new of product client
product-api/9_docs/client-sdk/client/of_product_client.go:51
↓ 1 callersFunctionNew
New creates a new of product client
product-api/10_CORS/client-sdk/client/of_product_client.go:51
↓ 1 callersFunctionNewCreateNotImplemented
NewCreateNotImplemented creates a CreateNotImplemented with default headers values
product-api/9_docs/client-sdk/client/products/create_responses.go:118
↓ 1 callersFunctionNewCreateNotImplemented
NewCreateNotImplemented creates a CreateNotImplemented with default headers values
product-api/10_CORS/client-sdk/client/products/create_responses.go:118
↓ 1 callersFunctionNewCreateOK
NewCreateOK creates a CreateOK with default headers values
product-api/9_docs/client-sdk/client/products/create_responses.go:52
↓ 1 callersFunctionNewCreateOK
NewCreateOK creates a CreateOK with default headers values
product-api/10_CORS/client-sdk/client/products/create_responses.go:52
↓ 1 callersFunctionNewCreateParams
NewCreateParams creates a new CreateParams object with the default values initialized.
product-api/9_docs/client-sdk/client/products/create_parameters.go:24
↓ 1 callersFunctionNewCreateParams
NewCreateParams creates a new CreateParams object with the default values initialized.
product-api/10_CORS/client-sdk/client/products/create_parameters.go:24
↓ 1 callersFunctionNewCreateUnprocessableEntity
NewCreateUnprocessableEntity creates a CreateUnprocessableEntity with default headers values
product-api/9_docs/client-sdk/client/products/create_responses.go:85
↓ 1 callersFunctionNewCreateUnprocessableEntity
NewCreateUnprocessableEntity creates a CreateUnprocessableEntity with default headers values
product-api/10_CORS/client-sdk/client/products/create_responses.go:85
↓ 1 callersFunctionNewDeleteCreated
NewDeleteCreated creates a DeleteCreated with default headers values
product-api/9_docs/client-sdk/client/products/delete_responses.go:52
↓ 1 callersFunctionNewDeleteCreated
NewDeleteCreated creates a DeleteCreated with default headers values
product-api/10_CORS/client-sdk/client/products/delete_responses.go:52
↓ 1 callersFunctionNewDeleteNotFound
NewDeleteNotFound creates a DeleteNotFound with default headers values
product-api/9_docs/client-sdk/client/products/delete_responses.go:73
↓ 1 callersFunctionNewDeleteNotFound
NewDeleteNotFound creates a DeleteNotFound with default headers values
product-api/10_CORS/client-sdk/client/products/delete_responses.go:73
↓ 1 callersFunctionNewDeleteNotImplemented
NewDeleteNotImplemented creates a DeleteNotImplemented with default headers values
product-api/9_docs/client-sdk/client/products/delete_responses.go:106
↓ 1 callersFunctionNewDeleteNotImplemented
NewDeleteNotImplemented creates a DeleteNotImplemented with default headers values
product-api/10_CORS/client-sdk/client/products/delete_responses.go:106
↓ 1 callersFunctionNewDeleteParams
NewDeleteParams creates a new DeleteParams object with the default values initialized.
product-api/9_docs/client-sdk/client/products/delete_parameters.go:23
↓ 1 callersFunctionNewDeleteParams
NewDeleteParams creates a new DeleteParams object with the default values initialized.
product-api/10_CORS/client-sdk/client/products/delete_parameters.go:23
↓ 1 callersFunctionNewHTTPClient
NewHTTPClient creates a new of product HTTP client.
product-api/9_docs/client-sdk/client/of_product_client.go:33
↓ 1 callersFunctionNewHTTPClient
NewHTTPClient creates a new of product HTTP client.
product-api/10_CORS/client-sdk/client/of_product_client.go:33
↓ 1 callersFunctionNewHTTPClientWithConfig
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 callersFunctionNewHTTPClientWithConfig
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 callersFunctionNewListAllOK
NewListAllOK creates a ListAllOK with default headers values
product-api/9_docs/client-sdk/client/products/list_all_responses.go:40
↓ 1 callersFunctionNewListAllOK
NewListAllOK creates a ListAllOK with default headers values
product-api/10_CORS/client-sdk/client/products/list_all_responses.go:40
↓ 1 callersFunctionNewListAllParams
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 callersFunctionNewListAllParams
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 callersFunctionNewListSingleNotFound
NewListSingleNotFound creates a ListSingleNotFound with default headers values
product-api/9_docs/client-sdk/client/products/list_single_responses.go:79
↓ 1 callersFunctionNewListSingleNotFound
NewListSingleNotFound creates a ListSingleNotFound with default headers values
product-api/10_CORS/client-sdk/client/products/list_single_responses.go:79
↓ 1 callersFunctionNewListSingleOK
NewListSingleOK creates a ListSingleOK with default headers values
product-api/9_docs/client-sdk/client/products/list_single_responses.go:46
↓ 1 callersFunctionNewListSingleOK
NewListSingleOK creates a ListSingleOK with default headers values
product-api/10_CORS/client-sdk/client/products/list_single_responses.go:46
↓ 1 callersFunctionNewListSingleParams
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 callersFunctionNewListSingleParams
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 callersFunctionNewLocal
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 callersFunctionNewLocal
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 callersFunctionNewLocal
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 callersFunctionNewUpdateCreated
NewUpdateCreated creates a UpdateCreated with default headers values
product-api/9_docs/client-sdk/client/products/update_responses.go:52
↓ 1 callersFunctionNewUpdateCreated
NewUpdateCreated creates a UpdateCreated with default headers values
product-api/10_CORS/client-sdk/client/products/update_responses.go:52
↓ 1 callersFunctionNewUpdateNotFound
NewUpdateNotFound creates a UpdateNotFound with default headers values
product-api/9_docs/client-sdk/client/products/update_responses.go:73
↓ 1 callersFunctionNewUpdateNotFound
NewUpdateNotFound creates a UpdateNotFound with default headers values
product-api/10_CORS/client-sdk/client/products/update_responses.go:73
↓ 1 callersFunctionNewUpdateParams
NewUpdateParams creates a new UpdateParams object with the default values initialized.
product-api/9_docs/client-sdk/client/products/update_parameters.go:24
↓ 1 callersFunctionNewUpdateParams
NewUpdateParams creates a new UpdateParams object with the default values initialized.
product-api/10_CORS/client-sdk/client/products/update_parameters.go:24
↓ 1 callersFunctionNewUpdateUnprocessableEntity
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