Documentation ¶
Index ¶
Constants ¶
View Source
const StatusDown = 0
View Source
const StautsUp = 1
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FilterOptions ¶
type FilterOptions struct { Tier OptionalIntField Status OptionalIntField Features OptionalIntField ExcludedCountries []string EntryCountry string ExitCountry string }
type LogicalServer ¶
type LogicalServerLocation ¶
type LogicalServers ¶
type LogicalServers []LogicalServer
func FilterServers ¶
func FilterServers(logicalServers LogicalServers, filterOptions *FilterOptions) LogicalServers
*
- Filters the servers based on various metrics
func (LogicalServers) FilterServers ¶
func (logicals LogicalServers) FilterServers(filterOptions FilterOptions) LogicalServers
func (LogicalServers) GetLogicalServerByDomain ¶
func (logicals LogicalServers) GetLogicalServerByDomain(domain string) *LogicalServer
func (LogicalServers) GetLogicalServerByName ¶
func (logicals LogicalServers) GetLogicalServerByName(name string) *LogicalServer
type LogicalsResponse ¶
type LogicalsResponse struct { Code int LogicalServers LogicalServers FetchedOffline bool `json:"-"` }
func GetLogicals ¶
func GetLogicals(fetchOffline bool) (*LogicalsResponse, error)
type OptionalIntField ¶
func CreateOptionalIntField ¶
func CreateOptionalIntField(val int) OptionalIntField
type ServerInfo ¶
Click to show internal directories.
Click to hide internal directories.