INNER CODE UNIT · Go

pluginNames

apache/apisix-ingress-controller · api/adc/types.go:421

func pluginNames(p map[string]any) []string {
	names := make([]string, 0, len(p))
	for name := range p {
		names = append(names, name)
	}
	sort.Strings(names)
	return names
}

// UpstreamNode is the node in upstream
type UpstreamNode struct {
	Host     string `json:"host" yaml:"host"`
	Port     int    `json:"port" yaml:"port"`
	Weight   int    `json:"weight" yaml:"weight"`
	Priority int    `json:"priority,omitempty" yaml:"priority,omitempty"`
}

// UpstreamNodes is the upstream node list.

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…