diags

package
v0.10.10 Latest Latest
Warning

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

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

Documentation

Overview

Package diags implements the diagnostic gRPC service for the configuration subsystem.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

type Server struct {
	// contains filtered or unexported fields
}

Server implements the gRPC service for diagnostic facilities.

func (Server) GetOpState

GetOpState provides a stream of Operational and State data

func (Server) ListDeviceChanges

ListDeviceChanges provides a stream of Device Changes

func (Server) ListNetworkChanges

ListNetworkChanges provides a stream of Network Changes If the optional `subscribe` flag is true, then get then return the list of changes first, and then hold the connection open and send on further updates until the client hangs up

type Service

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

Service is a Service implementation for administration.

func NewService added in v0.10.8

func NewService(deviceChangesStore device.Store,
	deviceCache cache.Cache,
	networkChangesStore network.Store,
	dispatcher *dispatcher.Dispatcher,
	deviceStore devicestore.Store,
	operationalStateCache *map[topodevice.ID]devicechange.TypedValueMap,
	operationalStateCacheLock *sync.RWMutex) Service

NewService allocates a Service struct with the given parameters

func (Service) Register

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

Register registers the Service with the gRPC server.

Jump to

Keyboard shortcuts

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