status

package
v0.322.0 Latest Latest
Warning

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

Go to latest
Published: May 2, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WireRoutes

func WireRoutes(r chi.Router, s *Service)

Types

type BuildMetadata

type BuildMetadata struct {
	Name       string `json:"name"`
	Version    string `json:"version"`
	BuildID    string `json:"build_id"`
	CommitSha  string `json:"commit_sha"`
	BranchName string `json:"branch_name"`
	TagName    string `json:"tag_name"`
}

func (*BuildMetadata) String

func (m *BuildMetadata) String() string

type Response

type Response struct {
	BuildMetadata BuildMetadata  `json:"build_metadata"`
	Config        ResponseConfig `json:"config"`
	Status        string         `json:"status"`
}

type ResponseConfig

type ResponseConfig struct {
	Core     *config.LibraryConfig `yaml:"core"`
	Services []ServiceStatus       `yaml:"services"`
}

type Service

type Service struct {
	BuildMetadata *BuildMetadata
	Config        *config.LibraryConfig
	Services      []handlerinitialiser.HandlerInitialiser
}

func (*Service) HandleGetStatus

func (s *Service) HandleGetStatus(rw http.ResponseWriter, r *http.Request)

type ServiceStatus

type ServiceStatus struct {
	Name   string      `json:"name"`
	Config interface{} `json:"config"`
}

Jump to

Keyboard shortcuts

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