Categorygithub.com/jonasi/svc
modulepackage
0.0.0-20200622113325-9798210d9440
Repository: https://github.com/jonasi/svc.git
Documentation: pkg.go.dev

# README

github.com/jonasi/svc - just some service helpers and things

pkg.go.dev

# Functions

LifecycleFnNoCtx is a helper that turns a func() error into a LifecycleFn.
Multi returns a new Service that provides a unified Service interface for all of the provided services.
Start starts multiple services.
StartAndWait is helper for the initialization Start & Wait pattern.
Stop stops multiple services.
Wait waits on multiple services.
WrapBlocking transforms a blocking start func (like http.ListenAndServe) and returns a Service.
WrapStartStop wraps a start function that returns immediately and returns a Service.

# Constants

Valid state values.
Valid state values.
Valid state values.

# Variables

# Interfaces

A Service is a long running process that can start, stop and wait.

# Type aliases

LifecycleFn is a helper type for describing the start, stop, wait methods.