daemon

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

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

Go to latest
Published: Mar 20, 2015 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Provides an extension mechanism for 'gear daemon'.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddDaemonExtension

func AddDaemonExtension(extension DaemonExtension)

Register an extension to this server during init() or startup

Types

type DaemonExtension

type DaemonExtension interface {
	// Returns the list of supported schemes
	Schemes() []string
	// Addr is a URI with at least a protocol and host. Should not
	// return as long as the server is active.
	Start(addr string, dispatcher *dispatcher.Dispatcher, done chan<- bool) error
}

func DaemonExtensionFor

func DaemonExtensionFor(addr string) (DaemonExtension, error)

func DaemonExtensions

func DaemonExtensions() []DaemonExtension

Directories

Path Synopsis
The gear 'daemon' extension.
The gear 'daemon' extension.

Jump to

Keyboard shortcuts

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