Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var File_pingpong_proto protoreflect.FileDescriptor
Functions ¶
func NewPingPongServer ¶
func NewPingPongServer(handler PingPong, opts ...PingPongServerOption) http.Handler
Types ¶
type Empty ¶
type Empty struct {
// contains filtered or unexported fields
}
func (*Empty) Descriptor
deprecated
func (*Empty) ProtoMessage ¶
func (*Empty) ProtoMessage()
func (*Empty) ProtoReflect ¶
func (x *Empty) ProtoReflect() protoreflect.Message
type PingPongClient ¶
func NewPingPongClient ¶
func NewPingPongClient(addr string, client ranger.HTTPClient, plugins ...ranger.ClientPlugin) (*PingPongClient, error)
func (*PingPongClient) Ping ¶
func (c *PingPongClient) Ping(ctx context.Context, in *PingRequest) (*PongReply, error)
type PingPongServer ¶
type PingPongServer struct {
// contains filtered or unexported fields
}
type PingPongServerOption ¶
type PingPongServerOption func(s *PingPongServer)
func WithUnknownFieldsForPingPongServer ¶
func WithUnknownFieldsForPingPongServer() PingPongServerOption
type PingPongServiceImpl ¶
type PingPongServiceImpl struct{}
implement the service handler for PingPong service
func (*PingPongServiceImpl) Ping ¶
func (s *PingPongServiceImpl) Ping(ctx context.Context, in *PingRequest) (*PongReply, error)
type PingRequest ¶
type PingRequest struct { Sender string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"` // contains filtered or unexported fields }
func (*PingRequest) Descriptor
deprecated
func (*PingRequest) Descriptor() ([]byte, []int)
Deprecated: Use PingRequest.ProtoReflect.Descriptor instead.
func (*PingRequest) GetSender ¶
func (x *PingRequest) GetSender() string
func (*PingRequest) ProtoMessage ¶
func (*PingRequest) ProtoMessage()
func (*PingRequest) ProtoReflect ¶
func (x *PingRequest) ProtoReflect() protoreflect.Message
func (*PingRequest) Reset ¶
func (x *PingRequest) Reset()
func (*PingRequest) String ¶
func (x *PingRequest) String() string
type PongReply ¶
type PongReply struct { Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"` // contains filtered or unexported fields }
func (*PongReply) Descriptor
deprecated
func (*PongReply) GetMessage ¶
func (*PongReply) ProtoMessage ¶
func (*PongReply) ProtoMessage()
func (*PongReply) ProtoReflect ¶
func (x *PongReply) ProtoReflect() protoreflect.Message
Click to show internal directories.
Click to hide internal directories.