http

package
v0.0.0-...-d04cd99 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2025 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Controller

type Controller interface {
	ReadFileStream(ctx context.Context, log *logger.Logger, params *model.ReadFileStreamParams) (*model.File, io.Reader, error)
}

type Handler

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

func New

func New(controller Controller) *Handler

func (*Handler) DownloadFile

func (h *Handler) DownloadFile(log *logger.Logger, w http.ResponseWriter, req *http.Request)

func (*Handler) GetStatus

func (h *Handler) GetStatus(log *logger.Logger, w http.ResponseWriter, _ *http.Request)

Jump to

Keyboard shortcuts

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