Documentation
¶
Index ¶
- type AddProductRequest
- type AddProductResponse
- type DeleteProductRequest
- type GetAllProductsResponse
- type GetProductRequest
- type GetProductResponse
- type HTTPAddProductAdapterOption
- type NetHTTPAddProductAdapter
- type NetHTTPDeleteProductAdapter
- type NetHTTPGetAllProductsAdapter
- type NetHTTPGetProductAdapter
- type NetHTTPUpdateProductAdapter
- type UpdateProductRequest
- type UpdateProductResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddProductRequest ¶
type AddProductResponse ¶
type DeleteProductRequest ¶
type DeleteProductRequest struct {
ID string `json:"id"`
}
type GetAllProductsResponse ¶
type GetProductRequest ¶
type GetProductRequest struct {
ID string `json:"id"`
}
type GetProductResponse ¶
type HTTPAddProductAdapterOption ¶ added in v0.0.2
type HTTPAddProductAdapterOption func(*NetHTTPAddProductAdapter) error
func WithMethodGuard ¶ added in v0.0.2
func WithMethodGuard(methodGuard pkghttp.HttpMethodGuard) HTTPAddProductAdapterOption
func WithService ¶ added in v0.0.2
func WithService(service application.AddProductUseCase) HTTPAddProductAdapterOption
type NetHTTPAddProductAdapter ¶
type NetHTTPAddProductAdapter struct {
// contains filtered or unexported fields
}
func NewNetHTTPAddProductAdapter ¶
func NewNetHTTPAddProductAdapter(opts ...HTTPAddProductAdapterOption) *NetHTTPAddProductAdapter
func (*NetHTTPAddProductAdapter) Handle ¶
func (a *NetHTTPAddProductAdapter) Handle(w http.ResponseWriter, r *http.Request)
type NetHTTPDeleteProductAdapter ¶
type NetHTTPDeleteProductAdapter struct {
// contains filtered or unexported fields
}
func NewNetHTTPDeleteProductAdapter ¶
func NewNetHTTPDeleteProductAdapter(useCase application.DeleteProductUseCase) *NetHTTPDeleteProductAdapter
func (*NetHTTPDeleteProductAdapter) Handle ¶
func (a *NetHTTPDeleteProductAdapter) Handle(w http.ResponseWriter, r *http.Request)
type NetHTTPGetAllProductsAdapter ¶
type NetHTTPGetAllProductsAdapter struct {
// contains filtered or unexported fields
}
func NewNetHTTPGetAllProductsAdapter ¶
func NewNetHTTPGetAllProductsAdapter(useCase application.GetAllProductsUseCase) *NetHTTPGetAllProductsAdapter
func (*NetHTTPGetAllProductsAdapter) Handle ¶
func (a *NetHTTPGetAllProductsAdapter) Handle(w http.ResponseWriter, r *http.Request)
type NetHTTPGetProductAdapter ¶
type NetHTTPGetProductAdapter struct {
// contains filtered or unexported fields
}
func NewNetHTTPGetProductAdapter ¶
func NewNetHTTPGetProductAdapter(useCase application.GetProductUseCase) *NetHTTPGetProductAdapter
func (*NetHTTPGetProductAdapter) Handle ¶
func (a *NetHTTPGetProductAdapter) Handle(w http.ResponseWriter, r *http.Request)
type NetHTTPUpdateProductAdapter ¶
type NetHTTPUpdateProductAdapter struct {
// contains filtered or unexported fields
}
func NewNetHTTPUpdateProductAdapter ¶
func NewNetHTTPUpdateProductAdapter(useCase application.UpdateProductUseCase) *NetHTTPUpdateProductAdapter
func (*NetHTTPUpdateProductAdapter) Handle ¶
func (a *NetHTTPUpdateProductAdapter) Handle(w http.ResponseWriter, r *http.Request)
type UpdateProductRequest ¶
Click to show internal directories.
Click to hide internal directories.