Documentation ¶
Index ¶
- func NotificationToJSON(notif *gnmi.Notification) (string, error)
- func NotificationToJSONDocument(addr string, notification *gnmi.Notification, escape EscapeFunc) ([]byte, error)
- func NotificationToMap(addr string, notification *gnmi.Notification, escape EscapeFunc) (map[string]interface{}, error)
- func SubscribeResponseToJSON(resp *gnmi.SubscribeResponse) (string, error)
- type EscapeFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NotificationToJSON ¶
func NotificationToJSON(notif *gnmi.Notification) (string, error)
NotificationToJSON converts a Notification into a JSON string
func NotificationToJSONDocument ¶
func NotificationToJSONDocument(addr string, notification *gnmi.Notification, escape EscapeFunc) ([]byte, error)
NotificationToJSONDocument maps a Notification into a single JSON document
func NotificationToMap ¶
func NotificationToMap(addr string, notification *gnmi.Notification, escape EscapeFunc) (map[string]interface{}, error)
NotificationToMap maps a Notification into a nested map of entities
func SubscribeResponseToJSON ¶
func SubscribeResponseToJSON(resp *gnmi.SubscribeResponse) (string, error)
SubscribeResponseToJSON converts a SubscribeResponse into a JSON string
Types ¶
type EscapeFunc ¶
EscapeFunc is the escaping method for attribute names
Click to show internal directories.
Click to hide internal directories.