Back to godoc.org

Package agent

v0.0.0-...-518322d
Latest Go to latest

The highest tagged major version is .

Published: Mar 22, 2020 | License: Apache-2.0 | Module: gitee.com/liuzhiqiang9696/clientv3.git

Overview

Package agent implements functional-tester agent server.

Index

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.

Package Files

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier