Documentation ¶
Overview ¶
Package report_manager is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Variables
- func RegisterReportManagerServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterReportManagerServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client ReportManagerServiceClient) error
- func RegisterReportManagerServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterReportManagerServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server ReportManagerServiceServer) error
- func RegisterReportManagerServiceServer(s *grpc.Server, srv ReportManagerServiceServer)
- type DownloadRequestResponse
- func (*DownloadRequestResponse) Descriptor() ([]byte, []int)deprecated
- func (x *DownloadRequestResponse) GetAcknowledgementId() string
- func (x *DownloadRequestResponse) GetCreatedAt() *timestamppb.Timestamp
- func (x *DownloadRequestResponse) GetDuration() string
- func (x *DownloadRequestResponse) GetEndedAt() *timestamppb.Timestamp
- func (x *DownloadRequestResponse) GetErrMessage() string
- func (x *DownloadRequestResponse) GetReportSize() int64
- func (x *DownloadRequestResponse) GetReportType() string
- func (x *DownloadRequestResponse) GetStatus() string
- func (*DownloadRequestResponse) ProtoMessage()
- func (x *DownloadRequestResponse) ProtoReflect() protoreflect.Message
- func (x *DownloadRequestResponse) Reset()
- func (x *DownloadRequestResponse) String() string
- type ExportFromReportManagerRequest
- func (*ExportFromReportManagerRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ExportFromReportManagerRequest) GetId() string
- func (*ExportFromReportManagerRequest) ProtoMessage()
- func (x *ExportFromReportManagerRequest) ProtoReflect() protoreflect.Message
- func (x *ExportFromReportManagerRequest) Reset()
- func (x *ExportFromReportManagerRequest) String() string
- type ListDownloadReportRequestsResponse
- func (*ListDownloadReportRequestsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListDownloadReportRequestsResponse) GetData() []*DownloadRequestResponse
- func (*ListDownloadReportRequestsResponse) ProtoMessage()
- func (x *ListDownloadReportRequestsResponse) ProtoReflect() protoreflect.Message
- func (x *ListDownloadReportRequestsResponse) Reset()
- func (x *ListDownloadReportRequestsResponse) String() string
- type ReportManagerServiceClient
- type ReportManagerServiceServer
- type ReportManagerService_ExportFromReportManagerClient
- type ReportManagerService_ExportFromReportManagerServer
- type UnimplementedReportManagerServiceServer
Constants ¶
This section is empty.
Variables ¶
var File_external_report_manager_report_manager_proto protoreflect.FileDescriptor
Functions ¶
func RegisterReportManagerServiceHandler ¶
func RegisterReportManagerServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
RegisterReportManagerServiceHandler registers the http handlers for service ReportManagerService to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterReportManagerServiceHandlerClient ¶
func RegisterReportManagerServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client ReportManagerServiceClient) error
RegisterReportManagerServiceHandlerClient registers the http handlers for service ReportManagerService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "ReportManagerServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "ReportManagerServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "ReportManagerServiceClient" to call the correct interceptors.
func RegisterReportManagerServiceHandlerFromEndpoint ¶
func RegisterReportManagerServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterReportManagerServiceHandlerFromEndpoint is same as RegisterReportManagerServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterReportManagerServiceHandlerServer ¶
func RegisterReportManagerServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server ReportManagerServiceServer) error
RegisterReportManagerServiceHandlerServer registers the http handlers for service ReportManagerService to "mux". UnaryRPC :call ReportManagerServiceServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906.
func RegisterReportManagerServiceServer ¶
func RegisterReportManagerServiceServer(s *grpc.Server, srv ReportManagerServiceServer)
Types ¶
type DownloadRequestResponse ¶
type DownloadRequestResponse struct { AcknowledgementId string `protobuf:"bytes,1,opt,name=acknowledgement_id,json=acknowledgementId,proto3" json:"acknowledgement_id,omitempty"` Status string `protobuf:"bytes,2,opt,name=status,proto3" json:"status,omitempty"` ReportSize int64 `protobuf:"varint,3,opt,name=report_size,json=reportSize,proto3" json:"report_size,omitempty"` ErrMessage string `protobuf:"bytes,4,opt,name=err_message,json=errMessage,proto3" json:"err_message,omitempty"` CreatedAt *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` EndedAt *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=ended_at,json=endedAt,proto3" json:"ended_at,omitempty"` Duration string `protobuf:"bytes,7,opt,name=duration,proto3" json:"duration,omitempty"` ReportType string `protobuf:"bytes,8,opt,name=report_type,json=reportType,proto3" json:"report_type,omitempty"` // contains filtered or unexported fields }
func (*DownloadRequestResponse) Descriptor
deprecated
func (*DownloadRequestResponse) Descriptor() ([]byte, []int)
Deprecated: Use DownloadRequestResponse.ProtoReflect.Descriptor instead.
func (*DownloadRequestResponse) GetAcknowledgementId ¶
func (x *DownloadRequestResponse) GetAcknowledgementId() string
func (*DownloadRequestResponse) GetCreatedAt ¶
func (x *DownloadRequestResponse) GetCreatedAt() *timestamppb.Timestamp
func (*DownloadRequestResponse) GetDuration ¶
func (x *DownloadRequestResponse) GetDuration() string
func (*DownloadRequestResponse) GetEndedAt ¶
func (x *DownloadRequestResponse) GetEndedAt() *timestamppb.Timestamp
func (*DownloadRequestResponse) GetErrMessage ¶
func (x *DownloadRequestResponse) GetErrMessage() string
func (*DownloadRequestResponse) GetReportSize ¶
func (x *DownloadRequestResponse) GetReportSize() int64
func (*DownloadRequestResponse) GetReportType ¶
func (x *DownloadRequestResponse) GetReportType() string
func (*DownloadRequestResponse) GetStatus ¶
func (x *DownloadRequestResponse) GetStatus() string
func (*DownloadRequestResponse) ProtoMessage ¶
func (*DownloadRequestResponse) ProtoMessage()
func (*DownloadRequestResponse) ProtoReflect ¶
func (x *DownloadRequestResponse) ProtoReflect() protoreflect.Message
func (*DownloadRequestResponse) Reset ¶
func (x *DownloadRequestResponse) Reset()
func (*DownloadRequestResponse) String ¶
func (x *DownloadRequestResponse) String() string
type ExportFromReportManagerRequest ¶
type ExportFromReportManagerRequest struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*ExportFromReportManagerRequest) Descriptor
deprecated
func (*ExportFromReportManagerRequest) Descriptor() ([]byte, []int)
Deprecated: Use ExportFromReportManagerRequest.ProtoReflect.Descriptor instead.
func (*ExportFromReportManagerRequest) GetId ¶
func (x *ExportFromReportManagerRequest) GetId() string
func (*ExportFromReportManagerRequest) ProtoMessage ¶
func (*ExportFromReportManagerRequest) ProtoMessage()
func (*ExportFromReportManagerRequest) ProtoReflect ¶
func (x *ExportFromReportManagerRequest) ProtoReflect() protoreflect.Message
func (*ExportFromReportManagerRequest) Reset ¶
func (x *ExportFromReportManagerRequest) Reset()
func (*ExportFromReportManagerRequest) String ¶
func (x *ExportFromReportManagerRequest) String() string
type ListDownloadReportRequestsResponse ¶
type ListDownloadReportRequestsResponse struct { Data []*DownloadRequestResponse `protobuf:"bytes,1,rep,name=data,proto3" json:"data,omitempty"` // contains filtered or unexported fields }
func (*ListDownloadReportRequestsResponse) Descriptor
deprecated
func (*ListDownloadReportRequestsResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListDownloadReportRequestsResponse.ProtoReflect.Descriptor instead.
func (*ListDownloadReportRequestsResponse) GetData ¶
func (x *ListDownloadReportRequestsResponse) GetData() []*DownloadRequestResponse
func (*ListDownloadReportRequestsResponse) ProtoMessage ¶
func (*ListDownloadReportRequestsResponse) ProtoMessage()
func (*ListDownloadReportRequestsResponse) ProtoReflect ¶
func (x *ListDownloadReportRequestsResponse) ProtoReflect() protoreflect.Message
func (*ListDownloadReportRequestsResponse) Reset ¶
func (x *ListDownloadReportRequestsResponse) Reset()
func (*ListDownloadReportRequestsResponse) String ¶
func (x *ListDownloadReportRequestsResponse) String() string
type ReportManagerServiceClient ¶
type ReportManagerServiceClient interface { // List Download Report Requests // // Returns the details of the download report requests placed by the user. // // Authorization Action: // “` // “` // //reportmanager:requests:list ListDownloadReportRequests(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*ListDownloadReportRequestsResponse, error) ExportFromReportManager(ctx context.Context, in *ExportFromReportManagerRequest, opts ...grpc.CallOption) (ReportManagerService_ExportFromReportManagerClient, error) }
ReportManagerServiceClient is the client API for ReportManagerService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewReportManagerServiceClient ¶
func NewReportManagerServiceClient(cc grpc.ClientConnInterface) ReportManagerServiceClient
type ReportManagerServiceServer ¶
type ReportManagerServiceServer interface { // List Download Report Requests // // Returns the details of the download report requests placed by the user. // // Authorization Action: // “` // “` // //reportmanager:requests:list ListDownloadReportRequests(context.Context, *emptypb.Empty) (*ListDownloadReportRequestsResponse, error) ExportFromReportManager(*ExportFromReportManagerRequest, ReportManagerService_ExportFromReportManagerServer) error }
ReportManagerServiceServer is the server API for ReportManagerService service.
type ReportManagerService_ExportFromReportManagerClient ¶
type ReportManagerService_ExportFromReportManagerClient interface { Recv() (*common.ExportData, error) grpc.ClientStream }
type ReportManagerService_ExportFromReportManagerServer ¶
type ReportManagerService_ExportFromReportManagerServer interface { Send(*common.ExportData) error grpc.ServerStream }
type UnimplementedReportManagerServiceServer ¶
type UnimplementedReportManagerServiceServer struct { }
UnimplementedReportManagerServiceServer can be embedded to have forward compatible implementations.
func (*UnimplementedReportManagerServiceServer) ExportFromReportManager ¶
func (*UnimplementedReportManagerServiceServer) ExportFromReportManager(*ExportFromReportManagerRequest, ReportManagerService_ExportFromReportManagerServer) error
func (*UnimplementedReportManagerServiceServer) ListDownloadReportRequests ¶
func (*UnimplementedReportManagerServiceServer) ListDownloadReportRequests(context.Context, *emptypb.Empty) (*ListDownloadReportRequestsResponse, error)