agent

package
v3.5.1+incompatible Latest Latest
Warning

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

Go to latest
Published: May 5, 2020 License: Apache-2.0 Imports: 20 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package agent implements functional-tester agent server.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

type Server struct {
	rpcpb.TransportServer

	*rpcpb.Member
	*rpcpb.Tester
	// contains filtered or unexported fields
}

Server implements "rpcpb.TransportServer" and other etcd operations as an agent no need to lock fields since request operations are serialized in tester-side

func NewServer

func NewServer(
	lg *zap.Logger,
	network string,
	address string,
) *Server

NewServer returns a new agent server.

func (*Server) StartServe

func (srv *Server) StartServe() error

StartServe starts serving agent server.

func (*Server) Stop

func (srv *Server) Stop()

Stop stops serving gRPC server.

func (*Server) Transport

func (srv *Server) Transport(stream rpcpb.Transport_TransportServer) (reterr error)

Transport communicates with etcd tester.

Jump to

Keyboard shortcuts

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