grpc

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2019 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TEST_GRPC_MESSAGES_PORT = "10000"
	TEST_GRPC_API_PORT      = "10001"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type GrpcDaemon

type GrpcDaemon struct {
	MessagesServer *server.MessagesServer
	ApiServer      *api.ApiServer
	// contains filtered or unexported fields
}

func NewGrpcDaemon

func NewGrpcDaemon(ctx context.Context, workDir string, t *testing.T, logger *logrus.Logger) (*GrpcDaemon, error)

func (*GrpcDaemon) APIClient

func (d *GrpcDaemon) APIClient() *grpc.Server

func (*GrpcDaemon) Clients

func (d *GrpcDaemon) Clients() []*client.Client

func (*GrpcDaemon) ClientsCount

func (d *GrpcDaemon) ClientsCount() int

func (*GrpcDaemon) MessagesClient

func (d *GrpcDaemon) MessagesClient() *grpc.Server

func (*GrpcDaemon) Stop

func (d *GrpcDaemon) Stop()

Jump to

Keyboard shortcuts

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