plugin

package
v1.8.0 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2018 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Configurators map[string]Configurator

Configurators is a map of Configurator functions.

View Source
var EngineFactories map[string]EngineFactory

EngineFactories is a map where engine name matches EngineFactory.

Metrics is pointer to registry to keep Centrifugo metrics.

Functions

func RegisterConfigurator

func RegisterConfigurator(name string, fn Configurator)

RegisterConfigurator allows to register custom configure function.

func RegisterEngine

func RegisterEngine(name string, fn EngineFactory)

RegisterEngine allows to register custom Engine implementation.

Types

type Configurator

type Configurator func(config.Setter) error

Configurator is a function that can set default option values, flags, ENV vars.

type EngineFactory

type EngineFactory func(*node.Node, config.Getter) (engine.Engine, error)

EngineFactory is a function that returns engine.Engine implementation.

Jump to

Keyboard shortcuts

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