device

package
v1.0.6 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2023 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Overview

Package device implements the simulated device agent NB

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewAgent

func NewAgent() simulator.DeviceAgent

NewAgent creates a new simulated device agent

Types

type ConnCtxKey added in v0.1.13

type ConnCtxKey struct{}

ConnCtxKey is a connection context key

type RPCCtxKey added in v0.1.13

type RPCCtxKey struct{}

RPCCtxKey is an RPC context key

type Service

type Service struct {
	northbound.Service
	// contains filtered or unexported fields
}

Service implements gNMI and P4Runtime services for a specified device

func (Service) Register

func (s Service) Register(r *grpc.Server)

Register registers the gNMI and P4Runtime with the given gRPC server

Directories

Path Synopsis
gnoi
v2
Package gnoi implements the simulated gNOI System service
Package gnoi implements the simulated gNOI System service
p4runtime
v1
Package p4runtime implements the simulated P4Runtime service
Package p4runtime implements the simulated P4Runtime service

Jump to

Keyboard shortcuts

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