servicev1

package
v0.0.13 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 24, 2024 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

View Source
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"
)
View Source
const OperationSrvNodeIDV1GetNodeId = "/saas.api.nodeid.servicev1.SrvNodeIDV1/GetNodeId"
View Source
const OperationSrvNodeIDV1GetServiceInfo = "/saas.api.nodeid.servicev1.SrvNodeIDV1/GetServiceInfo"
View Source
const OperationSrvNodeIDV1Ping = "/saas.api.nodeid.servicev1.SrvNodeIDV1/Ping"
View Source
const OperationSrvNodeIDV1ReleaseNodeId = "/saas.api.nodeid.servicev1.SrvNodeIDV1/ReleaseNodeId"
View Source
const OperationSrvNodeIDV1RenewalNodeId = "/saas.api.nodeid.servicev1.SrvNodeIDV1/RenewalNodeId"

Variables

View Source
var File_api_nodeid_service_v1_services_node_id_service_v1_proto protoreflect.FileDescriptor
View Source
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.

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 (*SrvNodeIDV1HTTPClientImpl) GetServiceInfo

func (*SrvNodeIDV1HTTPClientImpl) Ping

func (*SrvNodeIDV1HTTPClientImpl) ReleaseNodeId

func (*SrvNodeIDV1HTTPClientImpl) RenewalNodeId

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) Ping

func (UnimplementedSrvNodeIDV1Server) ReleaseNodeId

func (UnimplementedSrvNodeIDV1Server) RenewalNodeId

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL