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

package handler

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

Index

Package Files

env.go logger.go signature.go table.go

func NewEnv Uses

func NewEnv(cfgID int64, name string, gp *pool.GoroutinePool) adapter.Env

NewEnv returns a new environment instance.

type Entry Uses

type Entry struct {
    // Name of the Handler
    Name string

    // Handler is the initialized Handler object.
    Handler adapter.Handler

    // AdapterName that was used to create this Entry.
    AdapterName string

    // Signature of the configuration used to create this entry.
    Signature signature
    // contains filtered or unexported fields
}

Entry in the handler table.

type Table Uses

type Table struct {
    // contains filtered or unexported fields
}

Table contains a set of instantiated and configured adapter handlers.

func Empty Uses

func Empty() *Table

Empty returns an empty table instance.

func NewTable Uses

func NewTable(old *Table, snapshot *config.Snapshot, gp *pool.GoroutinePool) *Table

NewTable returns a new table, based on the given config snapshot. The table will re-use existing handlers as much as possible from the old table.

func (*Table) Cleanup Uses

func (t *Table) Cleanup(current *Table)

Cleanup the old table by selectively closing handlers that are not used in the given table. The cleanup method is called on the "old" table, and the "current" table (that is based on the new config) is passed as a parameter. The Cleanup method selectively closes all adapters that are not used by the current table. This method will use perf counters on current will be used, instead of the perf counters on t. This ensures that appropriate config id dimension is used when reporting metrics.

func (*Table) Get Uses

func (t *Table) Get(handlerName string) (Entry, bool)

Get returns the entry for a Handler with the given name, if it exists.

Package handler imports 23 packages (graph) and is imported by 6 packages. Updated 2019-06-12. Refresh now. Tools for package owners.