Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterSrvNodeIDV1HTTPServer(s *http.Server, srv SrvNodeIDV1HTTPServer)
- func RegisterSrvNodeIDV1Server(s grpc.ServiceRegistrar, srv SrvNodeIDV1Server)
- type SrvNodeIDV1Client
- type SrvNodeIDV1HTTPClient
- type SrvNodeIDV1HTTPClientImpl
- func (c *SrvNodeIDV1HTTPClientImpl) GetNodeId(ctx context.Context, in *resources.GetNodeIdReq, opts ...http.CallOption) (*resources.GetNodeIdResp, error)
- func (c *SrvNodeIDV1HTTPClientImpl) GetServiceInfo(ctx context.Context, in *resources.GetServiceInfoReq, opts ...http.CallOption) (*resources.GetServiceInfoResp, error)
- func (c *SrvNodeIDV1HTTPClientImpl) Ping(ctx context.Context, in *resources.PingReq, opts ...http.CallOption) (*resources.PingResp, error)
- func (c *SrvNodeIDV1HTTPClientImpl) ReleaseNodeId(ctx context.Context, in *resources.ReleaseNodeIdReq, opts ...http.CallOption) (*resources.ReleaseNodeIdResp, error)
- func (c *SrvNodeIDV1HTTPClientImpl) RenewalNodeId(ctx context.Context, in *resources.RenewalNodeIdReq, opts ...http.CallOption) (*resources.RenewalNodeIdResp, error)
- type SrvNodeIDV1HTTPServer
- type SrvNodeIDV1Server
- type UnimplementedSrvNodeIDV1Server
- func (UnimplementedSrvNodeIDV1Server) GetNodeId(context.Context, *resources.GetNodeIdReq) (*resources.GetNodeIdResp, error)
- func (UnimplementedSrvNodeIDV1Server) GetServiceInfo(context.Context, *resources.GetServiceInfoReq) (*resources.GetServiceInfoResp, error)
- func (UnimplementedSrvNodeIDV1Server) Ping(context.Context, *resources.PingReq) (*resources.PingResp, error)
- func (UnimplementedSrvNodeIDV1Server) ReleaseNodeId(context.Context, *resources.ReleaseNodeIdReq) (*resources.ReleaseNodeIdResp, error)
- func (UnimplementedSrvNodeIDV1Server) RenewalNodeId(context.Context, *resources.RenewalNodeIdReq) (*resources.RenewalNodeIdResp, error)
- type UnsafeSrvNodeIDV1Server
Constants ¶
const ( SrvNodeIDV1_Ping_FullMethodName = "/saas.api.nodeid.servicev1.SrvNodeIDV1/Ping" SrvNodeIDV1_GetServiceInfo_FullMethodName = "/saas.api.nodeid.servicev1.SrvNodeIDV1/GetServiceInfo" SrvNodeIDV1_GetNodeId_FullMethodName = "/saas.api.nodeid.servicev1.SrvNodeIDV1/GetNodeId" SrvNodeIDV1_RenewalNodeId_FullMethodName = "/saas.api.nodeid.servicev1.SrvNodeIDV1/RenewalNodeId" SrvNodeIDV1_ReleaseNodeId_FullMethodName = "/saas.api.nodeid.servicev1.SrvNodeIDV1/ReleaseNodeId" )
const OperationSrvNodeIDV1GetNodeId = "/saas.api.nodeid.servicev1.SrvNodeIDV1/GetNodeId"
const OperationSrvNodeIDV1GetServiceInfo = "/saas.api.nodeid.servicev1.SrvNodeIDV1/GetServiceInfo"
const OperationSrvNodeIDV1Ping = "/saas.api.nodeid.servicev1.SrvNodeIDV1/Ping"
const OperationSrvNodeIDV1ReleaseNodeId = "/saas.api.nodeid.servicev1.SrvNodeIDV1/ReleaseNodeId"
const OperationSrvNodeIDV1RenewalNodeId = "/saas.api.nodeid.servicev1.SrvNodeIDV1/RenewalNodeId"
Variables ¶
var File_api_nodeid_service_v1_services_node_id_service_v1_proto protoreflect.FileDescriptor
var SrvNodeIDV1_ServiceDesc = grpc.ServiceDesc{ ServiceName: "saas.api.nodeid.servicev1.SrvNodeIDV1", HandlerType: (*SrvNodeIDV1Server)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Ping", Handler: _SrvNodeIDV1_Ping_Handler, }, { MethodName: "GetServiceInfo", Handler: _SrvNodeIDV1_GetServiceInfo_Handler, }, { MethodName: "GetNodeId", Handler: _SrvNodeIDV1_GetNodeId_Handler, }, { MethodName: "RenewalNodeId", Handler: _SrvNodeIDV1_RenewalNodeId_Handler, }, { MethodName: "ReleaseNodeId", Handler: _SrvNodeIDV1_ReleaseNodeId_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "api/nodeid-service/v1/services/node_id.service.v1.proto", }
SrvNodeIDV1_ServiceDesc is the grpc.ServiceDesc for SrvNodeIDV1 service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterSrvNodeIDV1HTTPServer ¶
func RegisterSrvNodeIDV1HTTPServer(s *http.Server, srv SrvNodeIDV1HTTPServer)
func RegisterSrvNodeIDV1Server ¶
func RegisterSrvNodeIDV1Server(s grpc.ServiceRegistrar, srv SrvNodeIDV1Server)
Types ¶
type SrvNodeIDV1Client ¶
type SrvNodeIDV1Client interface { // ping Ping(ctx context.Context, in *resources.PingReq, opts ...grpc.CallOption) (*resources.PingResp, error) // 获取服务信息 GetServiceInfo(ctx context.Context, in *resources.GetServiceInfoReq, opts ...grpc.CallOption) (*resources.GetServiceInfoResp, error) // 获取节点id GetNodeId(ctx context.Context, in *resources.GetNodeIdReq, opts ...grpc.CallOption) (*resources.GetNodeIdResp, error) // 续订节点id RenewalNodeId(ctx context.Context, in *resources.RenewalNodeIdReq, opts ...grpc.CallOption) (*resources.RenewalNodeIdResp, error) // 释放节点id ReleaseNodeId(ctx context.Context, in *resources.ReleaseNodeIdReq, opts ...grpc.CallOption) (*resources.ReleaseNodeIdResp, error) }
SrvNodeIDV1Client is the client API for SrvNodeIDV1 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 NewSrvNodeIDV1Client ¶
func NewSrvNodeIDV1Client(cc grpc.ClientConnInterface) SrvNodeIDV1Client
type SrvNodeIDV1HTTPClient ¶
type SrvNodeIDV1HTTPClient interface { GetNodeId(ctx context.Context, req *resources.GetNodeIdReq, opts ...http.CallOption) (rsp *resources.GetNodeIdResp, err error) GetServiceInfo(ctx context.Context, req *resources.GetServiceInfoReq, opts ...http.CallOption) (rsp *resources.GetServiceInfoResp, err error) Ping(ctx context.Context, req *resources.PingReq, opts ...http.CallOption) (rsp *resources.PingResp, err error) ReleaseNodeId(ctx context.Context, req *resources.ReleaseNodeIdReq, opts ...http.CallOption) (rsp *resources.ReleaseNodeIdResp, err error) RenewalNodeId(ctx context.Context, req *resources.RenewalNodeIdReq, opts ...http.CallOption) (rsp *resources.RenewalNodeIdResp, err error) }
func NewSrvNodeIDV1HTTPClient ¶
func NewSrvNodeIDV1HTTPClient(client *http.Client) SrvNodeIDV1HTTPClient
type SrvNodeIDV1HTTPClientImpl ¶
type SrvNodeIDV1HTTPClientImpl struct {
// contains filtered or unexported fields
}
func (*SrvNodeIDV1HTTPClientImpl) GetNodeId ¶
func (c *SrvNodeIDV1HTTPClientImpl) GetNodeId(ctx context.Context, in *resources.GetNodeIdReq, opts ...http.CallOption) (*resources.GetNodeIdResp, error)
func (*SrvNodeIDV1HTTPClientImpl) GetServiceInfo ¶
func (c *SrvNodeIDV1HTTPClientImpl) GetServiceInfo(ctx context.Context, in *resources.GetServiceInfoReq, opts ...http.CallOption) (*resources.GetServiceInfoResp, error)
func (*SrvNodeIDV1HTTPClientImpl) Ping ¶
func (c *SrvNodeIDV1HTTPClientImpl) Ping(ctx context.Context, in *resources.PingReq, opts ...http.CallOption) (*resources.PingResp, error)
func (*SrvNodeIDV1HTTPClientImpl) ReleaseNodeId ¶
func (c *SrvNodeIDV1HTTPClientImpl) ReleaseNodeId(ctx context.Context, in *resources.ReleaseNodeIdReq, opts ...http.CallOption) (*resources.ReleaseNodeIdResp, error)
func (*SrvNodeIDV1HTTPClientImpl) RenewalNodeId ¶
func (c *SrvNodeIDV1HTTPClientImpl) RenewalNodeId(ctx context.Context, in *resources.RenewalNodeIdReq, opts ...http.CallOption) (*resources.RenewalNodeIdResp, error)
type SrvNodeIDV1HTTPServer ¶
type SrvNodeIDV1HTTPServer interface { // GetNodeId 获取节点id GetNodeId(context.Context, *resources.GetNodeIdReq) (*resources.GetNodeIdResp, error) // GetServiceInfo 获取服务信息 GetServiceInfo(context.Context, *resources.GetServiceInfoReq) (*resources.GetServiceInfoResp, error) // Ping ping Ping(context.Context, *resources.PingReq) (*resources.PingResp, error) // ReleaseNodeId 释放节点id ReleaseNodeId(context.Context, *resources.ReleaseNodeIdReq) (*resources.ReleaseNodeIdResp, error) // RenewalNodeId 续订节点id RenewalNodeId(context.Context, *resources.RenewalNodeIdReq) (*resources.RenewalNodeIdResp, error) }
type SrvNodeIDV1Server ¶
type SrvNodeIDV1Server interface { // ping Ping(context.Context, *resources.PingReq) (*resources.PingResp, error) // 获取服务信息 GetServiceInfo(context.Context, *resources.GetServiceInfoReq) (*resources.GetServiceInfoResp, error) // 获取节点id GetNodeId(context.Context, *resources.GetNodeIdReq) (*resources.GetNodeIdResp, error) // 续订节点id RenewalNodeId(context.Context, *resources.RenewalNodeIdReq) (*resources.RenewalNodeIdResp, error) // 释放节点id ReleaseNodeId(context.Context, *resources.ReleaseNodeIdReq) (*resources.ReleaseNodeIdResp, error) // contains filtered or unexported methods }
SrvNodeIDV1Server is the server API for SrvNodeIDV1 service. All implementations must embed UnimplementedSrvNodeIDV1Server for forward compatibility
type UnimplementedSrvNodeIDV1Server ¶
type UnimplementedSrvNodeIDV1Server struct { }
UnimplementedSrvNodeIDV1Server must be embedded to have forward compatible implementations.
func (UnimplementedSrvNodeIDV1Server) GetNodeId ¶
func (UnimplementedSrvNodeIDV1Server) GetNodeId(context.Context, *resources.GetNodeIdReq) (*resources.GetNodeIdResp, error)
func (UnimplementedSrvNodeIDV1Server) GetServiceInfo ¶
func (UnimplementedSrvNodeIDV1Server) GetServiceInfo(context.Context, *resources.GetServiceInfoReq) (*resources.GetServiceInfoResp, error)
func (UnimplementedSrvNodeIDV1Server) ReleaseNodeId ¶
func (UnimplementedSrvNodeIDV1Server) ReleaseNodeId(context.Context, *resources.ReleaseNodeIdReq) (*resources.ReleaseNodeIdResp, error)
func (UnimplementedSrvNodeIDV1Server) RenewalNodeId ¶
func (UnimplementedSrvNodeIDV1Server) RenewalNodeId(context.Context, *resources.RenewalNodeIdReq) (*resources.RenewalNodeIdResp, error)
type UnsafeSrvNodeIDV1Server ¶
type UnsafeSrvNodeIDV1Server interface {
// contains filtered or unexported methods
}
UnsafeSrvNodeIDV1Server may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to SrvNodeIDV1Server will result in compilation errors.