Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DeleteResponse ¶
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 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
Click to show internal directories.
Click to hide internal directories.