model

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2023 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ReserveRequest

type ReserveRequest struct{}

ReserveRequest defines the model for the request to reserve a server.

type ReserveResponse

type ReserveResponse struct {
	// BuildConfigurationID is the build configuration this server is using
	BuildConfigurationID int64 `json:"buildConfigurationId"`
	// Creates is the time at which the reservation was made
	Created time.Time `json:"created"`
	// Fulfilled is the time at which the reservation was fulfilled
	Fulfilled time.Time `json:"fulfilled"`
	// GamePort is the port of the server on the requested machine
	GamePort int64 `json:"gamePort"`
	// Ipv4 address of the machine the server is running on
	Ipv4 *string `json:"ipv4,omitempty"`
	// Ipv6 address of the machine the server is running on
	Ipv6 *string `json:"ipv6,omitempty"`
	// Requested is the time at which the reservation was requested
	Requested time.Time `json:"requested"`
	// ReservationID is the UUID of the reservation generated by the service
	ReservationID string `json:"reservationId"`
}

ReserveResponse defines the model for a successful response to a reservation request.

Jump to

Keyboard shortcuts

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