Documentation
¶
Index ¶
Constants ¶
View Source
const ( // DatabaseStatusOffline indicates that the database cannot be reached. DatabaseStatusOffline = "OFFLINE" // DatabaseStatusOnline indicates that the database can be reached. DatabaseStatusOnline = "ONLINE" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type APIServer ¶
type APIServer struct {
// contains filtered or unexported fields
}
APIServer serves APIs such as the Payments API.
func NewAPIServer ¶
NewAPIServer returns a new instance of the API server that uses the specified database for storage.
type APIServerRootResponse ¶
type APIServerRootResponse struct { // DatabaseStatus is the current status of the database. DatabaseStatus string `json:"database_status"` // Timestamp is the current timestamp. Timestamp time.Time `json:"time"` }
APIServerRootResponse represents a response returned by the root handler.
Click to show internal directories.
Click to hide internal directories.