cluster

package
v1.6.2 Latest Latest
Warning

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

Go to latest
Published: May 6, 2022 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(name string, targets []*Target, opts ...Option) *cluster.Cluster

Types

type Option

type Option func(*option)

func WithGRPCHealthCheck

func WithGRPCHealthCheck(serviceName string) Option

func WithHTTP1

func WithHTTP1() Option

func WithHTTP2

func WithHTTP2() Option

func WithHTTPHealthCheck

func WithHTTPHealthCheck(path string, headers map[string]string, expectedServiceName string) Option

func WithTCPHealthCheck

func WithTCPHealthCheck() Option

type Target

type Target struct {
	Host   string
	Port   uint32
	TLS    bool
	Weight uint32
}

Jump to

Keyboard shortcuts

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