interoptestservice

package
v0.0.0-...-7a23ab9 Latest Latest
Warning

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

Go to latest
Published: May 2, 2019 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Overview

Package interoptestservice is the logic for handling test run and result requests from controller.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ServerImpl

type ServerImpl struct {
	// contains filtered or unexported fields
}

ServerImpl is the type that handles RPCs for interop test service.

func NewServer

func NewServer(addr string) (*ServerImpl, error)

NewServer returns a new unstarted gRPC interop server.

func (*ServerImpl) Start

func (srv *ServerImpl) Start(ctx context.Context, svc *ServiceImpl) error

Start runs ServiceImpl.

func (*ServerImpl) Stop

func (srv *ServerImpl) Stop() error

Stop stops the underlying gRPC server and all the services running on it.

type ServiceImpl

type ServiceImpl struct {
	// contains filtered or unexported fields
}

ServiceImpl is the implementation of InteropTestServiceServer.

func NewService

func NewService(services map[string][]*interop.Service, sink *receiver.TestCoordinatorSink) *ServiceImpl

NewService returns a new ServiceImpl with the given registered services.

func (*ServiceImpl) Result

func (s *ServiceImpl) Result(ctx context.Context, req *interop.InteropResultRequest) (*interop.InteropResultResponse, error)

Result returns all the test results.

func (*ServiceImpl) Run

func (s *ServiceImpl) Run(ctx context.Context, req *interop.InteropRunRequest) (*interop.InteropRunResponse, error)

Run runs the test asynchronously.

func (*ServiceImpl) SetRegisteredServices

func (s *ServiceImpl) SetRegisteredServices(services map[string][]*interop.Service)

SetRegisteredServices sets the registered services to the given one.

Jump to

Keyboard shortcuts

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