Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CSVHandler ¶
type CSVHandler struct {
// contains filtered or unexported fields
}
func NewCSVHandler ¶
func NewCSVHandler(service *service.ConversionService, logger *log.Logger) *CSVHandler
func (*CSVHandler) GetAllData ¶
func (h *CSVHandler) GetAllData(w http.ResponseWriter, r *http.Request)
GetAllData retrieves all CSV data from the database
func (*CSVHandler) GetDataByID ¶
func (h *CSVHandler) GetDataByID(w http.ResponseWriter, r *http.Request)
GetDataByID retrieves a specific CSV data record by ID
func (*CSVHandler) Health ¶
func (h *CSVHandler) Health(w http.ResponseWriter, r *http.Request)
Health check endpoint
func (*CSVHandler) UploadCSV ¶
func (h *CSVHandler) UploadCSV(w http.ResponseWriter, r *http.Request)
UploadCSV handles CSV file upload
Click to show internal directories.
Click to hide internal directories.