collector

package
Version: v0.0.0-...-aed1ee4 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package collector provides a gRPC interface to reconnect targets in a gNMI collector.

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 provides an implementation of a gRPC service to allow reconnection of targets.

func New

func New(reconnect func(string) error) *Server

New constructs a Server struct with a specified handler for reconnection requests.

func (*Server) Reconnect

func (s *Server) Reconnect(ctx context.Context, request *pb.ReconnectRequest) (*pb.Nil, error)

Reconnect provides the implementation of the Collector.Reconnect RPC allowing one or more gNMI targets to be forcefully reconnected.

Source Files

Jump to

Keyboard shortcuts

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