Documentation ¶
Index ¶
- Variables
- func RegisterServiceServer(s grpc.ServiceRegistrar, srv ServiceServer)
- type QueueCreateResult
- func (*QueueCreateResult) Descriptor() ([]byte, []int)deprecated
- func (x *QueueCreateResult) GetErrmsg() string
- func (x *QueueCreateResult) GetErrno() int32
- func (*QueueCreateResult) ProtoMessage()
- func (x *QueueCreateResult) ProtoReflect() protoreflect.Message
- func (x *QueueCreateResult) Reset()
- func (x *QueueCreateResult) String() string
- type QueueCreateTask
- func (*QueueCreateTask) Descriptor() ([]byte, []int)deprecated
- func (x *QueueCreateTask) GetQueue() string
- func (x *QueueCreateTask) GetTopic() string
- func (*QueueCreateTask) ProtoMessage()
- func (x *QueueCreateTask) ProtoReflect() protoreflect.Message
- func (x *QueueCreateTask) Reset()
- func (x *QueueCreateTask) String() string
- type QueueRemoveResult
- func (*QueueRemoveResult) Descriptor() ([]byte, []int)deprecated
- func (x *QueueRemoveResult) GetErrmsg() string
- func (x *QueueRemoveResult) GetErrno() int32
- func (*QueueRemoveResult) ProtoMessage()
- func (x *QueueRemoveResult) ProtoReflect() protoreflect.Message
- func (x *QueueRemoveResult) Reset()
- func (x *QueueRemoveResult) String() string
- type QueueRemoveTask
- func (*QueueRemoveTask) Descriptor() ([]byte, []int)deprecated
- func (x *QueueRemoveTask) GetQueue() string
- func (x *QueueRemoveTask) GetTopic() string
- func (*QueueRemoveTask) ProtoMessage()
- func (x *QueueRemoveTask) ProtoReflect() protoreflect.Message
- func (x *QueueRemoveTask) Reset()
- func (x *QueueRemoveTask) String() string
- type SendResult
- func (*SendResult) Descriptor() ([]byte, []int)deprecated
- func (x *SendResult) GetErrmsg() string
- func (x *SendResult) GetErrno() int32
- func (x *SendResult) GetId() string
- func (*SendResult) ProtoMessage()
- func (x *SendResult) ProtoReflect() protoreflect.Message
- func (x *SendResult) Reset()
- func (x *SendResult) String() string
- type SendTask
- type ServiceClient
- type ServiceServer
- type UnimplementedServiceServer
- func (UnimplementedServiceServer) QueueCreate(context.Context, *QueueCreateTask) (*QueueCreateResult, error)
- func (UnimplementedServiceServer) QueueRemove(context.Context, *QueueRemoveTask) (*QueueRemoveResult, error)
- func (UnimplementedServiceServer) Send(context.Context, *SendTask) (*SendResult, error)
- type UnsafeServiceServer
Constants ¶
This section is empty.
Variables ¶
var File_pb_abi_mq_pb_proto protoreflect.FileDescriptor
var Service_ServiceDesc = grpc.ServiceDesc{ ServiceName: "mq.Service", HandlerType: (*ServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Send", Handler: _Service_Send_Handler, }, { MethodName: "QueueCreate", Handler: _Service_QueueCreate_Handler, }, { MethodName: "QueueRemove", Handler: _Service_QueueRemove_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "pb/abi-mq-pb.proto", }
Service_ServiceDesc is the grpc.ServiceDesc for Service service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterServiceServer ¶
func RegisterServiceServer(s grpc.ServiceRegistrar, srv ServiceServer)
Types ¶
type QueueCreateResult ¶
type QueueCreateResult struct { Errno int32 `protobuf:"varint,1,opt,name=errno,proto3" json:"errno,omitempty"` Errmsg string `protobuf:"bytes,2,opt,name=errmsg,proto3" json:"errmsg,omitempty"` // contains filtered or unexported fields }
func (*QueueCreateResult) Descriptor
deprecated
func (*QueueCreateResult) Descriptor() ([]byte, []int)
Deprecated: Use QueueCreateResult.ProtoReflect.Descriptor instead.
func (*QueueCreateResult) GetErrmsg ¶
func (x *QueueCreateResult) GetErrmsg() string
func (*QueueCreateResult) GetErrno ¶
func (x *QueueCreateResult) GetErrno() int32
func (*QueueCreateResult) ProtoMessage ¶
func (*QueueCreateResult) ProtoMessage()
func (*QueueCreateResult) ProtoReflect ¶
func (x *QueueCreateResult) ProtoReflect() protoreflect.Message
func (*QueueCreateResult) Reset ¶
func (x *QueueCreateResult) Reset()
func (*QueueCreateResult) String ¶
func (x *QueueCreateResult) String() string
type QueueCreateTask ¶
type QueueCreateTask struct { Topic string `protobuf:"bytes,1,opt,name=topic,proto3" json:"topic,omitempty"` Queue string `protobuf:"bytes,2,opt,name=queue,proto3" json:"queue,omitempty"` // contains filtered or unexported fields }
func (*QueueCreateTask) Descriptor
deprecated
func (*QueueCreateTask) Descriptor() ([]byte, []int)
Deprecated: Use QueueCreateTask.ProtoReflect.Descriptor instead.
func (*QueueCreateTask) GetQueue ¶
func (x *QueueCreateTask) GetQueue() string
func (*QueueCreateTask) GetTopic ¶
func (x *QueueCreateTask) GetTopic() string
func (*QueueCreateTask) ProtoMessage ¶
func (*QueueCreateTask) ProtoMessage()
func (*QueueCreateTask) ProtoReflect ¶
func (x *QueueCreateTask) ProtoReflect() protoreflect.Message
func (*QueueCreateTask) Reset ¶
func (x *QueueCreateTask) Reset()
func (*QueueCreateTask) String ¶
func (x *QueueCreateTask) String() string
type QueueRemoveResult ¶
type QueueRemoveResult struct { Errno int32 `protobuf:"varint,1,opt,name=errno,proto3" json:"errno,omitempty"` Errmsg string `protobuf:"bytes,2,opt,name=errmsg,proto3" json:"errmsg,omitempty"` // contains filtered or unexported fields }
func (*QueueRemoveResult) Descriptor
deprecated
func (*QueueRemoveResult) Descriptor() ([]byte, []int)
Deprecated: Use QueueRemoveResult.ProtoReflect.Descriptor instead.
func (*QueueRemoveResult) GetErrmsg ¶
func (x *QueueRemoveResult) GetErrmsg() string
func (*QueueRemoveResult) GetErrno ¶
func (x *QueueRemoveResult) GetErrno() int32
func (*QueueRemoveResult) ProtoMessage ¶
func (*QueueRemoveResult) ProtoMessage()
func (*QueueRemoveResult) ProtoReflect ¶
func (x *QueueRemoveResult) ProtoReflect() protoreflect.Message
func (*QueueRemoveResult) Reset ¶
func (x *QueueRemoveResult) Reset()
func (*QueueRemoveResult) String ¶
func (x *QueueRemoveResult) String() string
type QueueRemoveTask ¶
type QueueRemoveTask struct { Topic string `protobuf:"bytes,1,opt,name=topic,proto3" json:"topic,omitempty"` Queue string `protobuf:"bytes,2,opt,name=queue,proto3" json:"queue,omitempty"` // contains filtered or unexported fields }
func (*QueueRemoveTask) Descriptor
deprecated
func (*QueueRemoveTask) Descriptor() ([]byte, []int)
Deprecated: Use QueueRemoveTask.ProtoReflect.Descriptor instead.
func (*QueueRemoveTask) GetQueue ¶
func (x *QueueRemoveTask) GetQueue() string
func (*QueueRemoveTask) GetTopic ¶
func (x *QueueRemoveTask) GetTopic() string
func (*QueueRemoveTask) ProtoMessage ¶
func (*QueueRemoveTask) ProtoMessage()
func (*QueueRemoveTask) ProtoReflect ¶
func (x *QueueRemoveTask) ProtoReflect() protoreflect.Message
func (*QueueRemoveTask) Reset ¶
func (x *QueueRemoveTask) Reset()
func (*QueueRemoveTask) String ¶
func (x *QueueRemoveTask) String() string
type SendResult ¶
type SendResult struct { Errno int32 `protobuf:"varint,1,opt,name=errno,proto3" json:"errno,omitempty"` Errmsg string `protobuf:"bytes,2,opt,name=errmsg,proto3" json:"errmsg,omitempty"` Id string `protobuf:"bytes,3,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*SendResult) Descriptor
deprecated
func (*SendResult) Descriptor() ([]byte, []int)
Deprecated: Use SendResult.ProtoReflect.Descriptor instead.
func (*SendResult) GetErrmsg ¶
func (x *SendResult) GetErrmsg() string
func (*SendResult) GetErrno ¶
func (x *SendResult) GetErrno() int32
func (*SendResult) GetId ¶
func (x *SendResult) GetId() string
func (*SendResult) ProtoMessage ¶
func (*SendResult) ProtoMessage()
func (*SendResult) ProtoReflect ¶
func (x *SendResult) ProtoReflect() protoreflect.Message
func (*SendResult) Reset ¶
func (x *SendResult) Reset()
func (*SendResult) String ¶
func (x *SendResult) String() string
type SendTask ¶
type SendTask struct { Topic string `protobuf:"bytes,1,opt,name=topic,proto3" json:"topic,omitempty"` Body string `protobuf:"bytes,2,opt,name=body,proto3" json:"body,omitempty"` // contains filtered or unexported fields }
func (*SendTask) Descriptor
deprecated
func (*SendTask) ProtoMessage ¶
func (*SendTask) ProtoMessage()
func (*SendTask) ProtoReflect ¶
func (x *SendTask) ProtoReflect() protoreflect.Message
type ServiceClient ¶
type ServiceClient interface { Send(ctx context.Context, in *SendTask, opts ...grpc.CallOption) (*SendResult, error) QueueCreate(ctx context.Context, in *QueueCreateTask, opts ...grpc.CallOption) (*QueueCreateResult, error) QueueRemove(ctx context.Context, in *QueueRemoveTask, opts ...grpc.CallOption) (*QueueRemoveResult, error) }
ServiceClient is the client API for Service 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 NewServiceClient ¶
func NewServiceClient(cc grpc.ClientConnInterface) ServiceClient
type ServiceServer ¶
type ServiceServer interface { Send(context.Context, *SendTask) (*SendResult, error) QueueCreate(context.Context, *QueueCreateTask) (*QueueCreateResult, error) QueueRemove(context.Context, *QueueRemoveTask) (*QueueRemoveResult, error) }
ServiceServer is the server API for Service service. All implementations should embed UnimplementedServiceServer for forward compatibility
type UnimplementedServiceServer ¶
type UnimplementedServiceServer struct { }
UnimplementedServiceServer should be embedded to have forward compatible implementations.
func (UnimplementedServiceServer) QueueCreate ¶
func (UnimplementedServiceServer) QueueCreate(context.Context, *QueueCreateTask) (*QueueCreateResult, error)
func (UnimplementedServiceServer) QueueRemove ¶
func (UnimplementedServiceServer) QueueRemove(context.Context, *QueueRemoveTask) (*QueueRemoveResult, error)
func (UnimplementedServiceServer) Send ¶
func (UnimplementedServiceServer) Send(context.Context, *SendTask) (*SendResult, error)
type UnsafeServiceServer ¶
type UnsafeServiceServer interface {
// contains filtered or unexported methods
}
UnsafeServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ServiceServer will result in compilation errors.