Documentation ¶
Index ¶
- Variables
- func RegisterReportServer(s wsrpc.ServiceRegistrar, srv ReportServer)
- type ReportClient
- type ReportRequest
- type ReportResponse
- func (*ReportResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ReportResponse) GetCode() int32
- func (x *ReportResponse) GetError() string
- func (*ReportResponse) ProtoMessage()
- func (x *ReportResponse) ProtoReflect() protoreflect.Message
- func (x *ReportResponse) Reset()
- func (x *ReportResponse) String() string
- type ReportServer
Constants ¶
This section is empty.
Variables ¶
View Source
var File_report_proto protoreflect.FileDescriptor
View Source
var Report_ServiceDesc = wsrpc.ServiceDesc{ ServiceName: "report.Report", HandlerType: (*ReportServer)(nil), Methods: []wsrpc.MethodDesc{ { MethodName: "Transmit", Handler: _Report_Transmit_Handler, }, }, }
Report_ServiceDesc is the wsrpc.ServiceDesc for Report service. It's only intended for direct use with wsrpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterReportServer ¶
func RegisterReportServer(s wsrpc.ServiceRegistrar, srv ReportServer)
Types ¶
type ReportClient ¶
type ReportClient interface {
Transmit(ctx context.Context, in *ReportRequest) (*ReportResponse, error)
}
ReportClient is the client API for Report service.
func NewReportClient ¶
func NewReportClient(cc wsrpc.ClientInterface) ReportClient
type ReportRequest ¶
type ReportRequest struct { Payload []byte `protobuf:"bytes,1,opt,name=payload,proto3" json:"payload,omitempty"` // contains filtered or unexported fields }
func (*ReportRequest) Descriptor
deprecated
func (*ReportRequest) Descriptor() ([]byte, []int)
Deprecated: Use ReportRequest.ProtoReflect.Descriptor instead.
func (*ReportRequest) GetPayload ¶
func (x *ReportRequest) GetPayload() []byte
func (*ReportRequest) ProtoMessage ¶
func (*ReportRequest) ProtoMessage()
func (*ReportRequest) ProtoReflect ¶
func (x *ReportRequest) ProtoReflect() protoreflect.Message
func (*ReportRequest) Reset ¶
func (x *ReportRequest) Reset()
func (*ReportRequest) String ¶
func (x *ReportRequest) String() string
type ReportResponse ¶
type ReportResponse struct { Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` Error string `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"` // contains filtered or unexported fields }
func (*ReportResponse) Descriptor
deprecated
func (*ReportResponse) Descriptor() ([]byte, []int)
Deprecated: Use ReportResponse.ProtoReflect.Descriptor instead.
func (*ReportResponse) GetCode ¶
func (x *ReportResponse) GetCode() int32
func (*ReportResponse) GetError ¶
func (x *ReportResponse) GetError() string
func (*ReportResponse) ProtoMessage ¶
func (*ReportResponse) ProtoMessage()
func (*ReportResponse) ProtoReflect ¶
func (x *ReportResponse) ProtoReflect() protoreflect.Message
func (*ReportResponse) Reset ¶
func (x *ReportResponse) Reset()
func (*ReportResponse) String ¶
func (x *ReportResponse) String() string
type ReportServer ¶
type ReportServer interface {
Transmit(context.Context, *ReportRequest) (*ReportResponse, error)
}
ReportServer is the server API for Report service.
Click to show internal directories.
Click to hide internal directories.