daemon

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2017 License: BSD-2-Clause Imports: 10 Imported by: 0

Documentation

Overview

Package exec provides the entry point of the daemon sub-program and helpers to spawn a daemon process.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Daemon

type Daemon struct {
	Forked        int
	BinPath       string
	DbPath        string
	SockPath      string
	LogPathPrefix string
}

Daemon keeps configurations for the daemon process.

func (*Daemon) Main

func (d *Daemon) Main(serve func(string, string)) int

Main is the entry point of the daemon sub-program.

func (*Daemon) Spawn added in v0.9.0

func (d *Daemon) Spawn() error

Spawn spawns a daemon in the background. It is supposed to be called from a client.

Directories

Path Synopsis
Package API provides the API to the daemon RPC service.
Package API provides the API to the daemon RPC service.
Package service implements the daemon service for mediating access to the storage backend.
Package service implements the daemon service for mediating access to the storage backend.

Jump to

Keyboard shortcuts

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