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

FunctionNewListSingleParamsWithContext
NewListSingleParamsWithContext creates a new ListSingleParams object with the default values initialized, and the ability to set a context for a reque
product-api/10_CORS/client-sdk/client/products/list_single_parameters.go:43
FunctionNewListSingleParamsWithHTTPClient
NewListSingleParamsWithHTTPClient creates a new ListSingleParams object with the default values initialized, and the ability to set a custom HTTPClien
product-api/9_docs/client-sdk/client/products/list_single_parameters.go:53
FunctionNewListSingleParamsWithHTTPClient
NewListSingleParamsWithHTTPClient creates a new ListSingleParams object with the default values initialized, and the ability to set a custom HTTPClien
product-api/10_CORS/client-sdk/client/products/list_single_parameters.go:53
FunctionNewListSingleParamsWithTimeout
NewListSingleParamsWithTimeout creates a new ListSingleParams object with the default values initialized, and the ability to set a timeout on a reques
product-api/9_docs/client-sdk/client/products/list_single_parameters.go:33
FunctionNewListSingleParamsWithTimeout
NewListSingleParamsWithTimeout creates a new ListSingleParams object with the default values initialized, and the ability to set a timeout on a reques
product-api/10_CORS/client-sdk/client/products/list_single_parameters.go:33
FunctionNewMiddleware
NewMiddleware creates a new middleware handlers
product-images/1_restful/handlers/middleware.go:15
FunctionNewMiddleware
NewMiddleware creates a new middleware handlers
product-images/3_final/handlers/middleware.go:18
FunctionNewMiddleware
NewMiddleware creates a new middleware handlers
product-images/2_download/handlers/middleware.go:18
FunctionNewProducts
NewProducts returns a new products handler with the given logger
product-api/9_docs/handlers/products.go:23
FunctionNewProducts
NewProducts returns a new products handler with the given logger
product-api/7_Gorilla/handlers/products.go:28
FunctionNewProducts
NewProducts returns a new products handler with the given logger
product-api/10_CORS/handlers/products.go:23
FunctionNewProducts
NewProducts returns a new products handler with the given logger
product-api/6_REST/handlers/products.go:19
FunctionNewProducts
NewProducts returns a new products handler with the given logger
product-api/8_validation/handlers/products.go:28
FunctionNewUpdateParamsWithContext
NewUpdateParamsWithContext creates a new UpdateParams object with the default values initialized, and the ability to set a context for a request
product-api/9_docs/client-sdk/client/products/update_parameters.go:44
FunctionNewUpdateParamsWithContext
NewUpdateParamsWithContext creates a new UpdateParams object with the default values initialized, and the ability to set a context for a request
product-api/10_CORS/client-sdk/client/products/update_parameters.go:44
FunctionNewUpdateParamsWithHTTPClient
NewUpdateParamsWithHTTPClient creates a new UpdateParams object with the default values initialized, and the ability to set a custom HTTPClient for a
product-api/9_docs/client-sdk/client/products/update_parameters.go:54
FunctionNewUpdateParamsWithHTTPClient
NewUpdateParamsWithHTTPClient creates a new UpdateParams object with the default values initialized, and the ability to set a custom HTTPClient for a
product-api/10_CORS/client-sdk/client/products/update_parameters.go:54
FunctionNewUpdateParamsWithTimeout
NewUpdateParamsWithTimeout creates a new UpdateParams object with the default values initialized, and the ability to set a timeout on a request
product-api/9_docs/client-sdk/client/products/update_parameters.go:34
FunctionNewUpdateParamsWithTimeout
NewUpdateParamsWithTimeout creates a new UpdateParams object with the default values initialized, and the ability to set a timeout on a request
product-api/10_CORS/client-sdk/client/products/update_parameters.go:34
MethodReadResponse
ReadResponse reads a server response into the received o.
product-api/9_docs/client-sdk/client/products/list_all_responses.go:25
MethodReadResponse
ReadResponse reads a server response into the received o.
product-api/9_docs/client-sdk/client/products/delete_responses.go:25
MethodReadResponse
ReadResponse reads a server response into the received o.
product-api/9_docs/client-sdk/client/products/create_responses.go:25
MethodReadResponse
ReadResponse reads a server response into the received o.
product-api/9_docs/client-sdk/client/products/list_single_responses.go:25
MethodReadResponse
ReadResponse reads a server response into the received o.
product-api/9_docs/client-sdk/client/products/update_responses.go:25
MethodReadResponse
ReadResponse reads a server response into the received o.
product-api/10_CORS/client-sdk/client/products/list_all_responses.go:25
MethodReadResponse
ReadResponse reads a server response into the received o.
product-api/10_CORS/client-sdk/client/products/delete_responses.go:25
MethodReadResponse
ReadResponse reads a server response into the received o.
product-api/10_CORS/client-sdk/client/products/create_responses.go:25
MethodReadResponse
ReadResponse reads a server response into the received o.
product-api/10_CORS/client-sdk/client/products/list_single_responses.go:25
MethodReadResponse
ReadResponse reads a server response into the received o.
product-api/10_CORS/client-sdk/client/products/update_responses.go:25
MethodSave
(path string, file io.Reader)
product-images/1_restful/files/storage.go:8
MethodSave
Save the contents of the Writer to the given path path is a relative path, basePath will be appended
product-images/1_restful/files/local.go:30
MethodSave
(path string, file io.Reader)
product-images/3_final/files/storage.go:8
MethodSave
Save the contents of the Writer to the given path path is a relative path, basePath will be appended
product-images/3_final/files/local.go:30
MethodSave
Save the contents of the Writer to the given path path is a relative path, basePath will be appended
product-images/2_download/files/local.go:30
MethodSaveFileREST
SaveFileREST saves the contents of the request to a file from the request
product-images/1_restful/handlers/files.go:27
MethodSaveFileREST
SaveFileREST saves the contents of the request to a file from the request
product-images/3_final/handlers/files.go:28
MethodSaveFileREST
SaveFileREST saves the contents of the request to a file from the request
product-images/2_download/handlers/files.go:27
MethodSaveMultipart
SaveMultipart handles multipart files
product-images/3_final/handlers/files.go:53
MethodServeHTTP
ServeHTTP implements the go http.Handler interface https://golang.org/pkg/net/http/#Handler
product-api/4_handlers/handlers/hello.go:22
MethodServeHTTP
ServeHTTP implements the go http.Handler interface https://golang.org/pkg/net/http/#Handler
product-api/4_handlers/handlers/goodbye.go:21
MethodServeHTTP
ServeHTTP implements the http.Handler interface
product-api/6_REST/handlers/products.go:27
MethodServeHTTP
ServeHTTP implements the go http.Handler interface https://golang.org/pkg/net/http/#Handler
product-api/5_pattern/handlers/goodbye.go:21
MethodSetTransport
SetTransport changes the transport on the client and all its subresources
product-api/9_docs/client-sdk/client/of_product_client.go:110
MethodSetTransport
(transport runtime.ClientTransport)
product-api/9_docs/client-sdk/client/products/products_client.go:40
MethodSetTransport
SetTransport changes the transport on the client
product-api/9_docs/client-sdk/client/products/products_client.go:214
MethodSetTransport
SetTransport changes the transport on the client and all its subresources
product-api/10_CORS/client-sdk/client/of_product_client.go:110
MethodSetTransport
SetTransport changes the transport on the client
product-api/10_CORS/client-sdk/client/products/products_client.go:214
FunctionTestGetsContentsAndWritesToWriter
(t *testing.T)
product-images/1_restful/files/local_test.go:49
FunctionTestGetsContentsAndWritesToWriter
(t *testing.T)
product-images/3_final/files/local_test.go:49
FunctionTestGetsContentsAndWritesToWriter
(t *testing.T)
product-images/2_download/files/local_test.go:49
FunctionTestProductInvalidSKUReturnsErr
(t *testing.T)
product-api/9_docs/data/products_test.go:31
FunctionTestProductInvalidSKUReturnsErr
(t *testing.T)
product-api/10_CORS/data/products_test.go:31
FunctionTestProductInvalidSKUReturnsErr
(t *testing.T)
product-api/8_validation/data/products_test.go:28
FunctionTestProductMissingNameReturnsErr
(t *testing.T)
product-api/9_docs/data/products_test.go:10
FunctionTestProductMissingNameReturnsErr
(t *testing.T)
product-api/10_CORS/data/products_test.go:10
FunctionTestProductMissingNameReturnsErr
(t *testing.T)
product-api/8_validation/data/products_test.go:9
FunctionTestProductMissingPriceReturnsErr
(t *testing.T)
product-api/9_docs/data/products_test.go:20
FunctionTestProductMissingPriceReturnsErr
(t *testing.T)
product-api/10_CORS/data/products_test.go:20
FunctionTestProductMissingPriceReturnsErr
(t *testing.T)
product-api/8_validation/data/products_test.go:18
FunctionTestProductsToJSON
(t *testing.T)
product-api/9_docs/data/products_test.go:55
FunctionTestProductsToJSON
(t *testing.T)
product-api/10_CORS/data/products_test.go:55
FunctionTestSavesContentsOfReader
(t *testing.T)
product-images/1_restful/files/local_test.go:30
FunctionTestSavesContentsOfReader
(t *testing.T)
product-images/3_final/files/local_test.go:30
FunctionTestSavesContentsOfReader
(t *testing.T)
product-images/2_download/files/local_test.go:30
FunctionTestValidProductDoesNOTReturnsErr
(t *testing.T)
product-api/9_docs/data/products_test.go:43
FunctionTestValidProductDoesNOTReturnsErr
(t *testing.T)
product-api/10_CORS/data/products_test.go:43
FunctionTestValidProductDoesNOTReturnsErr
(t *testing.T)
product-api/8_validation/data/products_test.go:39
FunctionToJSON
ToJSON serializes the given interface into a string based JSON format
product-api/7_Gorilla/data/json.go:9
FunctionToJSON
ToJSON serializes the Products into a string based JSON format
product-api/6_REST/data/products.go:32
FunctionToJSON
ToJSON serializes the given interface into a string based JSON format
product-api/8_validation/data/json.go:9
MethodUnmarshalBinary
UnmarshalBinary interface implementation
product-api/9_docs/client-sdk/models/generic_error.go:35
MethodUnmarshalBinary
UnmarshalBinary interface implementation
product-api/9_docs/client-sdk/models/validation_error.go:35
MethodUnmarshalBinary
UnmarshalBinary interface implementation
product-api/9_docs/client-sdk/models/product.go:152
MethodUnmarshalBinary
UnmarshalBinary interface implementation
product-api/10_CORS/client-sdk/models/generic_error.go:35
MethodUnmarshalBinary
UnmarshalBinary interface implementation
product-api/10_CORS/client-sdk/models/validation_error.go:35
MethodUnmarshalBinary
UnmarshalBinary interface implementation
product-api/10_CORS/client-sdk/models/product.go:152
MethodUpdate
(params *UpdateParams)
product-api/9_docs/client-sdk/client/products/products_client.go:38
MethodUpdate
* Update Update a products details */
product-api/9_docs/client-sdk/client/products/products_client.go:182
MethodUpdate
swagger:route PUT /products products update Update a products details responses: 201: noContentResponse 404: errorResponse 422: errorValidation Upda
product-api/9_docs/handlers/put.go:18
MethodUpdate
(params *UpdateParams)
product-api/10_CORS/client-sdk/client/products/products_client.go:38
MethodUpdate
* Update Update a products details */
product-api/10_CORS/client-sdk/client/products/products_client.go:182
MethodUpdate
swagger:route PUT /products products update Update a products details responses: 201: noContentResponse 404: errorResponse 422: errorValidation Upda
product-api/10_CORS/handlers/put.go:18
FunctionUpdateProduct
UpdateProduct replaces a product in the database with the given item. If a product with the given id does not exist in the database this function retu
product-api/9_docs/data/products.go:70
FunctionUpdateProduct
UpdateProduct replaces a product in the database with the given item. If a product with the given id does not exist in the database this function retu
product-api/7_Gorilla/data/products.go:43
FunctionUpdateProduct
UpdateProduct replaces a product in the database with the given item. If a product with the given id does not exist in the database this function retu
product-api/10_CORS/data/products.go:70
FunctionUpdateProduct
UpdateProduct replaces a product in the database with the given item. If a product with the given id does not exist in the database this function retu
product-api/6_REST/data/products.go:58
FunctionUpdateProduct
UpdateProduct replaces a product in the database with the given item. If a product with the given id does not exist in the database this function retu
product-api/8_validation/data/products.go:66
MethodUpdateProduct
UpdateProduct handles PUT requests to update products
product-api/8_validation/handlers/products.go:93
MethodValidate
Validate validates this generic error
product-api/9_docs/client-sdk/models/generic_error.go:22
MethodValidate
Validate validates this validation error
product-api/9_docs/client-sdk/models/validation_error.go:22
MethodValidate
Validate validates this product
product-api/9_docs/client-sdk/models/product.go:45
MethodValidate
Validate validates this generic error
product-api/10_CORS/client-sdk/models/generic_error.go:22
MethodValidate
Validate validates this validation error
product-api/10_CORS/client-sdk/models/validation_error.go:22
MethodValidate
Validate validates this product
product-api/10_CORS/client-sdk/models/product.go:45
MethodWithBasePath
WithBasePath overrides the default basePath, provided by the meta section of the spec file.
product-api/9_docs/client-sdk/client/of_product_client.go:90
MethodWithBasePath
WithBasePath overrides the default basePath, provided by the meta section of the spec file.
product-api/10_CORS/client-sdk/client/of_product_client.go:90
MethodWithBody
WithBody adds the body to the create params
product-api/9_docs/client-sdk/client/products/create_parameters.go:112
MethodWithBody
WithBody adds the body to the update params
product-api/9_docs/client-sdk/client/products/update_parameters.go:112
MethodWithBody
WithBody adds the body to the create params
product-api/10_CORS/client-sdk/client/products/create_parameters.go:112
MethodWithBody
WithBody adds the body to the update params
product-api/10_CORS/client-sdk/client/products/update_parameters.go:112
← previousnext →301–400 of 488, ranked by callers