httpserver

package
v0.0.0-...-10fa8d9 Latest Latest
Warning

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

Go to latest
Published: May 15, 2026 License: MIT Imports: 30 Imported by: 0

Documentation

Index

Constants

View Source
const (
	HeaderMetadataToken = "X-Metadata-Token"
	HeaderBlobToken     = "X-Blob-Token"
	HeaderDeletionToken = "X-Deletion-Token"
	HeaderBurnAfterRead = "X-Burn-After-Read"
)
View Source
const (
	HeaderPartOffset = "X-Part-Offset"
	HeaderPartSize   = "X-Part-Size"
	HeaderPartSHA256 = "X-Part-SHA256"
)

Variables

This section is empty.

Functions

func Liveness

func Liveness(c echo.Context) error

func ReadinessWithDB

func ReadinessWithDB(pinger Pinger) echo.HandlerFunc

Types

type App

type App struct {
	SecretMetrics *metrics.SecretMetrics
	// contains filtered or unexported fields
}

func New

func New(cfg config.Config, pool *pgxpool.Pool, secretRepo domain.SecretRepo, fileStore domain.FileStore, reg *prometheus.Registry) *App

func (*App) Shutdown

func (a *App) Shutdown(ctx context.Context) error

func (*App) Start

func (a *App) Start() error

type Pinger

type Pinger interface {
	Ping(ctx context.Context) error
}

type SecretHandler

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

func NewSecretHandler

func NewSecretHandler(repo domain.SecretRepo, fileStore domain.FileStore, maxFileSize int64, m *metrics.SecretMetrics) *SecretHandler

func (*SecretHandler) CreateSecret

func (h *SecretHandler) CreateSecret(c echo.Context) error

func (*SecretHandler) DeleteSecret

func (h *SecretHandler) DeleteSecret(c echo.Context) error

func (*SecretHandler) RetrieveSecret

func (h *SecretHandler) RetrieveSecret(c echo.Context) error

func (*SecretHandler) RetrieveSecretRange

func (h *SecretHandler) RetrieveSecretRange(c echo.Context) error

func (*SecretHandler) SecretMetadata

func (h *SecretHandler) SecretMetadata(c echo.Context) error

func (*SecretHandler) StartRetrievalSession

func (h *SecretHandler) StartRetrievalSession(c echo.Context) error

type UploadHandler

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

func NewUploadHandler

func NewUploadHandler(repo domain.UploadSessionRepo, fileStore domain.MultipartFileStore, maxFileSize int64, m *metrics.SecretMetrics) *UploadHandler

func (*UploadHandler) AbortUploadSession

func (h *UploadHandler) AbortUploadSession(c echo.Context) error

func (*UploadHandler) CompleteUploadSession

func (h *UploadHandler) CompleteUploadSession(c echo.Context) error

func (*UploadHandler) CreateUploadSession

func (h *UploadHandler) CreateUploadSession(c echo.Context) error

func (*UploadHandler) UploadPart

func (h *UploadHandler) UploadPart(c echo.Context) error

func (*UploadHandler) UploadSessionStatus

func (h *UploadHandler) UploadSessionStatus(c echo.Context) error

Jump to

Keyboard shortcuts

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