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

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