Documentation ¶
Index ¶
- type Cache
- func (c *Cache) GetCache() *occache.Cache
- func (c *Cache) GetGnmiUpdateAsJsonBlob(t, o string, u *gnmi.Update) error
- func (c *Cache) GetJson(t string, prefix *gnmi.Path, p *gnmi.Path, rs *yentry.Entry) (interface{}, error)
- func (c *Cache) GetNotificationFromDelete(prefix *gnmi.Path, p *gnmi.Path) (*gnmi.Notification, error)
- func (c *Cache) GetNotificationFromJSON(prefix *gnmi.Path, p *gnmi.Path, val interface{}, refPaths []*gnmi.Path) (*gnmi.Notification, error)
- func (c *Cache) GetNotificationFromUpdate(prefix *gnmi.Path, u *gnmi.Update, hasKey bool) (*gnmi.Notification, error)
- func (c *Cache) GnmiUpdate(t string, n *gnmi.Notification) error
- func (c *Cache) Query(t string, prefix *gnmi.Path, p *gnmi.Path) (*gnmi.Notification, error)
- func (c *Cache) QueryAll(t string, prefix *gnmi.Path, p *gnmi.Path) ([]*gnmi.Notification, error)
- type Option
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 (*Cache) GetGnmiUpdateAsJsonBlob ¶
func (*Cache) GetNotificationFromDelete ¶ added in v0.1.141
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) GetNotificationFromUpdate ¶
func (c *Cache) GetNotificationFromUpdate(prefix *gnmi.Path, u *gnmi.Update, hasKey bool) (*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
Click to show internal directories.
Click to hide internal directories.