status

package
v0.14.0 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type API

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

func (*API) RegisterEndpoints

func (a *API) RegisterEndpoints(mux *chi.Mux)

type BuildInfo

type BuildInfo struct {
	Version    string `json:"version"`
	CommitHash string `json:"commit_hash"`
	Name       string `json:"name"`
}

type Health added in v0.10.0

type Health struct {
	Kratos bool `json:"kratos"`
	Hydra  bool `json:"hydra"`
}

type Service added in v0.8.0

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

func NewService added in v0.8.0

func (*Service) BuildInfo added in v0.10.0

func (s *Service) BuildInfo(ctx context.Context) *BuildInfo

func (*Service) HydraStatus added in v0.10.0

func (s *Service) HydraStatus(ctx context.Context) bool

func (*Service) KratosStatus added in v0.10.0

func (s *Service) KratosStatus(ctx context.Context) bool

type ServiceInterface added in v0.8.0

type ServiceInterface interface {
	KratosStatus(context.Context) bool
	HydraStatus(context.Context) bool
	BuildInfo(context.Context) *BuildInfo
}

type Status

type Status struct {
	Status    string     `json:"status"`
	BuildInfo *BuildInfo `json:"buildInfo"`
}

Jump to

Keyboard shortcuts

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