runner

package
v0.0.0-...-daf8b82 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunHanlder

func RunHanlder(start func(), stop func())

func SignalHandle

func SignalHandle(handleFunc func(os.Signal) bool)

Types

type Service

type Service interface {
	Start() error
	Stop() error
}

type ServiceRunner

type ServiceRunner interface {
	Wait()
}

func RunService

func RunService(s Service) ServiceRunner

Jump to

Keyboard shortcuts

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