gnmi

package
v0.0.0-...-8fce601 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2022 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Overview

Package gnmi contains GNMI server and related methods.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GNXIStateOptGenerator

func GNXIStateOptGenerator(path *pb.Path, val interface{}, stateOpt serverStateOperator) func(config ygot.ValidatedGoStruct) error

GNXIStateOptGenerator decorate a given function to a gNXI state operator function

func InternalUpdateState

func InternalUpdateState(path *pb.Path, val interface{}, config ygot.ValidatedGoStruct) error

InternalUpdateState update state node in Server config. When updating, call server's InternalUpdate method and send this function as parameter. The type of val must exactly matchs node's type.

Types

type Server

type Server struct {
	*gnmi.Server
}

Server is a GNMI server.

func NewServer

func NewServer() (*Server, error)

NewServer creates a GNMI server.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL