server

package
v0.0.0-...-6aee3ff Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2020 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// RetryInterval ..
	RetryInterval = 10 * time.Millisecond
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ExportEdge

type ExportEdge struct {
	Source string `json:"source"`
	Target string `json:"target"`
	Type   string `json:"type"`
}

type ExportGraph

type ExportGraph struct {
	Nodes []ExportNode `json:"nodes"`
	Edges []ExportEdge `json:"edges"`
}

ExportGraph roughly maps to statusgraph/graph

type ExportNode

type ExportNode struct {
	ID        string `json:"id"`
	ServiceID string `json:"service_id"`
	Type      string `json:"type"`
}

type Graph

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

func NewGraph

func NewGraph() *Graph

NewGraph returns a new graph

func (*Graph) AddEdge

func (g *Graph) AddEdge(n1, n2 *Node)

AddEdge adds an edge

func (*Graph) AddNode

func (g *Graph) AddNode(n *Node)

AddNode adds a node

func (*Graph) EnsureEdge

func (g *Graph) EnsureEdge(n1, n2 *Node)

func (*Graph) FindNode

func (g *Graph) FindNode(id string) *Node

func (*Graph) JSONGraph

func (g *Graph) JSONGraph() ([]byte, error)

func (*Graph) WriteDotGraph

func (g *Graph) WriteDotGraph(target string) error

type Node

type Node struct {
	ServiceID string `json:"service_id"`
}

type Observer

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

func New

func New(client *kubernetes.Clientset, target string, port int, syncInterval time.Duration, bufferSize int) (*Observer, error)

func (*Observer) Serve

func (srv *Observer) Serve(ctx context.Context)

func (*Observer) Stop

func (srv *Observer) Stop()

type TraceProviderClient

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

TraceProviderClient ..

func NewGateway

func NewGateway(address string) (*TraceProviderClient, error)

NewGateway ..

Jump to

Keyboard shortcuts

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