client

package
v0.0.0-...-5e5bf71 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2026 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	InvalidateOpInode       = internal.InvalidateOpInode
	InvalidateOpDir         = internal.InvalidateOpDir
	InvalidateOpPrefix      = internal.InvalidateOpPrefix
	InvalidateOpContent     = internal.InvalidateOpContent
	InvalidateOpRootReplace = internal.InvalidateOpRootReplace
)

Variables

View Source
var ErrGenerationRequired = internal.ErrGenerationRequired
View Source
var ErrStreamTrimmed = internal.ErrStreamTrimmed
View Source
var ErrWorkspaceChanged = internal.ErrWorkspaceChanged
View Source
var ErrWriteConflict = internal.ErrWriteConflict

Functions

func PublishInvalidation

func PublishInvalidation(ctx context.Context, rdb *redis.Client, key string, ev InvalidateEvent) error

func SameFileRevision

func SameFileRevision(a, b *StatResult) bool

func WithExpectedStat

func WithExpectedStat(ctx context.Context, stat *StatResult) context.Context

func WithFileMode

func WithFileMode(ctx context.Context, mode uint32) context.Context

func WithMutationResult

func WithMutationResult(ctx context.Context, result *MutationResult) context.Context

func WithWorkspaceGeneration

func WithWorkspaceGeneration(ctx context.Context, generation string) context.Context

Types

type AttrUpdate

type AttrUpdate = internal.AttrUpdate

type ChangeStreamEntry

type ChangeStreamEntry = internal.ChangeStreamEntry

type Client

type Client = internal.Client

func New

func New(rdb *redis.Client, key string) Client

func NewWithCache

func NewWithCache(rdb *redis.Client, key string, ttl time.Duration) Client

func NewWithCacheAndObserver

func NewWithCacheAndObserver(rdb *redis.Client, key string, ttl time.Duration, observer MutationObserver) Client

func NewWithObserver

func NewWithObserver(rdb *redis.Client, key string, observer MutationObserver) Client

type FileSnapshot

type FileSnapshot = internal.FileSnapshot

func ReadFileSnapshot

func ReadFileSnapshot(ctx context.Context, fs Client, path string) (FileSnapshot, error)

type GrepMatch

type GrepMatch = internal.GrepMatch

type InfoResult

type InfoResult = internal.InfoResult

type InvalidateEvent

type InvalidateEvent = internal.InvalidateEvent

type LsEntry

type LsEntry = internal.LsEntry

type MutationObserver

type MutationObserver = internal.MutationObserver

type MutationResult

type MutationResult = internal.MutationResult

type StatResult

type StatResult = internal.StatResult

type TreeEntry

type TreeEntry = internal.TreeEntry

type VersionedSnapshot

type VersionedSnapshot = internal.VersionedSnapshot

type WcResult

type WcResult = internal.WcResult

Jump to

Keyboard shortcuts

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