service

package module
v0.0.0-...-a8040e4 Latest Latest
Warning

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

Go to latest
Published: May 19, 2025 License: MIT Imports: 2 Imported by: 1 module, 1 package

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

service

Opsminded service framework

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type QueryResult

type QueryResult struct {
	Title     string
	Principal graphlib.Vertex
	SubGraph  graphlib.Subgraph
}

type Service

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

func New

func New(graph *graphlib.Graph) *Service

func (*Service) ClearGraphHealthyStatus

func (s *Service) ClearGraphHealthyStatus()

func (*Service) GetVertex

func (s *Service) GetVertex(key string) (graphlib.Vertex, error)

func (*Service) GetVertexAttributes

func (s *Service) GetVertexAttributes(key string) ([]VertexAttribute, error)

func (*Service) Path

func (s *Service) Path(kSrc, ktgt string) (QueryResult, error)

func (*Service) SetVertexHealth

func (s *Service) SetVertexHealth(key string, health bool) error

func (*Service) Summary

func (s *Service) Summary() Summary

func (*Service) VertexDependencies

func (s *Service) VertexDependencies(key string, all bool) (QueryResult, error)

func (*Service) VertexDependents

func (s *Service) VertexDependents(key string, all bool) (QueryResult, error)

func (*Service) VertexNeighbors

func (s *Service) VertexNeighbors(key string) (QueryResult, error)

type Summary

type Summary struct {
	TotalEdges             int
	TotalVertices          int
	TotalHealthyVertices   int
	TotalUnhealthyVertices int
	UnhealthyVertices      []graphlib.Vertex
}

type VertexAttribute

type VertexAttribute struct {
	Type        string
	Description string
	Value       any
}

Jump to

Keyboard shortcuts

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