Documentation
¶
Index ¶
- Constants
- Variables
- func RegisterDrpRpcServiceServer(s grpc.ServiceRegistrar, srv DrpRpcServiceServer)
- type DrpRpcServiceClient
- type DrpRpcServiceServer
- type UnimplementedDrpRpcServiceServer
- func (UnimplementedDrpRpcServiceServer) AddCustomGroup(context.Context, *v1.AddCustomGroupRequest) (*v1.GenericRespone, error)
- func (UnimplementedDrpRpcServiceServer) GetDRPHashGraph(context.Context, *v1.GetDRPHashGraphRequest) (*v1.GetDRPHashGraphResponse, error)
- func (UnimplementedDrpRpcServiceServer) SendCustomMessage(context.Context, *v1.SendCustomMessageRequest) (*v1.GenericRespone, error)
- func (UnimplementedDrpRpcServiceServer) SendGroupMessage(context.Context, *v1.SendGroupMessageRequest) (*v1.GenericRespone, error)
- func (UnimplementedDrpRpcServiceServer) SubscribeDRP(context.Context, *v1.SubscribeDRPRequest) (*v1.GenericRespone, error)
- func (UnimplementedDrpRpcServiceServer) SyncDRPObject(context.Context, *v1.SyncDRPObjectRequest) (*v1.GenericRespone, error)
- func (UnimplementedDrpRpcServiceServer) UnsubscribeDRP(context.Context, *v1.UnsubscribeDRPRequest) (*v1.GenericRespone, error)
- type UnsafeDrpRpcServiceServer
Constants ¶
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 ¶
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 ¶
type DrpRpcServiceServer interface {
SubscribeDRP(context.Context, *v1.SubscribeDRPRequest) (*v1.GenericRespone, error)
UnsubscribeDRP(context.Context, *v1.UnsubscribeDRPRequest) (*v1.GenericRespone, error)
GetDRPHashGraph(context.Context, *v1.GetDRPHashGraphRequest) (*v1.GetDRPHashGraphResponse, error)
SyncDRPObject(context.Context, *v1.SyncDRPObjectRequest) (*v1.GenericRespone, error)
SendCustomMessage(context.Context, *v1.SendCustomMessageRequest) (*v1.GenericRespone, error)
SendGroupMessage(context.Context, *v1.SendGroupMessageRequest) (*v1.GenericRespone, error)
AddCustomGroup(context.Context, *v1.AddCustomGroupRequest) (*v1.GenericRespone, error)
}
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) AddCustomGroup(context.Context, *v1.AddCustomGroupRequest) (*v1.GenericRespone, error)
func (UnimplementedDrpRpcServiceServer) GetDRPHashGraph ¶
func (UnimplementedDrpRpcServiceServer) GetDRPHashGraph(context.Context, *v1.GetDRPHashGraphRequest) (*v1.GetDRPHashGraphResponse, error)
func (UnimplementedDrpRpcServiceServer) SendCustomMessage ¶
func (UnimplementedDrpRpcServiceServer) SendCustomMessage(context.Context, *v1.SendCustomMessageRequest) (*v1.GenericRespone, error)
func (UnimplementedDrpRpcServiceServer) SendGroupMessage ¶
func (UnimplementedDrpRpcServiceServer) SendGroupMessage(context.Context, *v1.SendGroupMessageRequest) (*v1.GenericRespone, error)
func (UnimplementedDrpRpcServiceServer) SubscribeDRP ¶
func (UnimplementedDrpRpcServiceServer) SubscribeDRP(context.Context, *v1.SubscribeDRPRequest) (*v1.GenericRespone, error)
func (UnimplementedDrpRpcServiceServer) SyncDRPObject ¶
func (UnimplementedDrpRpcServiceServer) SyncDRPObject(context.Context, *v1.SyncDRPObjectRequest) (*v1.GenericRespone, error)
func (UnimplementedDrpRpcServiceServer) UnsubscribeDRP ¶
func (UnimplementedDrpRpcServiceServer) UnsubscribeDRP(context.Context, *v1.UnsubscribeDRPRequest) (*v1.GenericRespone, error)
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