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
Click to show internal directories.
Click to hide internal directories.