runtime

package
v0.0.0-...-1a56975 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2019 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Runtime

type Runtime struct {
	*probe.Probe
	// contains filtered or unexported fields
}

Runtime is the main entry point to the Mixer runtime environment. It listens to configuration, instantiates handler instances, creates the dispatch machinery and handles incoming requests.

func New

func New(
	s store.Store,
	templates map[string]*template.Info,
	adapters map[string]*adapter.Info,
	defaultConfigNamespace string,
	executorPool *pool.GoroutinePool,
	handlerPool *pool.GoroutinePool,
	enableTracing bool) *Runtime

New returns a new instance of Runtime.

func (*Runtime) Dispatcher

func (c *Runtime) Dispatcher() dispatcher.Dispatcher

Dispatcher returns the dispatcher.Dispatcher that is implemented by this runtime package.

func (*Runtime) StartListening

func (c *Runtime) StartListening() error

StartListening directs Runtime to start listening to configuration changes. As config changes, runtime processes the confguration and creates a dispatcher.

func (*Runtime) StopListening

func (c *Runtime) StopListening()

StopListening directs Runtime to stop listening to configuration changes. It will not unload the current configuration, or close the existing adapters.

Directories

Path Synopsis
Package config is designed to listen to the config changes through the store and create a fully-resolved configuration state that can be used by the rest of the runtime code.
Package config is designed to listen to the config changes through the store and create a fully-resolved configuration state that can be used by the rest of the runtime code.
Package dispatcher is used to dispatch incoming requests to one or more handlers.
Package dispatcher is used to dispatch incoming requests to one or more handlers.
Package lang chooses a language runtime for expressions.
Package lang chooses a language runtime for expressions.
Package routing implements a routing table for resolving incoming requests to handlers.
Package routing implements a routing table for resolving incoming requests to handlers.
testing

Jump to

Keyboard shortcuts

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