ctrlloader

package
v0.0.0-...-1331810 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2024 License: MIT Imports: 19 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CtrlConfigLoader

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

func New

func New(name, rawCtrlService, dstPath, dstPriorityConfigDir string) *CtrlConfigLoader

func (*CtrlConfigLoader) DebugHandler

func (c *CtrlConfigLoader) DebugHandler() http.Handler

func (*CtrlConfigLoader) Load

func (c *CtrlConfigLoader) Load(ctx context.Context) (err error)

func (*CtrlConfigLoader) LoadFeatures

func (c *CtrlConfigLoader) LoadFeatures(ctx context.Context) error

func (*CtrlConfigLoader) Run

func (c *CtrlConfigLoader) Run(ctx context.Context)

type InspectCtrlConfigLoader

type InspectCtrlConfigLoader struct {
	CtrlService     []string `json:"ctrl_service"`
	CtrlServiceIdx  int      `json:"ctrl_service_idx"`
	NextCtrlService bool     `json:"next_ctrl_service"`
	DstPath         string   `json:"dst_path"`
	Hostname        string   `json:"hostname"`
	AdvertiseAddr   string   `json:"advertise_addr"`
}

type LoadFeatureResponse

type LoadFeatureResponse struct {
	Gateway  string          `json:"gateway"`
	Features map[string]bool `json:"features"`
}

type LoadResponse

type LoadResponse struct {
	Config          string                `json:"config"`
	Version         string                `json:"version"`
	PriorityConfigs []*PriorityConfigItem `json:"priorityConfigs"`
}

type PriorityConfigItem

type PriorityConfigItem struct {
	Key     string `json:"key"`
	Config  string `json:"config"`
	Version string `json:"version"`
}

Jump to

Keyboard shortcuts

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