Help us shape the future of Go! Take the 2026 Go Developer Survey

trafficsplitter

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Destination

type Destination struct {
	Weight int64
	To     string
}

type Options

type Options struct {
	Key          string
	Destinations []*Destination
}

type TrafficSplitterMiddleware

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

func NewMiddleware

func NewMiddleware(options *Options) *TrafficSplitterMiddleware

func (*TrafficSplitterMiddleware) ServeHTTP

Jump to

Keyboard shortcuts

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