render

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2024 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var TimestampEventLabels = []string{
	"Start",
	"Req",
	"ReqBody",
	"Fetch",
	"Process",
	"Resp",
	"Connected",
	"Bereq",
	"Beresp",
	"BerespBody",
	"Error",
	"Reset",
}

Functions

func PercentilesLineChart added in v0.2.0

func PercentilesLineChart(txsSet vsl.TransactionSet, f TimestampsForm) templ.Component

func SequenceDiagram

func SequenceDiagram(tx *vsl.Transaction) string

SequenceDiagram returns an string representing a Mermaid's sequence diagram

func TimelineChart added in v0.2.0

func TimelineChart(txsSet vsl.TransactionSet, f TimestampsForm) templ.Component

func TxTree

func TxTree(tx *vsl.Transaction) string

Types

type CustomBuilder

type CustomBuilder struct {
	strings.Builder
}

func (*CustomBuilder) PadAdd

func (b *CustomBuilder) PadAdd(s string)

PadAdd is a helper function to append a fixed padding to the string

type TimestampsForm added in v0.2.0

type TimestampsForm struct {
	SinceLast   bool
	Timeline    bool
	Events      []string
	OtherEvents bool
}

func (TimestampsForm) HasEvent added in v0.2.0

func (f TimestampsForm) HasEvent(e string) bool

Jump to

Keyboard shortcuts

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