Help us shape the future of Go! Take the 2026 Go Developer Survey

architecture

package
v0.0.87 Latest Latest
Warning

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

Go to latest
Published: Jan 2, 2024 License: MIT Imports: 9 Imported by: 7

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadProject

func LoadProject(ctx context.Context, project *configurations.Project) (*basev1.Project, error)

func LoadService

func LoadService(ctx context.Context, service *configurations.Service) (*basev1.Service, error)

func Reverse

func Reverse[T any](ss []T)

func ToGraphResponse added in v0.0.65

func ToGraphResponse(g *Graph) *observabilityv1.GraphResponse

func ToType added in v0.0.78

Types

type Edge

type Edge struct {
	From string
	To   string
}

func (Edge) String added in v0.0.81

func (e Edge) String() string

type Graph

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

func LoadPublicApplicationGraph added in v0.0.65

func LoadPublicApplicationGraph(ctx context.Context, project *configurations.Project) ([]*Graph, error)

func LoadServiceGraph

func LoadServiceGraph(ctx context.Context, project *configurations.Project) (*Graph, error)

func NewGraph

func NewGraph(name string) *Graph

func (*Graph) AddEdge

func (g *Graph) AddEdge(u, v string)

func (*Graph) AddNode

func (g *Graph) AddNode(u string)

func (*Graph) AddTypedNode added in v0.0.81

func (g *Graph) AddTypedNode(u string, t any)

func (*Graph) Antecedents added in v0.0.81

func (g *Graph) Antecedents(s string) []string

func (*Graph) Edges

func (g *Graph) Edges() []Edge

func (*Graph) Nodes

func (g *Graph) Nodes() []Node

func (*Graph) Subgraph added in v0.0.81

func (g *Graph) Subgraph(start string) *Graph

func (*Graph) TopologicalSort

func (g *Graph) TopologicalSort() []string

func (*Graph) TopologicalSortFrom added in v0.0.81

func (g *Graph) TopologicalSortFrom(node string) []string

type Node added in v0.0.78

type Node struct {
	ID   string
	Type any
}

func (Node) String added in v0.0.81

func (n Node) String() string

Jump to

Keyboard shortcuts

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