Back to / mixer / pkg / runtime

package runtime

v0.0.0 (215611e)
Latest Go to latest
Published: 2 hours ago | License: Apache-2.0 | Module:


Package Files

type Runtime

type Runtime struct {
	// 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,
	namespaces []string) *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.

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier