grpc

package
v0.0.0-...-6a3c6e2 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2019 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TestClient

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

TestClient is a GRPC client ready to test GRPC services

func NewTestClient

func NewTestClient(addr string) (*TestClient, error)

NewTestClient creates and returns a new test client

func (*TestClient) Close

func (t *TestClient) Close() error

Close closes the GRPC connection.

func (*TestClient) FailureStatusFailureStateList

func (t *TestClient) FailureStatusFailureStateList(ctx context.Context, nID *pbfs.NodeId) (pbfs.FailureStatus_FailureStateListClient, error)

FailureStatusFailureStateList wraps the call to failurestatus service.

func (*TestClient) FailureStatusGetFailure

func (t *TestClient) FailureStatusGetFailure(ctx context.Context, fID *pbfs.FailureId) (*chaosv1pb.Failure, error)

FailureStatusGetFailure wraps the call to failurestatus service.

func (*TestClient) NodeStatusHeartbeat

func (t *TestClient) NodeStatusHeartbeat(ctx context.Context, n *clusterv1pb.Node) (*pbempty.Empty, error)

NodeStatusHeartbeat wraps the call to nodestatus service.

func (*TestClient) NodeStatusRegister

func (t *TestClient) NodeStatusRegister(ctx context.Context, n *clusterv1pb.Node) (*pbempty.Empty, error)

NodeStatusRegister wraps the call to nodestatus service.

Jump to

Keyboard shortcuts

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