server

package
v0.0.0-...-0490640 Latest Latest
Warning

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

Go to latest
Published: May 16, 2019 License: Apache-2.0 Imports: 16 Imported by: 0

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

func (srv *Server) ListReports(ctx context.Context, in *reporting.Query) (*reporting.Reports, 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 reports based on id

Jump to

Keyboard shortcuts

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