cache

package
v0.0.0-...-b668404 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2023 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Informer

type Informer struct {
	Client   *client.Client
	Key      []byte
	RangeEnd []byte

	ListPageSize int64

	AddFunc    func(*mvccpb.KeyValue)
	UpdateFunc func(*mvccpb.KeyValue)
	DeleteFunc func(*mvccpb.KeyValue)
	// contains filtered or unexported fields
}

func (*Informer) Get

func (i *Informer) Get(key []byte) (*mvccpb.KeyValue, bool)

func (*Informer) LastRevision

func (i *Informer) LastRevision() int64

func (*Informer) List

func (i *Informer) List() [][]byte

func (*Informer) Run

func (i *Informer) Run(ctx context.Context) error

func (*Informer) WaitForCacheSync

func (i *Informer) WaitForCacheSync(ctx context.Context) error

Jump to

Keyboard shortcuts

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