gocdb

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2020 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func QueryGOCDB

func QueryGOCDB(address string, method string, isPrivate bool, scope string, params network.URLParams) ([]byte, error)

QueryGOCDB retrieves data from one of GOCDB's endpoints.

Types

type Extension

type Extension struct {
	Key   string `xml:"KEY"`
	Value string `xml:"VALUE"`
}

Extension represents Key-Value pairs in GOCDB.

type Extensions

type Extensions struct {
	Extensions []*Extension `xml:"EXTENSION"`
}

Extensions is a list of Extension objects.

type Service

type Service struct {
	Host        string           `xml:"HOSTNAME"`
	Type        string           `xml:"SERVICE_TYPE"`
	IsMonitored string           `xml:"NODE_MONITORED"`
	URL         string           `xml:"URL"`
	Endpoints   ServiceEndpoints `xml:"ENDPOINTS"`
	Extensions  Extensions       `xml:"EXTENSIONS"`
}

Service represents a service in GOCDB.

type ServiceEndpoint

type ServiceEndpoint struct {
	Name        string     `xml:"NAME"`
	URL         string     `xml:"URL"`
	Type        string     `xml:"INTERFACENAME"`
	IsMonitored string     `xml:"ENDPOINT_MONITORED"`
	Extensions  Extensions `xml:"EXTENSIONS"`
}

ServiceEndpoint represents an additional service endpoint of a service in GOCDB.

type ServiceEndpoints

type ServiceEndpoints struct {
	Endpoints []*ServiceEndpoint `xml:"ENDPOINT"`
}

ServiceEndpoints is a list of ServiceEndpoint objects.

type ServiceType

type ServiceType struct {
	Name        string `xml:"SERVICE_TYPE_NAME"`
	Description string `xml:"SERVICE_TYPE_DESC"`
}

ServiceType represents a service type in GOCDB.

type ServiceTypes

type ServiceTypes struct {
	Types []*ServiceType `xml:"SERVICE_TYPE"`
}

ServiceTypes is a list of ServiceType objects.

type Services

type Services struct {
	Services []*Service `xml:"SERVICE_ENDPOINT"`
}

Services is a list of Service objects.

type Site

type Site struct {
	ShortName    string     `xml:"SHORT_NAME"`
	OfficialName string     `xml:"OFFICIAL_NAME"`
	Description  string     `xml:"SITE_DESCRIPTION"`
	Homepage     string     `xml:"HOME_URL"`
	Email        string     `xml:"CONTACT_EMAIL"`
	Domain       string     `xml:"DOMAIN>DOMAIN_NAME"`
	Country      string     `xml:"COUNTRY"`
	CountryCode  string     `xml:"COUNTRY_CODE"`
	Latitude     float32    `xml:"LATITUDE"`
	Longitude    float32    `xml:"LONGITUDE"`
	Extensions   Extensions `xml:"EXTENSIONS"`
}

Site represents a site in GOCDB.

type Sites

type Sites struct {
	Sites []*Site `xml:"SITE"`
}

Sites is a list of Site objects.

Jump to

Keyboard shortcuts

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