report_manager

package
v0.0.0-...-be2ef80 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2024 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Overview

Package report_manager is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

This section is empty.

Variables

View Source
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 (*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 (*ExportFromReportManagerRequest) ProtoMessage

func (*ExportFromReportManagerRequest) ProtoMessage()

func (*ExportFromReportManagerRequest) ProtoReflect

func (*ExportFromReportManagerRequest) Reset

func (x *ExportFromReportManagerRequest) Reset()

func (*ExportFromReportManagerRequest) 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 (*ListDownloadReportRequestsResponse) ProtoMessage

func (*ListDownloadReportRequestsResponse) ProtoMessage()

func (*ListDownloadReportRequestsResponse) ProtoReflect

func (*ListDownloadReportRequestsResponse) Reset

func (*ListDownloadReportRequestsResponse) 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.

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) ListDownloadReportRequests

Jump to

Keyboard shortcuts

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