istio: istio.io/istio/mixer/pkg/runtime Index | Files | Directories

package runtime

import "istio.io/istio/mixer/pkg/runtime"

Index

Package Files

runtime.go

type Runtime Uses

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 Uses

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 Uses

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

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

func (*Runtime) StartListening Uses

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 Uses

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

PathSynopsis
configPackage 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.
config/constant
dispatcherPackage dispatcher is used to dispatch incoming requests to one or more handlers.
handler
langPackage lang chooses a language runtime for expressions.
monitoring
routingPackage routing implements a routing table for resolving incoming requests to handlers.
safecall
testing/data

Package runtime imports 13 packages (graph) and is imported by 2 packages. Updated 2019-10-03. Refresh now. Tools for package owners.