models

package
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2024 License: MPL-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccessFacetDistribution

type AccessFacetDistribution struct {
	Bandwidth map[string]int `json:"bandwidth"`
	Location  map[string]int `json:"location"`
	Provider  map[string]int `json:"provider"`
	Type      map[string]int `json:"type"`
}

type AccessProduct

type AccessProduct struct {
	Product
	Type string `json:"type"`
}

type AccessProducts

type AccessProducts struct {
	Hits              []AccessProduct         `json:"hits"`
	FacetDistribution AccessFacetDistribution `json:"facetDistribution"`
}

type AccessType

type AccessType string
const (
	PHYSICAL AccessType = "PHYSICAL"
	VIRTUAL  AccessType = "VIRTUAL"
)

func (AccessType) String

func (at AccessType) String() string

type Clients added in v1.1.0

type Clients struct {
	CatalogClient  *meilisearch.Client
	AutonomiClient *autonomisdk.Client
}

type CloudFacetDistribution

type CloudFacetDistribution struct {
	Bandwidth map[string]int `json:"bandwidth"`
	CSPCity   map[string]int `json:"cspCity"`
	CSPName   map[string]int `json:"cspName"`
	CSPRegion map[string]int `json:"cspRegion"`
	Location  map[string]int `json:"location"`
	Provider  map[string]int `json:"provider"`
}

type CloudProduct

type CloudProduct struct {
	Product
	CSPName string `json:"cspName"`
}

type CloudProducts

type CloudProducts struct {
	Hits              []CloudProduct         `json:"hits"`
	FacetDistribution CloudFacetDistribution `json:"facetDistribution"`
}

type PhysicalPortProduct added in v1.4.0

type PhysicalPortProduct Product

type PhysicalPortProductFacetDistribution added in v1.4.0

type PhysicalPortProductFacetDistribution struct {
	Bandwidth map[string]int `json:"bandwidth"`
	Location  map[string]int `json:"location"`
	Provider  map[string]int `json:"provider"`
	Duration  map[string]int `json:"duration"`
}

type PhysicalPortProducts added in v1.4.0

type PhysicalPortProducts struct {
	Hits              []PhysicalPortProduct                `json:"hits"`
	FacetDistribution PhysicalPortProductFacetDistribution `json:"facetDistribution"`
}

type Product

type Product struct {
	ID               int    `json:"id"`
	Provider         string `json:"provider"`
	Duration         int    `json:"duration"`
	Location         string `json:"location"`
	LocationUnderlay string `json:"locationUnderlay"`
	Bandwidth        int    `json:"bandwidth"`
	Date             string `json:"date"`
	PriceNRC         int    `json:"priceNrc"`
	PriceMRC         int    `json:"priceMrc"`
	CostNRC          int    `json:"costNrc"`
	CostMRC          int    `json:"costMrc"`
	SKU              string `json:"sku"`
}

type ProviderType

type ProviderType string
const (
	INTERCLOUD ProviderType = "InterCloud"
	EQUINIX    ProviderType = "EQUINIX"
	MEGAPORT   ProviderType = "MEGAPORT"
)

func (ProviderType) String

func (pt ProviderType) String() string

type TransportFacetDistribution

type TransportFacetDistribution struct {
	Bandwidth  map[string]int `json:"bandwidth"`
	Location   map[string]int `json:"location"`
	LocationTo map[string]int `json:"locationTo"`
	Provider   map[string]int `json:"provider"`
}

type TransportProduct

type TransportProduct struct {
	Product
	LocationTo         string `json:"locationTo"`
	LocationToUnderlay string `json:"locationToUnderlay"`
}

type TransportProducts

type TransportProducts struct {
	Hits              []TransportProduct         `json:"hits"`
	FacetDistribution TransportFacetDistribution `json:"facetDistribution"`
}

Jump to

Keyboard shortcuts

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