cache

package
v0.1.195 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2021 License: Apache-2.0 Imports: 11 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) *Cache

func (*Cache) CQuery added in v0.1.195

func (c *Cache) CQuery(t string, query []string, fn ctree.VisitFunc) error

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, p *gnmi.Path) (interface{}, error)

func (*Cache) GetNotificationFromDelete added in v0.1.141

func (c *Cache) GetNotificationFromDelete(t, o string, p *gnmi.Path) (*gnmi.Notification, error)

func (*Cache) GetNotificationFromJSON added in v0.1.193

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

GetNotificationFromJson provides fine granular notifications from the json blob

func (*Cache) GetNotificationFromUpdate

func (c *Cache) GetNotificationFromUpdate(t, o string, 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, p *gnmi.Path) (*gnmi.Notification, error)

type Option

type Option func(c *Cache)

Option can be used to manipulate Options.

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