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

architecture

package
v0.0.58 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2023 License: MIT Imports: 5 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)

Types

type DependencyGraph

type DependencyGraph struct {
	ServiceDependencyGraph *Graph
}

func NewDependencyGraph

func NewDependencyGraph(ctx context.Context, project *configurations.Project) (*DependencyGraph, error)

type Edge

type Edge struct {
	From string
	To   string
}

type Graph

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

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) Edges

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

func (*Graph) Nodes

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

func (*Graph) TopologicalSort

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

Jump to

Keyboard shortcuts

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