view

package
v0.0.0-...-df6119b Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2024 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AnalysisView

type AnalysisView struct {
	Name      string
	NodeNames []string
	SpanViews map[string]*SpanView
}

type ChangeViewHandler

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

func NewChangeViewHandler

func NewChangeViewHandler(analysisRepository analysis.AnalysisRepository, repository ViewRepository) *ChangeViewHandler

func (*ChangeViewHandler) ChangeView

func (handler *ChangeViewHandler) ChangeView(analysisName, name string, nodeNames []string, builder string, builderOptions map[string]string)

type CreateViewHandler

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

func NewCreateViewHandler

func NewCreateViewHandler(analysisRepository analysis.AnalysisRepository, repository ViewRepository) *CreateViewHandler

func (*CreateViewHandler) CreateView

func (handler *CreateViewHandler) CreateView(analysisName, name string, nodeNames []string, builder string, builderOptions map[string]string)

type DeleteViewHandler

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

func NewDeleteViewHandler

func NewDeleteViewHandler(repository ViewRepository) *DeleteViewHandler

func (*DeleteViewHandler) DeleteView

func (handler *DeleteViewHandler) DeleteView(analysisName, name string)

type FilePathViewBuilder

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

func NewFilePathViewBuilder

func NewFilePathViewBuilder(options map[string]string) *FilePathViewBuilder

func (*FilePathViewBuilder) Build

func (builder *FilePathViewBuilder) Build(analysis *analysis.Analysis) *AnalysisView

func (*FilePathViewBuilder) WithNodeNames

func (builder *FilePathViewBuilder) WithNodeNames(nodeNames []string) ViewBuilder

type ListenWebBrowserHandler

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

func NewListenWebBrowserHandler

func NewListenWebBrowserHandler() *ListenWebBrowserHandler

func (*ListenWebBrowserHandler) ListenWebBrowser

func (handler *ListenWebBrowserHandler) ListenWebBrowser(analysisName, viewName, address string)

type PatternViewBuilder

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

func NewPatternViewBuilder

func NewPatternViewBuilder(options map[string]string) *PatternViewBuilder

func (*PatternViewBuilder) Build

func (builder *PatternViewBuilder) Build(analysis *analysis.Analysis) *AnalysisView

func (*PatternViewBuilder) WithNodeNames

func (builder *PatternViewBuilder) WithNodeNames(nodeNames []string) ViewBuilder

type RenderCSVHandler

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

func NewRenderCSVHandler

func NewRenderCSVHandler(repository ViewRepository) *RenderCSVHandler

func (*RenderCSVHandler) RenderCSV

func (handler *RenderCSVHandler) RenderCSV(analysisName, viewName, spanName string)

type RenderPNGHandler

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

func NewRenderPNGHandler

func NewRenderPNGHandler(repository ViewRepository) *RenderPNGHandler

func (*RenderPNGHandler) RenderPNG

func (handler *RenderPNGHandler) RenderPNG(analysisName, viewName, spanName string)

type RenderTerminalHandler

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

func NewRenderTerminalHandler

func NewRenderTerminalHandler(repository ViewRepository) *RenderTerminalHandler

func (*RenderTerminalHandler) RenderTerminal

func (handler *RenderTerminalHandler) RenderTerminal(analysisName, name, spanName string, nodeStart, edgeNodeStart, nodeCount int)

type RenderWebBrowserHandler

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

func NewRenderWebBrowserHandler

func NewRenderWebBrowserHandler(repository ViewRepository) *RenderWebBrowserHandler

func (*RenderWebBrowserHandler) RenderWebBrowser

func (handler *RenderWebBrowserHandler) RenderWebBrowser(analysisName, viewName, spanName string)

type SpanView

type SpanView struct {
	Name     string
	Size     int
	Values   [][]int
	MinValue int
	MaxValue int
}

type ViewBuilder

type ViewBuilder interface {
	WithNodeNames(nodeNames []string) ViewBuilder
	Build(analysis *analysis.Analysis) *AnalysisView
}

type ViewRepository

type ViewRepository interface {
	Add(analysisName, name string, view *AnalysisView)
	Set(analysisName, name string, view *AnalysisView)
	Remove(analysisName, name string)

	Get(analysisName, name string) *AnalysisView
}

Jump to

Keyboard shortcuts

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