service

package
v0.0.0-...-5af8586 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2020 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsAlive

func IsAlive() bool

func IsReady

func IsReady() bool

func Run

func Run(service StartStopper, appName string)

func SetAlive

func SetAlive(state bool)

func SetReady

func SetReady(state bool)

func Wait

func Wait(signals []os.Signal) os.Signal

Types

type HTTPServer

type HTTPServer struct {
	Server *http.Server
	// contains filtered or unexported fields
}

func NewHTTPServer

func NewHTTPServer(addr string, shutdownTimeout time.Duration, router http.Handler) *HTTPServer

func (*HTTPServer) Start

func (s *HTTPServer) Start()

func (*HTTPServer) Stop

func (s *HTTPServer) Stop()

type StartStopper

type StartStopper interface {
	Start()
	Stop()
}

Jump to

Keyboard shortcuts

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