history

package
v0.3.2-alpha Latest Latest
Warning

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

Go to latest
Published: May 1, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterRoutes

func RegisterRoutes(protected *gin.RouterGroup, deps *core.ServerDependencies)

Types

type DeleteHistoryBulkResponse

type DeleteHistoryBulkResponse struct {
	Deleted int64 `json:"deleted"`
}

DeleteHistoryBulkResponse is the response for bulk deletion

type ErrorResponse

type ErrorResponse = contracts.ErrorResponse

type HistoryListResponse

type HistoryListResponse struct {
	Records []HistoryRecord `json:"records"`
	Total   int64           `json:"total"`
	Limit   int             `json:"limit"`
	Offset  int             `json:"offset"`
}

HistoryListResponse is the response for listing history records

type HistoryRecord

type HistoryRecord struct {
	ID           uint   `json:"id"`
	MovieID      string `json:"movie_id"`
	Operation    string `json:"operation"`
	OriginalPath string `json:"original_path"`
	NewPath      string `json:"new_path"`
	Status       string `json:"status"`
	ErrorMessage string `json:"error_message"`
	Metadata     string `json:"metadata"`
	DryRun       bool   `json:"dry_run"`
	CreatedAt    string `json:"created_at"`
}

HistoryRecord represents a single history record in API responses

type HistoryStats

type HistoryStats struct {
	Total       int64            `json:"total"`
	Success     int64            `json:"success"`
	Failed      int64            `json:"failed"`
	Reverted    int64            `json:"reverted"`
	ByOperation map[string]int64 `json:"by_operation"`
}

HistoryStats represents aggregated history statistics

Jump to

Keyboard shortcuts

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