daemon

package
v0.13.1 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2019 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Overview

Package daemon defines common structure for all daemonizable services, like ethereum-watcher, issuing authority, etc.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewOpts

func NewOpts(serviceName string, command string, usage string) *optparse.Parser

func Start

func Start(startFn StartUpFunc, args []string)

Types

type Service

type Service interface {
	Shutdown()
	Wait()
}

type StartUpFunc

type StartUpFunc func(args []string) Service

Jump to

Keyboard shortcuts

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