server

package
v0.0.0-...-6794c67 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2021 License: Apache-2.0 Imports: 18 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

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

Server implementation for reporting

func New

func New(es *relaxting.ES2Backend) *Server

New creates a new server

func (*Server) Export

Export streams a json or csv export

func (*Server) ExportNode

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