cache

package
v0.1.373 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2022 License: Apache-2.0 Imports: 13 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cache

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

func New added in v0.1.140

func New(t []string, opts ...Option) *Cache

func (*Cache) GetCache

func (c *Cache) GetCache() *cache.Cache

func (*Cache) GetGnmiUpdateAsJsonBlob

func (c *Cache) GetGnmiUpdateAsJsonBlob(t, o string, u *gnmi.Update) error

func (*Cache) GetJson

func (c *Cache) GetJson(t string, prefix *gnmi.Path, p *gnmi.Path) (interface{}, error)

func (*Cache) GetNotificationFromDelete added in v0.1.141

func (c *Cache) GetNotificationFromDelete(prefix *gnmi.Path, p *gnmi.Path) (*gnmi.Notification, error)

func (*Cache) GetNotificationFromJSON added in v0.1.193

func (c *Cache) GetNotificationFromJSON(prefix *gnmi.Path, p *gnmi.Path, val interface{}, refPaths []*gnmi.Path) (*gnmi.Notification, error)

GetNotificationFromJson provides fine granular notifications from a JSON blob

func (*Cache) GetNotificationFromJSON2 added in v0.1.213

func (c *Cache) GetNotificationFromJSON2(prefix *gnmi.Path, p *gnmi.Path, val interface{}, rs *yentry.Entry) (*gnmi.Notification, error)

GetNotificationFromJson provides fine granular notifications from a JSON blob

func (*Cache) GetNotificationFromUpdate

func (c *Cache) GetNotificationFromUpdate(prefix *gnmi.Path, u *gnmi.Update) (*gnmi.Notification, error)

GetNotificationFromUpdate provides fine granular notifications from the gnmi update by expanding the json blob value into inividual notifications.

func (*Cache) GnmiUpdate

func (c *Cache) GnmiUpdate(t string, n *gnmi.Notification) error

func (*Cache) Query

func (c *Cache) Query(t string, prefix *gnmi.Path, p *gnmi.Path) (*gnmi.Notification, error)

func (*Cache) QueryAll added in v0.1.319

func (c *Cache) QueryAll(t string, prefix *gnmi.Path, p *gnmi.Path) ([]*gnmi.Notification, error)

type Option

type Option func(c *Cache)

Option can be used to manipulate Options.

func WithLogging added in v0.1.220

func WithLogging(l logging.Logger) Option

func WithParser

func WithParser(l logging.Logger) Option

Jump to

Keyboard shortcuts

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