daemon

package
v0.0.0-...-9d5d235 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2014 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