proxy

package
v0.0.13 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2021 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Dynamic

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

func NewDynamic

func NewDynamic(url string, log *zap.Logger) (*Dynamic, error)

func (*Dynamic) ForAddress

func (d *Dynamic) ForAddress(address string) DynamicCluster

type DynamicCluster

type DynamicCluster struct {
	DisableWrites bool
	RedirectTo    string
}

type DynamicClusters

type DynamicClusters struct {
	Clusters map[string]DynamicCluster
}

type MongoLookup

type MongoLookup func(address string) *mongo.Mongo

type Proxy

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

func NewProxy

func NewProxy(log *zap.Logger, sd *statsd.Client, label, network, address string, unlink bool, mongoLookup MongoLookup, dynamic *Dynamic) (*Proxy, error)

func (*Proxy) Kill

func (p *Proxy) Kill()

func (*Proxy) Run

func (p *Proxy) Run() error

func (*Proxy) Shutdown

func (p *Proxy) Shutdown()

Jump to

Keyboard shortcuts

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