handler

package
v1.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 30, 2026 License: MIT Imports: 5 Imported by: 0

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL