nodev1grpc

package
v1.5.1-20250325111807-... Latest Latest
Warning

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

Go to latest
Published: unknown License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DrpRpcService_SubscribeDRP_FullMethodName      = "/drp.node.v1.DrpRpcService/SubscribeDRP"
	DrpRpcService_UnsubscribeDRP_FullMethodName    = "/drp.node.v1.DrpRpcService/UnsubscribeDRP"
	DrpRpcService_GetDRPHashGraph_FullMethodName   = "/drp.node.v1.DrpRpcService/GetDRPHashGraph"
	DrpRpcService_SyncDRPObject_FullMethodName     = "/drp.node.v1.DrpRpcService/SyncDRPObject"
	DrpRpcService_SendCustomMessage_FullMethodName = "/drp.node.v1.DrpRpcService/SendCustomMessage"
	DrpRpcService_SendGroupMessage_FullMethodName  = "/drp.node.v1.DrpRpcService/SendGroupMessage"
	DrpRpcService_AddCustomGroup_FullMethodName    = "/drp.node.v1.DrpRpcService/AddCustomGroup"
)

Variables

View Source
var DrpRpcService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "drp.node.v1.DrpRpcService",
	HandlerType: (*DrpRpcServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "SubscribeDRP",
			Handler:    _DrpRpcService_SubscribeDRP_Handler,
		},
		{
			MethodName: "UnsubscribeDRP",
			Handler:    _DrpRpcService_UnsubscribeDRP_Handler,
		},
		{
			MethodName: "GetDRPHashGraph",
			Handler:    _DrpRpcService_GetDRPHashGraph_Handler,
		},
		{
			MethodName: "SyncDRPObject",
			Handler:    _DrpRpcService_SyncDRPObject_Handler,
		},
		{
			MethodName: "SendCustomMessage",
			Handler:    _DrpRpcService_SendCustomMessage_Handler,
		},
		{
			MethodName: "SendGroupMessage",
			Handler:    _DrpRpcService_SendGroupMessage_Handler,
		},
		{
			MethodName: "AddCustomGroup",
			Handler:    _DrpRpcService_AddCustomGroup_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "drp/node/v1/rpc.proto",
}

DrpRpcService_ServiceDesc is the grpc.ServiceDesc for DrpRpcService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterDrpRpcServiceServer

func RegisterDrpRpcServiceServer(s grpc.ServiceRegistrar, srv DrpRpcServiceServer)

Types

type DrpRpcServiceClient

type DrpRpcServiceClient interface {
	SubscribeDRP(ctx context.Context, in *v1.SubscribeDRPRequest, opts ...grpc.CallOption) (*v1.GenericRespone, error)
	UnsubscribeDRP(ctx context.Context, in *v1.UnsubscribeDRPRequest, opts ...grpc.CallOption) (*v1.GenericRespone, error)
	GetDRPHashGraph(ctx context.Context, in *v1.GetDRPHashGraphRequest, opts ...grpc.CallOption) (*v1.GetDRPHashGraphResponse, error)
	SyncDRPObject(ctx context.Context, in *v1.SyncDRPObjectRequest, opts ...grpc.CallOption) (*v1.GenericRespone, error)
	SendCustomMessage(ctx context.Context, in *v1.SendCustomMessageRequest, opts ...grpc.CallOption) (*v1.GenericRespone, error)
	SendGroupMessage(ctx context.Context, in *v1.SendGroupMessageRequest, opts ...grpc.CallOption) (*v1.GenericRespone, error)
	AddCustomGroup(ctx context.Context, in *v1.AddCustomGroupRequest, opts ...grpc.CallOption) (*v1.GenericRespone, error)
}

DrpRpcServiceClient is the client API for DrpRpcService 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 NewDrpRpcServiceClient

func NewDrpRpcServiceClient(cc grpc.ClientConnInterface) DrpRpcServiceClient

type DrpRpcServiceServer

DrpRpcServiceServer is the server API for DrpRpcService service. All implementations should embed UnimplementedDrpRpcServiceServer for forward compatibility.

type UnimplementedDrpRpcServiceServer

type UnimplementedDrpRpcServiceServer struct{}

UnimplementedDrpRpcServiceServer should be embedded to have forward compatible implementations.

NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.

func (UnimplementedDrpRpcServiceServer) AddCustomGroup

func (UnimplementedDrpRpcServiceServer) GetDRPHashGraph

func (UnimplementedDrpRpcServiceServer) SendCustomMessage

func (UnimplementedDrpRpcServiceServer) SendGroupMessage

func (UnimplementedDrpRpcServiceServer) SubscribeDRP

func (UnimplementedDrpRpcServiceServer) SyncDRPObject

func (UnimplementedDrpRpcServiceServer) UnsubscribeDRP

type UnsafeDrpRpcServiceServer

type UnsafeDrpRpcServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeDrpRpcServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to DrpRpcServiceServer will result in compilation errors.

Source Files

  • rpc_grpc.pb.go

Jump to

Keyboard shortcuts

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