Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CsvResponse ¶
func CsvResponse(w http.ResponseWriter, fileName string, message []byte)
CsvResponse
func ErrorResponse ¶
func ErrorResponse(w http.ResponseWriter, statusCode int, message string)
ErrorResponse
Types ¶
type Producter ¶
type Producter interface { Create(ctx context.Context, product domain.Product) error UpdateById(ctx context.Context, id int, input domain.UpdateProductInput) error DeleteById(ctx context.Context, id int) error GetAllProducts(ctx context.Context) ([]domain.Product, error) }
Producter - transport contract (handler)
Click to show internal directories.
Click to hide internal directories.