package agent

import "github.com/coreos/etcd/functional/agent"

Package agent implements functional-tester agent server.

Index

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) (err error)

Transport communicates with etcd tester.

Source Files

doc.go handler.go server.go utils.go

Version
v3.3.9+incompatible
Published
Jul 24, 2018
Platform
linux/amd64
Imports
18 packages
Last checked
11 minutes ago

Tools for package owners.