Versions in this module Expand all Collapse all v0 v0.0.2 Mar 30, 2021 Changes in this version + const HostnameArg + func ArbitrationExt(s string) (*gnmi_ext.Extension, error) + func DecimalToFloat(dec *pb.Decimal64) float64 + func Dial(cfg *Config) (pb.GNMIClient, error) + func DialContext(ctx context.Context, cfg *Config) (pb.GNMIClient, error) + func ExtractValue(update *pb.Update) (interface{}, error) + func Get(ctx context.Context, client pb.GNMIClient, paths [][]string, origin string) error + func GetWithRequest(ctx context.Context, client pb.GNMIClient, req *pb.GetRequest) error + func JoinPaths(paths ...*pb.Path) *pb.Path + func LogSubscribeResponse(response *pb.SubscribeResponse) error + func NewContext(ctx context.Context, cfg *Config) context.Context + func NewGetRequest(ctx context.Context, paths [][]string, origin string) (*pb.GetRequest, error) + func NewSubscribeRequest(subscribeOptions *SubscribeOptions) (*pb.SubscribeRequest, error) + func NotificationToMap(notif *gnmi.Notification) (map[string]interface{}, error) + func ParseGNMIElements(elms []string) (*pb.Path, error) + func ParseHostnames(list string) ([]string, error) + func Set(ctx context.Context, client pb.GNMIClient, setOps []*Operation, ...) (*pb.SetResponse, error) + func SplitPath(path string) []string + func SplitPaths(paths []string) [][]string + func StrPath(path *pb.Path) string + func StrUpdateVal(u *pb.Update) string + func StrVal(val *pb.TypedValue) string + func Subscribe(ctx context.Context, client pb.GNMIClient, subscribeOptions *SubscribeOptions, ...) + func SubscribeErr(ctx context.Context, client pb.GNMIClient, subscribeOptions *SubscribeOptions, ...) error + func TypedValue(val interface{}) *pb.TypedValue + type Config struct + Addr string + CAFile string + CertFile string + Compression string + DialOptions []grpc.DialOption + Encoding pb.Encoding + KeyFile string + Password string + TLS bool + Token string + Username string + type Operation struct + Origin string + Path []string + Target string + Type string + Val string + type PublishFunc func(addr string, message proto.Message) + type SubscribeOptions struct + HeartbeatInterval uint64 + Mode string + Origin string + Paths [][]string + Prefix string + SampleInterval uint64 + StreamMode string + SuppressRedundant bool + Target string + UpdatesOnly bool