recallsetup

package
v0.13.0 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2026 License: Apache-2.0 Imports: 9 Imported by: 0 modules, 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

Overview

Package recallsetup holds the private on-disk configuration shared by the Recall launcher and the local server. It never lives in a plugin cache.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Lock

func Lock(path string) (*os.File, error)

Lock uses a kernel lock, released even after a crash. Never unlink the lock file: a replacement inode would let two servers own the same data directory.

func LockWait

func LockWait(path string, timeout time.Duration) (*os.File, error)

LockWait is Lock for a lock that is only ever held briefly, retrying until timeout instead of failing at once. Several processes that open the same local directory at the same moment each run setup; without waiting, all but one of them fail even though the next would have found the server already running. It must not be used for a lock held for a process's whole life, such as the server's own.

func Read

func Read(path string, out any) error

func Write

func Write(path string, value any) error

func WriteFile

func WriteFile(path string, b []byte, mode os.FileMode) error

Types

type Config

type Config struct {
	Executable string `json:"executable"`
	Server     string `json:"server,omitempty"`
	URL        string `json:"url,omitempty"`
	Key        string `json:"api_key,omitempty"`
	Collection string `json:"collection"`
	Predicates string `json:"predicates,omitempty"`
}

type Runtime

type Runtime struct {
	URL string `json:"url"`
	PID int    `json:"pid"`
}

Jump to

Keyboard shortcuts

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