CacheClient

package
v0.0.47 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CacheClientBound

type CacheClientBound interface {
	// GetValue retrieves config value for the provided path
	GetValue(ctx context.Context, candidateName string, path *sdcpb.Path) (*sdcpb.TypedValue, error)
	// GetValues retrieves config value from the provided path. If path is not a leaf path, all the sub paths will be returned.
	GetValues(ctx context.Context, candidateName string, path *sdcpb.Path) ([]*sdcpb.TypedValue, error)
	// ReadIntended retrieves the highes priority value from the intended store
	ReadIntended(ctx context.Context, opts *cache.Opts, paths [][]string, period time.Duration) []*cache.Update
}

type CacheClientBoundImpl added in v0.0.39

type CacheClientBoundImpl struct {
	// contains filtered or unexported fields
}

func NewCacheClientBound

func NewCacheClientBound(name string, c cache.Client) *CacheClientBoundImpl

func (*CacheClientBoundImpl) GetValue added in v0.0.39

func (ccb *CacheClientBoundImpl) GetValue(ctx context.Context, candidateName string, path *sdcpb.Path) (*sdcpb.TypedValue, error)

GetValue retrieves config value for the provided path

func (*CacheClientBoundImpl) GetValues added in v0.0.39

func (ccb *CacheClientBoundImpl) GetValues(ctx context.Context, candidateName string, path *sdcpb.Path) ([]*sdcpb.TypedValue, error)

GetValues retrieves config value from the provided path. If path is not a leaf path, all the sub paths will be returned.

func (*CacheClientBoundImpl) ReadIntended added in v0.0.39

func (ccb *CacheClientBoundImpl) ReadIntended(ctx context.Context, opts *cache.Opts, paths [][]string, period time.Duration) []*cache.Update

Read

Jump to

Keyboard shortcuts

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