Versions in this module Expand all Collapse all v0 v0.17.0 Apr 5, 2019 Changes in this version type Protocol + EdgeResponses string + type ResponseFlags map[string]float64 + type Responses map[string]ResponseFlags v0.16.2 Mar 21, 2019 v0.16.0 Dec 15, 2021 Changes in this version + const GraphTypeApp + const GraphTypeService + const GraphTypeVersionedApp + const GraphTypeWorkload + const NodeTypeApp + const NodeTypeService + const NodeTypeUnknown + const NodeTypeWorkload + const TF + const Unknown + var Protocols []Protocol = []Protocol + func AddOutgoingEdgeToMetadata(sourceMetadata, edgeMetadata map[string]interface{}) + func AddServiceGraphTraffic(toEdge, fromEdge *Edge) + func AddToMetadata(protocol string, val float64, code string, ...) + func BadRequest(message string) + func CheckError(err error) + func Error(message string) + func Forbidden(message string) + func Id(...) (id, nodeType string) + func IsOK(telemetryVal string) bool + type Edge struct + Dest *Node + Metadata map[string]interface{} + Source *Node + func NewEdge(source, dest *Node) Edge + type NamespaceInfo struct + Duration time.Duration + Name string + type Node struct + App string + Edges []*Edge + ID string + Metadata map[string]interface{} + Namespace string + NodeType string + Service string + Version string + Workload string + func NewNode(...) Node + func NewNodeExplicit(id, namespace, workload, app, version, service, nodeType, graphType string) Node + func (s *Node) AddEdge(dest *Node) *Edge + type Protocol struct + EdgeRates []Rate + Name string + NodeRates []Rate + Unit string + UnitShort string + var GRPC Protocol = Protocol{ ... } + var HTTP Protocol = Protocol{ ... } + var TCP Protocol = Protocol{ ... } + type Rate struct + IsErr bool + IsIn bool + IsOut bool + IsPercentErr bool + IsPercentReq bool + IsTotal bool + Name string + Precision int + type Response struct + Code int + Message string + func Panic(message string, code int) Response + type Service struct + Name string + Namespace string + func (s *Service) Key() string + type TrafficMap map[string]*Node + func NewTrafficMap() TrafficMap