handlers

package
v0.0.0-...-d43a3fe Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2025 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BaseHandler

type BaseHandler struct {
	// contains filtered or unexported fields
}

BaseHandler contains common handler dependencies and methods

func NewBaseHandler

func NewBaseHandler(conv iface.Converter, storage *storage.FileStorage, logger utils.Logger) *BaseHandler

NewBaseHandler creates a new BaseHandler

type ConvertHandler

type ConvertHandler struct {
	*BaseHandler
}

ConvertHandler handles file conversion requests

func NewConvertHandler

func NewConvertHandler(conv iface.Converter, storage *storage.FileStorage, logger utils.Logger) *ConvertHandler

NewConvertHandler creates a new ConvertHandler

func (*ConvertHandler) ConvertFile

func (h *ConvertHandler) ConvertFile(c *gin.Context)

ConvertFile handles file conversion requests

func (*ConvertHandler) GetSupportedFormats

func (h *ConvertHandler) GetSupportedFormats(c *gin.Context)

GetSupportedFormats returns the list of supported conversion formats

func (*ConvertHandler) HealthCheck

func (h *ConvertHandler) HealthCheck(c *gin.Context)

HealthCheck returns the health status of the service

Jump to

Keyboard shortcuts

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