general

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: May 20, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ServiceStatusOnline      ServiceStatus = "online"
	ServiceStatusMaintenance ServiceStatus = "maintenance"

	EnvProduction Env = "production"
	EnvStaging    Env = "staging"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Env

type Env string

type Service

type Service struct{}

func New

func New() *Service

func (*Service) Status

func (s *Service) Status() Status

type ServiceStatus

type ServiceStatus string

type Status

type Status struct {
	Status  ServiceStatus
	Version *common.VersionInfo
	Env     Env
	Uptime  string
}

Jump to

Keyboard shortcuts

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