pilot

package
v2.3.5 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2020 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Pilot

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

Pilot connector with Pilot.

func New

func New(token string, metricsRegistry *metrics.PilotRegistry, pool *safe.Pool) *Pilot

New creates a new Pilot.

func (*Pilot) SetRuntimeConfiguration

func (p *Pilot) SetRuntimeConfiguration(rtConf *runtime.Configuration)

SetRuntimeConfiguration stores the runtime configuration.

func (*Pilot) Tick

func (p *Pilot) Tick(ctx context.Context)

Tick sends data periodically.

type RunTimeRepresentation

type RunTimeRepresentation struct {
	Routers     map[string]*runtime.RouterInfo        `json:"routers,omitempty"`
	Middlewares map[string]*runtime.MiddlewareInfo    `json:"middlewares,omitempty"`
	Services    map[string]*serviceInfoRepresentation `json:"services,omitempty"`
	TCPRouters  map[string]*runtime.TCPRouterInfo     `json:"tcpRouters,omitempty"`
	TCPServices map[string]*runtime.TCPServiceInfo    `json:"tcpServices,omitempty"`
	UDPRouters  map[string]*runtime.UDPRouterInfo     `json:"udpRouters,omitempty"`
	UDPServices map[string]*runtime.UDPServiceInfo    `json:"udpServices,omitempty"`
}

RunTimeRepresentation is the configuration information exposed by the API handler.

Jump to

Keyboard shortcuts

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