echo

package
v0.0.0-...-08e1117 Latest Latest
Warning

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

Go to latest
Published: Jan 1, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EchoClient

type EchoClient interface {
	// This should match the service methods exposed in the protobuf service
	EchoString(request pb.EchoStringRequest) (pb.EchoStringResponse, error)
	EchoInt(request pb.EchoIntRequest) (pb.EchoIntResponse, error)
}

type RemoteEchoClient

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

func NewRemoteEchoClient

func NewRemoteEchoClient(addr string, timeout option.Option[time.Duration], skipVerify option.Option[bool]) (*RemoteEchoClient, error)

func (*RemoteEchoClient) EchoInt

func (ec *RemoteEchoClient) EchoInt(request *pb.EchoIntRequest) (*pb.EchoIntResponse, error)

func (*RemoteEchoClient) EchoString

func (ec *RemoteEchoClient) EchoString(request *pb.EchoStringRequest) (*pb.EchoStringResponse, error)

Jump to

Keyboard shortcuts

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