Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var File_api_proto protoreflect.FileDescriptor
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.
Click to show internal directories.
Click to hide internal directories.