etcd: Index | Files

package agent

import ""

Package agent implements functional-tester agent server.


Package Files

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

type Server Uses

type Server struct {

    // 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 Uses

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

NewServer returns a new agent server.

func (*Server) StartServe Uses

func (srv *Server) StartServe() error

StartServe starts serving agent server.

func (*Server) Stop Uses

func (srv *Server) Stop()

Stop stops serving gRPC server.

func (*Server) Transport Uses

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

Transport communicates with etcd tester.

Package agent imports 20 packages (graph). Updated 2020-06-17. Refresh now. Tools for package owners.