Skip to main content
The Go SDK and docs are currently in beta. Report issues on GitHub.
The sorting strategy to use for this request, if “order” is not specified. When set, no load balancing is performed.

Supported Types

ProviderSort

sort := components.CreateSortProviderSort(components.ProviderSort{/* values here */})

ProviderSortConfig

sort := components.CreateSortProviderSortConfig(components.ProviderSortConfig{/* values here */})

sort := components.CreateSortAny(any{/* values here */})

Union Discrimination

Use the Type field to determine which variant is active, then access the corresponding field:
switch sort.Type {
	case components.SortTypeProviderSort:
		// sort.ProviderSort is populated
	case components.SortTypeProviderSortConfig:
		// sort.ProviderSortConfig is populated
	case components.SortTypeAny:
		// sort.Any is populated
}