storage

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2026 License: AGPL-3.0, AGPL-3.0-or-later Imports: 16 Imported by: 0

Documentation

Overview

SPDX-License-Identifier: AGPL-3.0-or-later

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

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

func NewHandler

func NewHandler(provider storage.Provider, docService documentService, maxSizeMB int64) *Handler

func (*Handler) HandleContent

func (h *Handler) HandleContent(w http.ResponseWriter, r *http.Request)

func (*Handler) HandleStorageConfig

func (h *Handler) HandleStorageConfig(w http.ResponseWriter, r *http.Request)

func (*Handler) HandleUpload

func (h *Handler) HandleUpload(w http.ResponseWriter, r *http.Request)

func (*Handler) IsEnabled

func (h *Handler) IsEnabled() bool

type UploadResponse

type UploadResponse struct {
	DocID             string    `json:"doc_id"`
	Title             string    `json:"title"`
	StorageKey        string    `json:"storage_key"`
	StorageProvider   string    `json:"storage_provider"`
	FileSize          int64     `json:"file_size"`
	MimeType          string    `json:"mime_type"`
	Checksum          string    `json:"checksum"`
	ChecksumAlgorithm string    `json:"checksum_algorithm"`
	CreatedAt         time.Time `json:"created_at"`
	IsNew             bool      `json:"is_new"`
}

Jump to

Keyboard shortcuts

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