ingress

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2023 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewIngress

func NewIngress(opts ...Option) ingress_pkg.Ingress

NewIngress creates and initializes a new Ingress.

func NewPluginIngress

func NewPluginIngress(opts ...Option) ingress_pkg.Ingress

NewPluginIngress creates a plugin ingress.

Types

type Option

type Option func(opts *options)

func FileLoaderOption

func FileLoaderOption(fileLoader loader.Loader) Option

func HTTPLoaderOption

func HTTPLoaderOption(httpLoader loader.Loader) Option

func LoggerOption

func LoggerOption(logger logger.Logger) Option

func PluginConnOption

func PluginConnOption(c *grpc.ClientConn) Option

func RedisLoaderOption

func RedisLoaderOption(redisLoader loader.Loader) Option

func ReloadPeriodOption

func ReloadPeriodOption(period time.Duration) Option

func RulesOption

func RulesOption(rules []Rule) Option

type Rule

type Rule struct {
	Hostname string
	Endpoint string
}

Jump to

Keyboard shortcuts

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