Documentation
¶
Index ¶
- Constants
- Variables
- func PublishInvalidation(ctx context.Context, rdb *redis.Client, key string, ev InvalidateEvent) error
- func SameFileRevision(a, b *StatResult) bool
- func WithExpectedStat(ctx context.Context, stat *StatResult) context.Context
- func WithFileMode(ctx context.Context, mode uint32) context.Context
- func WithMutationResult(ctx context.Context, result *MutationResult) context.Context
- func WithWorkspaceGeneration(ctx context.Context, generation string) context.Context
- type AttrUpdate
- type ChangeStreamEntry
- type Client
- func New(rdb *redis.Client, key string) Client
- func NewWithCache(rdb *redis.Client, key string, ttl time.Duration) Client
- func NewWithCacheAndObserver(rdb *redis.Client, key string, ttl time.Duration, observer MutationObserver) Client
- func NewWithObserver(rdb *redis.Client, key string, observer MutationObserver) Client
- type FileSnapshot
- type GrepMatch
- type InfoResult
- type InvalidateEvent
- type LsEntry
- type MutationObserver
- type MutationResult
- type StatResult
- type TreeEntry
- type VersionedSnapshot
- type WcResult
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 SameFileRevision ¶
func SameFileRevision(a, b *StatResult) bool
func WithExpectedStat ¶
func WithExpectedStat(ctx context.Context, stat *StatResult) context.Context
func WithMutationResult ¶
func WithMutationResult(ctx context.Context, result *MutationResult) context.Context
Types ¶
type AttrUpdate ¶
type AttrUpdate = internal.AttrUpdate
type ChangeStreamEntry ¶
type ChangeStreamEntry = internal.ChangeStreamEntry
type Client ¶
func NewWithCacheAndObserver ¶
func NewWithObserver ¶
func NewWithObserver(rdb *redis.Client, key string, observer MutationObserver) Client
type InfoResult ¶
type InfoResult = internal.InfoResult
type InvalidateEvent ¶
type InvalidateEvent = internal.InvalidateEvent
type MutationObserver ¶
type MutationObserver = internal.MutationObserver
type MutationResult ¶
type MutationResult = internal.MutationResult
type StatResult ¶
type StatResult = internal.StatResult
type VersionedSnapshot ¶
type VersionedSnapshot = internal.VersionedSnapshot
Click to show internal directories.
Click to hide internal directories.