services

package
v0.0.1-dev-ec4a8d8 Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2025 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ModuleName = "services"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Module

type Module struct {
	Name         string         `json:"name" bson:"name"`
	Status       *status.Health `json:"status,omitempty" bson:"status,omitempty"`
	IsRepairable bool           `json:"-" bson:"isRepairable"`
	IsCloudOnly  bool           `json:"-" bson:"-"`
	Description  string         `json:"description,omitempty" bson:"description"`
}

func (*Module) SetOk

func (m *Module) SetOk()

func (*Module) SetRepairingStatus

func (m *Module) SetRepairingStatus()

func (*Module) SetUnhealthyStatus

func (m *Module) SetUnhealthyStatus()

type ReairingInfo

type ReairingInfo struct {
	Node    string `json:"node"`
	Fixing  string `json:"fixing"`
	Service string `json:"service"`
	Pid     string `json:"pid"`
	Elaps   string `json:"elaps"`
}

type Service

type Service struct {
	Name               string         `json:"name" bson:"name"`
	Category           string         `json:"category" bson:"category"`
	Status             *status.Health `json:"status,omitempty" bson:"status,omitempty"`
	Modules            []Module       `json:"modules" bson:"modules"`
	IsInternalViewOnly bool           `json:"-" bson:"isInternalViewOnly"`
}

func (*Service) ConvergeUnhealthyStatus

func (s *Service) ConvergeUnhealthyStatus(moduleName string)

func (*Service) CopyModuleEmptyStruct

func (s *Service) CopyModuleEmptyStruct() Service

func (*Service) IsStatusOk

func (s *Service) IsStatusOk() bool

func (*Service) SetOk

func (s *Service) SetOk()

func (*Service) SetRepairingStatus

func (s *Service) SetRepairingStatus(repairingInfo ReairingInfo)

Jump to

Keyboard shortcuts

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