config

package
v0.0.0-...-b5b7d89 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2024 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MakeReplaceOrAppendEndpointFn

func MakeReplaceOrAppendEndpointFn(origin []*configv1.Endpoint) func([]*configv1.Endpoint, *configv1.Endpoint) []*configv1.Endpoint

Types

type ConfigLoader

type ConfigLoader interface {
	Load(context.Context) (*configv1.Gateway, error)
	Watch(OnChange)
	Close()
}

type FileLoader

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

func NewFileLoader

func NewFileLoader(confPath string, priorityDirectory string) (*FileLoader, error)

func (*FileLoader) Close

func (f *FileLoader) Close()

func (*FileLoader) DebugHandler

func (f *FileLoader) DebugHandler() http.Handler

func (*FileLoader) Load

func (*FileLoader) Watch

func (f *FileLoader) Watch(fn OnChange)

type InspectFileLoader

type InspectFileLoader struct {
	ConfPath           string            `json:"confPath"`
	ConfSHA256         string            `json:"confSha256"`
	PriorityConfigHash map[string]string `json:"priorityConfigHash"`
	OnChangeHandlers   int64             `json:"onChangeHandlers"`
}

type OnChange

type OnChange func() error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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