api

package
v0.0.0-...-54ec6c9 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2020 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

func RegisterPingServer

func RegisterPingServer(s *grpc.Server, srv PingServer)

Types

type ImplementedPingServer

type ImplementedPingServer struct {
}

ImplementedPingServer must be embedded to have forward compatible implementations.

func (ImplementedPingServer) SayHello

func (ImplementedPingServer) SayHello(ctx context.Context, message *PingMessage) (*PingMessage, error)

type PingClient

type PingClient interface {
	SayHello(ctx context.Context, in *PingMessage, opts ...grpc.CallOption) (*PingMessage, error)
}

PingClient is the client API for Ping service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

func NewPingClient

func NewPingClient(cc grpc.ClientConnInterface) PingClient

type PingMessage

type PingMessage struct {
	Greeting string `protobuf:"bytes,1,opt,name=greeting,proto3" json:"greeting,omitempty"`
	// contains filtered or unexported fields
}

func (*PingMessage) Descriptor deprecated

func (*PingMessage) Descriptor() ([]byte, []int)

Deprecated: Use PingMessage.ProtoReflect.Descriptor instead.

func (*PingMessage) GetGreeting

func (x *PingMessage) GetGreeting() string

func (*PingMessage) ProtoMessage

func (*PingMessage) ProtoMessage()

func (*PingMessage) ProtoReflect

func (x *PingMessage) ProtoReflect() protoreflect.Message

func (*PingMessage) Reset

func (x *PingMessage) Reset()

func (*PingMessage) String

func (x *PingMessage) String() string

type PingServer

type PingServer interface {
	SayHello(ctx context.Context, message *PingMessage) (*PingMessage, error)
	// contains filtered or unexported methods
}

PingServer is the server API for Ping service. All implementations must embed ImplementedPingServer for forward compatibility

type UnsafePingServer

type UnsafePingServer interface {
	// contains filtered or unexported methods
}

UnsafePingServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to PingServer will result in compilation errors.

Jump to

Keyboard shortcuts

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