v0

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2024 License: Apache-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 DeleteResponse

type DeleteResponse struct {
	Error *v2.Error `json:",omitempty"`
}

DeleteResponse is returned by a delete request.

type Lookup

type Lookup struct {
	IATA string
}

Lookup is returned for a successful lookup request.

type LookupResponse

type LookupResponse struct {
	Error  *v2.Error `json:",omitempty"`
	Lookup *Lookup   `json:",omitempty"`
}

LookupResponse is returned by a lookup request.

type Network

type Network struct {
	IPv4 string
	IPv6 string
}

Network contains IPv4 and IPv6 addresses.

type RegisterResponse

type RegisterResponse struct {
	Error        *v2.Error     `json:",omitempty"`
	Registration *Registration `json:",omitempty"`
}

RegisterResponse is returned by a register request.

type Registration

type Registration struct {
	// Hostname is the dynamic DNS name. Hostname should be available immediately.
	Hostname string

	// Annotation is the metadata used by the uuid-annotator for all server annotations.
	Annotation *ServerAnnotation `json:",omitempty"`
	// Heartbeat is the registration message used by the heartbeat service to register with the Locate API.
	Heartbeat *v2.Registration `json:",omitempty"`
}

Registration is returned for a successful registration request.

type ServerAnnotation

type ServerAnnotation struct {
	Annotation annotator.ServerAnnotations
	Network    Network
	Type       string
}

ServerAnnotation is used by the uuid-annotator. From: https://github.com/m-lab/uuid-annotator/blob/main/siteannotator/server.go#L83-L90

Jump to

Keyboard shortcuts

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