Documentation
¶
Index ¶
- Constants
- Variables
- func RegisterSrvTestV1HTTPServer(s *http.Server, srv SrvTestV1HTTPServer)
- func RegisterSrvTestV1Server(s grpc.ServiceRegistrar, srv SrvTestV1Server)
- type SrvTestV1Client
- type SrvTestV1HTTPClient
- type SrvTestV1HTTPClientImpl
- type SrvTestV1HTTPServer
- type SrvTestV1Server
- type UnimplementedSrvTestV1Server
- type UnsafeSrvTestV1Server
Constants ¶
const OperationSrvTestV1Ping = "/saas.api.nodeid_test.servicev1.SrvTestV1/Ping"
const (
SrvTestV1_Ping_FullMethodName = "/saas.api.nodeid_test.servicev1.SrvTestV1/Ping"
)
Variables ¶
var File_api_test_service_v1_services_test_service_v1_proto protoreflect.FileDescriptor
var SrvTestV1_ServiceDesc = grpc.ServiceDesc{ ServiceName: "saas.api.nodeid_test.servicev1.SrvTestV1", HandlerType: (*SrvTestV1Server)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Ping", Handler: _SrvTestV1_Ping_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "api/test-service/v1/services/test.service.v1.proto", }
SrvTestV1_ServiceDesc is the grpc.ServiceDesc for SrvTestV1 service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterSrvTestV1HTTPServer ¶
func RegisterSrvTestV1HTTPServer(s *http.Server, srv SrvTestV1HTTPServer)
func RegisterSrvTestV1Server ¶
func RegisterSrvTestV1Server(s grpc.ServiceRegistrar, srv SrvTestV1Server)
Types ¶
type SrvTestV1Client ¶
type SrvTestV1Client interface {
// ping
Ping(ctx context.Context, in *resources.PingReq, opts ...grpc.CallOption) (*resources.PingResp, error)
}
SrvTestV1Client is the client API for SrvTestV1 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 NewSrvTestV1Client ¶
func NewSrvTestV1Client(cc grpc.ClientConnInterface) SrvTestV1Client
type SrvTestV1HTTPClient ¶
type SrvTestV1HTTPClient interface {
Ping(ctx context.Context, req *resources.PingReq, opts ...http.CallOption) (rsp *resources.PingResp, err error)
}
func NewSrvTestV1HTTPClient ¶
func NewSrvTestV1HTTPClient(client *http.Client) SrvTestV1HTTPClient
type SrvTestV1HTTPClientImpl ¶
type SrvTestV1HTTPClientImpl struct {
// contains filtered or unexported fields
}
type SrvTestV1HTTPServer ¶
type SrvTestV1Server ¶
type SrvTestV1Server interface {
// ping
Ping(context.Context, *resources.PingReq) (*resources.PingResp, error)
// contains filtered or unexported methods
}
SrvTestV1Server is the server API for SrvTestV1 service. All implementations must embed UnimplementedSrvTestV1Server for forward compatibility
type UnimplementedSrvTestV1Server ¶
type UnimplementedSrvTestV1Server struct {
}
UnimplementedSrvTestV1Server must be embedded to have forward compatible implementations.
type UnsafeSrvTestV1Server ¶
type UnsafeSrvTestV1Server interface {
// contains filtered or unexported methods
}
UnsafeSrvTestV1Server may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to SrvTestV1Server will result in compilation errors.