aggregator

package
v0.29.1 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2024 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewAggregator

func NewAggregator(config *Config) (*minkserver.Server, error)

NewAggregator creates a new aggregator (returned mink server w/ agggregation functionality) for the given config

Types

type Config

type Config struct {
	minkserver.Config
	Delegates []*Delegate
}

Config holds mink server config as well as the list of delegates which this aggregator shall "consume".

type Delegate

type Delegate struct {
	Config *rest.Config
}

Delegate represents a "downstream" api server.

func (*Delegate) URL

func (d *Delegate) URL() *url.URL

URL returns a url.URL from the Delegate's rest config

Jump to

Keyboard shortcuts

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