Documentation
¶
Overview ¶
Package pingv1 is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Variables
- func RegisterPingServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterPingServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client PingServiceClient) error
- func RegisterPingServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterPingServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server PingServiceServer) error
- func RegisterPingServiceServer(s grpc.ServiceRegistrar, srv PingServiceServer)
- type PingRequest
- func (m *PingRequest) CloneMessageVT() proto.Message
- func (m *PingRequest) CloneVT() *PingRequest
- func (*PingRequest) Descriptor() ([]byte, []int)deprecated
- func (this *PingRequest) EqualMessageVT(thatMsg proto.Message) bool
- func (this *PingRequest) EqualVT(that *PingRequest) bool
- func (m *PingRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *PingRequest) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error)
- func (m *PingRequest) MarshalToVT(dAtA []byte) (int, error)
- func (m *PingRequest) MarshalToVTStrict(dAtA []byte) (int, error)
- func (m *PingRequest) MarshalVT() (dAtA []byte, err error)
- func (m *PingRequest) MarshalVTStrict() (dAtA []byte, err error)
- func (*PingRequest) ProtoMessage()
- func (x *PingRequest) ProtoReflect() protoreflect.Message
- func (x *PingRequest) Reset()
- func (m *PingRequest) SizeVT() (n int)
- func (x *PingRequest) String() string
- func (m *PingRequest) UnmarshalVT(dAtA []byte) error
- func (m *PingRequest) UnmarshalVTUnsafe(dAtA []byte) error
- type PingResponse
- func (m *PingResponse) CloneMessageVT() proto.Message
- func (m *PingResponse) CloneVT() *PingResponse
- func (*PingResponse) Descriptor() ([]byte, []int)deprecated
- func (this *PingResponse) EqualMessageVT(thatMsg proto.Message) bool
- func (this *PingResponse) EqualVT(that *PingResponse) bool
- func (x *PingResponse) GetResponse() string
- func (m *PingResponse) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *PingResponse) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error)
- func (m *PingResponse) MarshalToVT(dAtA []byte) (int, error)
- func (m *PingResponse) MarshalToVTStrict(dAtA []byte) (int, error)
- func (m *PingResponse) MarshalVT() (dAtA []byte, err error)
- func (m *PingResponse) MarshalVTStrict() (dAtA []byte, err error)
- func (*PingResponse) ProtoMessage()
- func (x *PingResponse) ProtoReflect() protoreflect.Message
- func (x *PingResponse) Reset()
- func (m *PingResponse) SizeVT() (n int)
- func (x *PingResponse) String() string
- func (m *PingResponse) UnmarshalVT(dAtA []byte) error
- func (m *PingResponse) UnmarshalVTUnsafe(dAtA []byte) error
- type PingServiceClient
- type PingServiceServer
- type UnimplementedPingServiceServer
- type UnsafePingServiceServer
Constants ¶
This section is empty.
Variables ¶
var File_sift_ping_v1_ping_proto protoreflect.FileDescriptor
var PingService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "sift.ping.v1.PingService", HandlerType: (*PingServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Ping", Handler: _PingService_Ping_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "sift/ping/v1/ping.proto", }
PingService_ServiceDesc is the grpc.ServiceDesc for PingService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterPingServiceHandler ¶
func RegisterPingServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
RegisterPingServiceHandler registers the http handlers for service PingService to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterPingServiceHandlerClient ¶
func RegisterPingServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client PingServiceClient) error
RegisterPingServiceHandlerClient registers the http handlers for service PingService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "PingServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "PingServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "PingServiceClient" to call the correct interceptors.
func RegisterPingServiceHandlerFromEndpoint ¶
func RegisterPingServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterPingServiceHandlerFromEndpoint is same as RegisterPingServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterPingServiceHandlerServer ¶
func RegisterPingServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server PingServiceServer) error
RegisterPingServiceHandlerServer registers the http handlers for service PingService to "mux". UnaryRPC :call PingServiceServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterPingServiceHandlerFromEndpoint instead.
func RegisterPingServiceServer ¶
func RegisterPingServiceServer(s grpc.ServiceRegistrar, srv PingServiceServer)
Types ¶
type PingRequest ¶
type PingRequest struct {
// contains filtered or unexported fields
}
func (*PingRequest) CloneMessageVT ¶
func (m *PingRequest) CloneMessageVT() proto.Message
func (*PingRequest) CloneVT ¶
func (m *PingRequest) CloneVT() *PingRequest
func (*PingRequest) Descriptor
deprecated
func (*PingRequest) Descriptor() ([]byte, []int)
Deprecated: Use PingRequest.ProtoReflect.Descriptor instead.
func (*PingRequest) EqualMessageVT ¶
func (this *PingRequest) EqualMessageVT(thatMsg proto.Message) bool
func (*PingRequest) EqualVT ¶
func (this *PingRequest) EqualVT(that *PingRequest) bool
func (*PingRequest) MarshalToSizedBufferVT ¶
func (m *PingRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*PingRequest) MarshalToSizedBufferVTStrict ¶
func (m *PingRequest) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error)
func (*PingRequest) MarshalToVT ¶
func (m *PingRequest) MarshalToVT(dAtA []byte) (int, error)
func (*PingRequest) MarshalToVTStrict ¶
func (m *PingRequest) MarshalToVTStrict(dAtA []byte) (int, error)
func (*PingRequest) MarshalVT ¶
func (m *PingRequest) MarshalVT() (dAtA []byte, err error)
func (*PingRequest) MarshalVTStrict ¶
func (m *PingRequest) MarshalVTStrict() (dAtA []byte, err error)
func (*PingRequest) ProtoMessage ¶
func (*PingRequest) ProtoMessage()
func (*PingRequest) ProtoReflect ¶
func (x *PingRequest) ProtoReflect() protoreflect.Message
func (*PingRequest) Reset ¶
func (x *PingRequest) Reset()
func (*PingRequest) SizeVT ¶
func (m *PingRequest) SizeVT() (n int)
func (*PingRequest) String ¶
func (x *PingRequest) String() string
func (*PingRequest) UnmarshalVT ¶
func (m *PingRequest) UnmarshalVT(dAtA []byte) error
func (*PingRequest) UnmarshalVTUnsafe ¶
func (m *PingRequest) UnmarshalVTUnsafe(dAtA []byte) error
type PingResponse ¶
type PingResponse struct {
Response string `protobuf:"bytes,1,opt,name=response,proto3" json:"response,omitempty"`
// contains filtered or unexported fields
}
func (*PingResponse) CloneMessageVT ¶
func (m *PingResponse) CloneMessageVT() proto.Message
func (*PingResponse) CloneVT ¶
func (m *PingResponse) CloneVT() *PingResponse
func (*PingResponse) Descriptor
deprecated
func (*PingResponse) Descriptor() ([]byte, []int)
Deprecated: Use PingResponse.ProtoReflect.Descriptor instead.
func (*PingResponse) EqualMessageVT ¶
func (this *PingResponse) EqualMessageVT(thatMsg proto.Message) bool
func (*PingResponse) EqualVT ¶
func (this *PingResponse) EqualVT(that *PingResponse) bool
func (*PingResponse) GetResponse ¶
func (x *PingResponse) GetResponse() string
func (*PingResponse) MarshalToSizedBufferVT ¶
func (m *PingResponse) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*PingResponse) MarshalToSizedBufferVTStrict ¶
func (m *PingResponse) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error)
func (*PingResponse) MarshalToVT ¶
func (m *PingResponse) MarshalToVT(dAtA []byte) (int, error)
func (*PingResponse) MarshalToVTStrict ¶
func (m *PingResponse) MarshalToVTStrict(dAtA []byte) (int, error)
func (*PingResponse) MarshalVT ¶
func (m *PingResponse) MarshalVT() (dAtA []byte, err error)
func (*PingResponse) MarshalVTStrict ¶
func (m *PingResponse) MarshalVTStrict() (dAtA []byte, err error)
func (*PingResponse) ProtoMessage ¶
func (*PingResponse) ProtoMessage()
func (*PingResponse) ProtoReflect ¶
func (x *PingResponse) ProtoReflect() protoreflect.Message
func (*PingResponse) Reset ¶
func (x *PingResponse) Reset()
func (*PingResponse) SizeVT ¶
func (m *PingResponse) SizeVT() (n int)
func (*PingResponse) String ¶
func (x *PingResponse) String() string
func (*PingResponse) UnmarshalVT ¶
func (m *PingResponse) UnmarshalVT(dAtA []byte) error
func (*PingResponse) UnmarshalVTUnsafe ¶
func (m *PingResponse) UnmarshalVTUnsafe(dAtA []byte) error
type PingServiceClient ¶
type PingServiceClient interface {
Ping(ctx context.Context, in *PingRequest, opts ...grpc.CallOption) (*PingResponse, error)
}
PingServiceClient is the client API for PingService 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 NewPingServiceClient ¶
func NewPingServiceClient(cc grpc.ClientConnInterface) PingServiceClient
type PingServiceServer ¶
type PingServiceServer interface {
Ping(context.Context, *PingRequest) (*PingResponse, error)
// contains filtered or unexported methods
}
PingServiceServer is the server API for PingService service. All implementations must embed UnimplementedPingServiceServer for forward compatibility
type UnimplementedPingServiceServer ¶
type UnimplementedPingServiceServer struct {
}
UnimplementedPingServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedPingServiceServer) Ping ¶
func (UnimplementedPingServiceServer) Ping(context.Context, *PingRequest) (*PingResponse, error)
type UnsafePingServiceServer ¶
type UnsafePingServiceServer interface {
// contains filtered or unexported methods
}
UnsafePingServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to PingServiceServer will result in compilation errors.