service

package
v0.0.0-...-684225f Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2019 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HealthStatus

type HealthStatus int
const (
	StatusUnhealthy HealthStatus = -1
	StatusHealthy   HealthStatus = 1

	EnvKey = "ENVIRONMENT"
)

type Service

type Service struct {
	Name          string
	Logger        *log.Logger
	HTTPServer    *http.Server
	IsDevelopment bool
	// contains filtered or unexported fields
}

func New

func New(name string) *Service

func (*Service) SetHealth

func (s *Service) SetHealth(health HealthStatus)

func (*Service) SetReady

func (s *Service) SetReady(ready bool)

func (*Service) Start

func (s *Service) Start(httpPort string)

Jump to

Keyboard shortcuts

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