api

package
v0.0.0-...-0ee96dc Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Domains = []string{
	"zwyr157wwiu6eior.com",
	"api.nordvpn.com",
	"os4work.com",
	"x9fnzrtl4x8pynsf.com",
	"p99nxpivfscyverz.me",
	"se3v5tjfff3aet.me",
	"njtzzrvg0lwj3bsn.info",
	"73dkt-vwrqs.xyz",
}

Functions

This section is empty.

Types

type AutoGenerated

type AutoGenerated []struct {
	ID          int    `json:"id"`
	CreatedAt   string `json:"created_at"`
	UpdatedAt   string `json:"updated_at"`
	Name        string `json:"name"`
	Station     string `json:"station"`
	Ipv6Station string `json:"ipv6_station"`
	Hostname    string `json:"hostname"`
	Load        int    `json:"load"`
	Status      string `json:"status"`
	Cpt         int    `json:"cpt"`
	Locations   []struct {
		ID        int     `json:"id"`
		CreatedAt string  `json:"created_at"`
		UpdatedAt string  `json:"updated_at"`
		Latitude  float64 `json:"latitude"`
		Longitude float64 `json:"longitude"`
		Country   struct {
			ID   int    `json:"id"`
			Name string `json:"name"`
			Code string `json:"code"`
			City struct {
				ID        int     `json:"id"`
				Name      string  `json:"name"`
				Latitude  float64 `json:"latitude"`
				Longitude float64 `json:"longitude"`
				DNSName   string  `json:"dns_name"`
				HubScore  int     `json:"hub_score"`
			} `json:"city"`
		} `json:"country"`
	} `json:"locations"`
	Services []struct {
		ID         int    `json:"id"`
		Name       string `json:"name"`
		Identifier string `json:"identifier"`
		CreatedAt  string `json:"created_at"`
		UpdatedAt  string `json:"updated_at"`
	} `json:"services"`
	Technologies []struct {
		ID         int                 `json:"id"`
		Name       string              `json:"name"`
		Identifier string              `json:"identifier"`
		CreatedAt  string              `json:"created_at"`
		UpdatedAt  string              `json:"updated_at"`
		Metadata   []map[string]string `json:"metadata"`
		Pivot      struct {
			TechnologyID int    `json:"technology_id"`
			ServerID     int    `json:"server_id"`
			Status       string `json:"status"`
		} `json:"pivot"`
	} `json:"technologies"`
	Groups []struct {
		ID         int    `json:"id"`
		CreatedAt  string `json:"created_at"`
		UpdatedAt  string `json:"updated_at"`
		Title      string `json:"title"`
		Identifier string `json:"identifier"`
		Type       struct {
			ID         int    `json:"id"`
			CreatedAt  string `json:"created_at"`
			UpdatedAt  string `json:"updated_at"`
			Title      string `json:"title"`
			Identifier string `json:"identifier"`
		} `json:"type"`
	} `json:"groups"`
	Specifications []struct {
		ID         int    `json:"id"`
		Title      string `json:"title"`
		Identifier string `json:"identifier"`
		Values     []struct {
			ID    int    `json:"id"`
			Value string `json:"value"`
		} `json:"values"`
	} `json:"specifications"`
	Ips []struct {
		ID        int    `json:"id"`
		CreatedAt string `json:"created_at"`
		UpdatedAt string `json:"updated_at"`
		ServerID  int    `json:"server_id"`
		IPID      int    `json:"ip_id"`
		Type      string `json:"type"`
		IP        struct {
			ID      int    `json:"id"`
			IP      string `json:"ip"`
			Version int    `json:"version"`
		} `json:"ip"`
	} `json:"ips"`
}

type City

type City struct {
	ID   int    `json:"id"`
	Name string `json:"name"`
}

type Country

type Country struct {
	City City   `json:"city"`
	Code string `json:"code"`
	ID   int    `json:"id"`
	Name string `json:"name"`
}

type Groups

type Groups struct {
	ID    int    `json:"id"`
	Title string `json:"title"`
	Type  Type   `json:"type"`
}

type Locations

type Locations struct {
	Country   Country `json:"country"`
	Latitude  float64 `json:"latitude"`
	Longitude float64 `json:"longitude"`
}

type Pivot

type Pivot struct {
	TechnologyID int    `json:"technology_id"`
	ServerID     int    `json:"server_id"`
	Status       string `json:"status"`
}

type Server

type Server struct {
	CreatedAt      string           `json:"created_at"`
	Groups         []Groups         `json:"groups"`
	Hostname       string           `json:"hostname"`
	ID             int              `json:"id"`
	Load           int              `json:"load"`
	Locations      []Locations      `json:"locations"`
	Name           string           `json:"name"`
	Specifications []Specifications `json:"specifications"`
	Station        string           `json:"station"`
	Status         string           `json:"status"`
	Technologies   []Technologies   `json:"technologies"`
}

func GetServersList

func GetServersList() []Server

type Specifications

type Specifications struct {
	Identifier string   `json:"identifier"`
	Values     []Values `json:"values"`
}

type Technologies

type Technologies struct {
	Identifier string        `json:"identifier"`
	Metadata   []interface{} `json:"metadata"`
	Pivot      Pivot         `json:"pivot"`
}

type Type

type Type struct {
	ID int `json:"id"`
}

type Values

type Values struct {
	Value string `json:"value"`
}

Jump to

Keyboard shortcuts

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