Help us shape the future of Go! Take the 2026 Go Developer Survey

media

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2026 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package media owns platform-agnostic IM attachment directories. Media that is referenced by a persisted message is stored under Quartet data and is never swept. Disposable processing files use a separate runtime cache.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PersistentDir

func PersistentDir() (string, error)

PersistentDir returns the directory for media referenced by durable IM, user-input, Job or session records.

func StartCacheCleanup

func StartCacheCleanup(ctx context.Context)

StartCacheCleanup launches a background sweeper that removes stale IM media cache files from the dedicated cache directories. It also runs one immediate sweep on startup so leftovers from previous runs do not linger.

Types

This section is empty.

Jump to

Keyboard shortcuts

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