twemproxyconfig

package
v0.20.2 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2023 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

View Source
const (
	HealthPoolName    string = "health"
	HealthBindAddress string = "127.0.0.1:22333"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Generator

type Generator struct {
	generators.BaseOptionsV2
	Spec saasv1alpha1.TwemproxyConfigSpec
	// contains filtered or unexported fields
}

Generator configures the generators for Sentinel

func NewGenerator

func NewGenerator(ctx context.Context, instance *saasv1alpha1.TwemproxyConfig, cl client.Client,
	pool *server.ServerPool, log logr.Logger) (Generator, error)

NewGenerator returns a new Options struct

func (*Generator) ConfigMap

func (gen *Generator) ConfigMap() basereconciler.Resource

Returns the twemproxy config ConfigMap

func (*Generator) GetTargets added in v0.20.0

func (gen *Generator) GetTargets(poolName string) map[string]twemproxy.Server

func (*Generator) GrafanaDashboard added in v0.15.0

Jump to

Keyboard shortcuts

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