io

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2026 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetExport

func GetExport(ctx *fiber.Ctx, exportHandler *io.ExportEtherpad, settings *settings.Settings, logger *zap.SugaredLogger, padManager *pad.Manager, readOnlyManager *pad.ReadOnlyManager, securityManager *pad.SecurityManager) error

func ImportPad

func ImportPad(ctx *fiber.Ctx, securityManager *pad.SecurityManager) error

Legacy function for backward compatibility

func Init

func Init(store *lib.InitStore)

Types

type ImportData

type ImportData struct {
	DirectDatabaseAccess bool `json:"directDatabaseAccess"`
}

type ImportError

type ImportError struct {
	Status  string
	Message string
}

ImportError represents an import error with a status code

func (*ImportError) Error

func (e *ImportError) Error() string

type ImportHandler

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

ImportHandler handles pad import operations

func NewImportHandler

func NewImportHandler(
	padManager *pad.Manager,
	securityManager *pad.SecurityManager,
	padHandler *ws.PadMessageHandler,
	importer *io.Importer,
	settings *settings.Settings,
	logger *zap.SugaredLogger,
) *ImportHandler

NewImportHandler creates a new ImportHandler

func (*ImportHandler) ImportPad

func (h *ImportHandler) ImportPad(ctx *fiber.Ctx) error

ImportPad handles the import request

type ImportResponse

type ImportResponse struct {
	Code    int        `json:"code"`
	Message string     `json:"message"`
	Data    ImportData `json:"data"`
}

ImportResponse is the JSON response for import operations

Jump to

Keyboard shortcuts

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