server

package
v0.0.0-...-d983439 Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2024 License: Apache-2.0 Imports: 24 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ReportManagerChan

type ReportManagerChan struct {
	// contains filtered or unexported fields
}

type ReportManagerErrorChan

type ReportManagerErrorChan struct {
	// contains filtered or unexported fields
}

type Server

type Server struct {
	// contains filtered or unexported fields
}

Server implementation for reporting

func New

func New(es *relaxting.ES2Backend, rm reportmanager.ReportManagerServiceClient, lcrOpenSearchRequest int, db *pgdb.DB,
	isEnhancedReportingEnabled bool) *Server

New creates a new server

func (*Server) AssetCount

func (srv *Server) AssetCount(ctx context.Context, in *reporting.ListFilters) (*reporting.AssetSummary, error)

func (*Server) Export

Export streams a json or csv export

func (*Server) ExportNode

func (*Server) ExportReportManager

func (srv *Server) ExportReportManager(ctx context.Context, in *reporting.Query) (*reporting.CustomReportResponse, error)

ExportReportManager populate the report manager request and sent for processing

func (*Server) GetReportContent

func (*Server) GetReportListForReportManager

func (srv *Server) GetReportListForReportManager(filters *reporting.ListFilters, stream reporting.ReportingService_GetReportListForReportManagerServer) error

func (*Server) ListAsset

func (*Server) ListControlInfo

func (srv *Server) ListControlInfo(ctx context.Context, in *reporting.Query) (*reporting.ControlElements, error)

ListControlInfo returns a list of controlListItems based on query

func (*Server) ListControlItems

func (srv *Server) ListControlItems(ctx context.Context, in *reporting.ControlItemRequest) (*reporting.ControlItems, error)

ListControlItems returns a list of controlListItems based on query

func (*Server) ListControlItemsRange

func (srv *Server) ListControlItemsRange(ctx context.Context, in *reporting.ControlItemRequest) (*reporting.ControlItems, error)

ListControlItemsRange returns a list of controlListItems based on query

func (*Server) ListNodes

func (srv *Server) ListNodes(ctx context.Context, in *reporting.Query) (*reporting.Nodes, error)

ListNodes returns a list of nodes based on query

func (*Server) ListProfiles

func (srv *Server) ListProfiles(ctx context.Context, in *reporting.Query) (*reporting.ProfileMins, error)

ListProfiles returns a list of profiles based on query

func (*Server) ListReportIds

func (srv *Server) ListReportIds(ctx context.Context, in *reporting.Query) (*reporting.ReportIds, error)

ListReportIds returns a list of reports based on query

func (*Server) ListReports

func (srv *Server) ListReports(ctx context.Context, in *reporting.Query) (*reporting.ReportsSummaryLevelOne, error)

ListReports returns a list of reports based on query

func (*Server) ListSuggestions

func (srv *Server) ListSuggestions(ctx context.Context, in *reporting.SuggestionRequest) (*reporting.Suggestions, error)

ListSuggestions returns a list of suggestions based on query

func (*Server) ReadNode

func (srv *Server) ReadNode(ctx context.Context, in *reporting.Id) (*reporting.Node, error)

ReadNode returns a node based on id

func (*Server) ReadNodeHeader

func (srv *Server) ReadNodeHeader(ctx context.Context, in *reporting.Query) (*reporting.NodeHeaderInfo, error)

ReadNodeHeader takes the report Id as input and returns a report showing specific header details of report.

func (*Server) ReadReport

func (srv *Server) ReadReport(ctx context.Context, in *reporting.Query) (*reporting.Report, error)

ReadReport returns a report based on id

Jump to

Keyboard shortcuts

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