Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterSrvPingHTTPServer(s *http.Server, srv SrvPingHTTPServer)
- func RegisterSrvPingServer(s grpc.ServiceRegistrar, srv SrvPingServer)
- type SrvPingClient
- type SrvPingHTTPClient
- type SrvPingHTTPClientImpl
- type SrvPingHTTPServer
- type SrvPingServer
- type UnimplementedSrvPingServer
- type UnsafeSrvPingServer
Constants ¶
const OperationSrvPingPing = "/saas.api.ping.servicev1.SrvPing/Ping"
const (
SrvPing_Ping_FullMethodName = "/saas.api.ping.servicev1.SrvPing/Ping"
)
Variables ¶
var File_api_ping_service_v1_services_ping_service_v1_proto protoreflect.FileDescriptor
var SrvPing_ServiceDesc = grpc.ServiceDesc{ ServiceName: "saas.api.ping.servicev1.SrvPing", HandlerType: (*SrvPingServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Ping", Handler: _SrvPing_Ping_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "api/ping-service/v1/services/ping.service.v1.proto", }
SrvPing_ServiceDesc is the grpc.ServiceDesc for SrvPing service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterSrvPingHTTPServer ¶
func RegisterSrvPingHTTPServer(s *http.Server, srv SrvPingHTTPServer)
func RegisterSrvPingServer ¶
func RegisterSrvPingServer(s grpc.ServiceRegistrar, srv SrvPingServer)
Types ¶
type SrvPingClient ¶
type SrvPingClient interface { // Ping ping // // 测试PingV1 Ping(ctx context.Context, in *resources.PingReq, opts ...grpc.CallOption) (*resources.PingResp, error) }
SrvPingClient is the client API for SrvPing 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 NewSrvPingClient ¶
func NewSrvPingClient(cc grpc.ClientConnInterface) SrvPingClient
type SrvPingHTTPClient ¶
type SrvPingHTTPClient interface {
Ping(ctx context.Context, req *resources.PingReq, opts ...http.CallOption) (rsp *resources.PingResp, err error)
}
func NewSrvPingHTTPClient ¶
func NewSrvPingHTTPClient(client *http.Client) SrvPingHTTPClient
type SrvPingHTTPClientImpl ¶
type SrvPingHTTPClientImpl struct {
// contains filtered or unexported fields
}
type SrvPingHTTPServer ¶
type SrvPingServer ¶
type SrvPingServer interface { // Ping ping // // 测试PingV1 Ping(context.Context, *resources.PingReq) (*resources.PingResp, error) // contains filtered or unexported methods }
SrvPingServer is the server API for SrvPing service. All implementations must embed UnimplementedSrvPingServer for forward compatibility
type UnimplementedSrvPingServer ¶
type UnimplementedSrvPingServer struct { }
UnimplementedSrvPingServer must be embedded to have forward compatible implementations.
type UnsafeSrvPingServer ¶
type UnsafeSrvPingServer interface {
// contains filtered or unexported methods
}
UnsafeSrvPingServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to SrvPingServer will result in compilation errors.