Help us shape the future of Go! Take the 2026 Go Developer Survey

CacheClient

package
v0.0.54 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2025 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