viewmodel

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2022 License: MIT Imports: 5 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type VmDbLoad

type VmDbLoad struct {
	Name string           `json:"name"`
	Sqls []*VmDbLoadOfSql `json:"sqls"`
}

func NewVmDbLoad

func NewVmDbLoad(name string) *VmDbLoad

type VmDbLoadOfSql

type VmDbLoadOfSql struct {
	Sql         string  `json:"sql"`
	LoadMax     float64 `json:"loadMax"`
	LoadSum     float64 `json:"loadSum"`
	TokenizedId string  `json:"tokenizedId"`
}

type VmExaminationCommandOption

type VmExaminationCommandOption struct {
	IsShort bool   `json:"isShort"`
	Name    string `json:"name"`
	Value   string `json:"value"`
}

func CreateOutputExaminationOption

func CreateOutputExaminationOption(addPrefix bool, filename string) *VmExaminationCommandOption

type VmExaminationIndexResult

type VmExaminationIndexResult struct {
	ExecutionTimeMillis int64          `json:"executionTimeMillis"`
	IndexTarget         *VmIndexTarget `json:"indexTarget"`
}

type VmExaminationResult

type VmExaminationResult struct {
	OriginalTimeMillis int64                       `json:"originalTimeMillis"`
	IndexResults       []*VmExaminationIndexResult `json:"indexResults"`
}

type VmIndexColumn

type VmIndexColumn struct {
	Name string `json:"name"`
}

type VmIndexTarget

type VmIndexTarget struct {
	TableName string           `json:"tableName"`
	Columns   []*VmIndexColumn `json:"columns"`
}

type VmMysqlExplainAnalyzeNode

type VmMysqlExplainAnalyzeNode struct {
	Text                  string     `json:"text"`
	Title                 string     `json:"title"`
	TableName             string     `json:"tableName"`
	EstimatedInitCost     null.Float `json:"estimatedInitCost"`
	EstimatedCost         null.Float `json:"estimatedCost"`
	EstimatedReturnedRows null.Int   `json:"estimatedReturnedRows"`
	ActualTimeFirstRow    null.Float `json:"actualTimeFirstRow"`
	ActualTimeAvg         null.Float `json:"actualTimeAvg"`
	ActualReturnedRows    null.Int   `json:"actualReturnedRows"`
	ActualLoopCount       null.Int   `json:"actualLoopCount"`

	Children []*VmMysqlExplainAnalyzeNode `json:"children"`
}

type VmPostgresExplainAnalyzeNode

type VmPostgresExplainAnalyzeNode struct {
	Text                  string     `json:"text"`
	Title                 string     `json:"title"`
	TableName             string     `json:"tableName"`
	EstimatedInitCost     null.Float `json:"estimatedInitCost"`
	EstimatedCost         null.Float `json:"estimatedCost"`
	EstimatedReturnedRows null.Int   `json:"estimatedReturnedRows"`
	EstimatedWidth        null.Int   `json:"estimatedWidth"`
	ActualTimeFirstRow    null.Float `json:"actualTimeFirstRow"`
	ActualTimeAvg         null.Float `json:"actualTimeAvg"`
	ActualReturnedRows    null.Int   `json:"actualReturnedRows"`
	ActualLoopCount       null.Int   `json:"actualLoopCount"`

	Children []*VmPostgresExplainAnalyzeNode `json:"children"`
}

type VmTimeDbLoad

type VmTimeDbLoad struct {
	Timestamp VmTimestamp `json:"timestamp"`
	Databases []*VmDbLoad `json:"databases"`
}

func NewVmTimeDbLoad

func NewVmTimeDbLoad(t time.Time) *VmTimeDbLoad

type VmTimestamp

type VmTimestamp time.Time

func (VmTimestamp) MarshalJSON

func (t VmTimestamp) MarshalJSON() ([]byte, error)

Jump to

Keyboard shortcuts

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