Versions in this module Expand all Collapse all v1 v1.3.1 May 12, 2026 Changes in this version + func UpdateDiff(id, title, base, compare, baseContent, compareContent string) error v1.3.0 May 12, 2026 Changes in this version + var DataDir = util.GetEnv("DATA_DIR", "/app/data") + var GlobalCache = &PasteCache + var GlobalDiffCache = &DiffCache + func CreateDiff(title, base, compare, baseContent, compareContent string) (string, error) + func CreatePaste(title, content, language string) (string, error) + func DeleteDiff(id string) error + func DeletePaste(id string) error + func FindDiffFile(id string) (string, error) + func FindPasteFile(id string) (string, error) + func GetDiff(id string) (models.CachedDiff, error) + func GetPaste(id string) (models.CachedPaste, error) + func GetRawPaste(id string) ([]byte, error) + func ListDiffs() []models.DiffMeta + func ListPastes() []models.PasteMeta + func LoadCacheFromDisk() + func LoadDiffCacheFromDisk() + func SearchDiffs(query string) []models.DiffMeta + func SearchPastes(query string) []models.PasteMeta + func UpdatePaste(id, title, content, language string) error + type DiffCache struct + Items map[string]models.CachedDiff + type PasteCache struct + Items map[string]models.CachedPaste