package
Version:
v0.0.0-...-4836346
Opens a new window with list of versions in this module.
Published: Jun 17, 2018
License: BSD-3-Clause
Opens a new window with license information.
Imports: 6
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
FetchRandomWorld method returns one world record info.
GetRandomWorlds method returns world record from db randomly.
UpdateRandomWorlds method updates random world records.
type Fortune struct {
ID uint16 `json:"id"`
Message string `json:"message"`
}
Fortune is used for database and reply.
Fortunes slice
GetFortunes method returns fortunes records
type Message struct {
Message string `json:"message"`
}
Message is used for JSON reply.
type World struct {
ID uint16 `json:"id"`
RandomNumber uint16 `json:"randomNumber"`
}
World is used for database operation.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.