cache

package
v0.1.169 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 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) 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) 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