lib

package
v0.0.0-...-c09f2b4 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	GRAPH_NODESPEC = 0
	GRAPH_RANKSPEC = 0
	GRAPH_PAD      = 1
	GRAPH_PACK     = 1

	NODE_CLUSTER_BORDER_COLOR = "grey"
	NODE_CLUSTER_STYLE        = "rounded"

	OPERATION_SHAPE = "rectangle"
	OPERATION_COLOR = "\"#68b8e2\""
	OPERATION_STYLE = "filled"

	EDGE_COLOR      = "\"#152730\""
	EXEC_EDGE_STYLE = "dotted"
	DATA_EDGE_STYLE = "solid"

	CONDITION_SHAPE = "diamond"
	CONDITION_STYLE = "filled"
	CONDITION_COLOR = "\"#f9af4d\""

	FOREACH_SHAPE = "diamond"
	FOREACH_STYLE = "filled"
	FOREACH_COLOR = "\"#f9af4d\""

	DYNAMIC_END_SHAPE = "invhouse"
	DYNAMIC_END_STYLE = "filled"
	DYNAMIC_END_COLOR = "pink"

	CONDITION_CLUSTER_BORDER_COLOR = "grey"
	CONDITION_CLUSTER_STYLE        = "rounded"
)

Variables

This section is empty.

Functions

func ListRequests

func ListRequests(function string) (map[string]string, error)

func MakeDotFromDefinitionString

func MakeDotFromDefinitionString(definition string) (string, error)

Types

type NodeTrace

type NodeTrace struct {
	StartTime int `json:"start-time"`
	Duration  int `json:"duration"`
}

traces of each nodes in a dag

type RequestItem

type RequestItem struct {
	TraceID string     `json:"traceID"`
	Spans   []*SpanOps `json:"spans"`
}

type RequestTrace

type RequestTrace struct {
	RequestID  string                `json:"request-id"`
	NodeTraces map[string]*NodeTrace `json:"traces"`
	StartTime  int                   `json:"start-time"`
	Duration   int                   `json:"duration"`
}

RequestTrace object to response traces details

func ListTraces

func ListTraces(request string) (*RequestTrace, error)

type Requests

type Requests struct {
	Data []*RequestItem `json:"data"`
}

type SpanItem

type SpanItem struct {
	TraceID       string `json:"traceID"`
	SpanID        string `json:"spanID"`
	OperationName string `json:"operationName"`
	StartTime     int    `json:"startTime"`
	Duration      int    `json:"duration"`
}

type SpanOps

type SpanOps struct {
	TraceID       string `json:"traceID"`
	SpanID        string `json:"spanID"`
	OperationName string `json:"operationName"`
}

type TraceItem

type TraceItem struct {
	TraceID string      `json:"traceID"`
	Spans   []*SpanItem `json:"spans"`
}

type Traces

type Traces struct {
	Data []*TraceItem `json:"data"`
}

Jump to

Keyboard shortcuts

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