cmdserve

package
v2.0.2 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2026 License: MIT Imports: 35 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Cleanup

func Cleanup(ctx context.Context, db *bun.DB, store silo.Store) error

Cleanup indexes the notes left unindexed and purges what expired, each step even when one fails: serve's hourly round, and the admin's "clean now". The files after the items: a note purged now frees its images in the same round. It returns the failures, joined, and notes when it ended in the server status, for the admin.

func Serve

func Serve(cobra *cobra.Command, args []string) error

Serve runs the API until SIGINT or SIGTERM; requests in progress finish first.

Types

This section is empty.

Jump to

Keyboard shortcuts

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