proxy

package
v0.0.18 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2024 License: Apache-2.0 Imports: 18 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Dynamic added in v0.0.11

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

func NewDynamic added in v0.0.11

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

func (*Dynamic) ForAddress added in v0.0.11

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

type DynamicCluster added in v0.0.11

type DynamicCluster struct {
	DisableWrites bool
	RedirectTo    string
}

type DynamicClusters added in v0.0.11

type DynamicClusters struct {
	Clusters map[string]DynamicCluster
}

type MongoLookup added in v0.0.11

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