Documentation ¶
Index ¶
- func AddPlayer(w http.ResponseWriter, r *http.Request)
- func Connect(db string)
- func DRollN(w http.ResponseWriter, r *http.Request)
- func DeletePlayer(w http.ResponseWriter, r *http.Request)
- func Disconnect()
- func GetAbilities(w http.ResponseWriter, r *http.Request)
- func GetPlayer(w http.ResponseWriter, r *http.Request)
- func GetSaves(w http.ResponseWriter, r *http.Request)
- func GetSkills(w http.ResponseWriter, r *http.Request)
- func Roll(w http.ResponseWriter, r *http.Request)
- func RollN(w http.ResponseWriter, r *http.Request)
- func SetAbility(w http.ResponseWriter, r *http.Request)
- func SetArmorClass(w http.ResponseWriter, r *http.Request)
- func SetHitPoints(w http.ResponseWriter, r *http.Request)
- func SetLevel(w http.ResponseWriter, r *http.Request)
- func SetSave(w http.ResponseWriter, r *http.Request)
- func SetSkill(w http.ResponseWriter, r *http.Request)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddPlayer ¶
func AddPlayer(w http.ResponseWriter, r *http.Request)
AddPlayer is the handler that creates new players in the database.
func Connect ¶
func Connect(db string)
Connect initializes the interface and connects an application to the provided database.
func DRollN ¶
func DRollN(w http.ResponseWriter, r *http.Request)
DRollN is the handlre for all the requested rolls of n d dice, where n is specified with a variable.
func DeletePlayer ¶
func DeletePlayer(w http.ResponseWriter, r *http.Request)
DeletePlayer is the handler that deletes the specified player document from the database.
func GetAbilities ¶
func GetAbilities(w http.ResponseWriter, r *http.Request)
GetAbilities is the handler that returns the abilities information of a player in the database.
func GetPlayer ¶
func GetPlayer(w http.ResponseWriter, r *http.Request)
GetPlayer is the handler that returns the information about a player in the database.
func GetSaves ¶
func GetSaves(w http.ResponseWriter, r *http.Request)
GetSaves is the handler that returns the saving throws information of a player in the database.
func GetSkills ¶
func GetSkills(w http.ResponseWriter, r *http.Request)
GetSkills is the handler that returns the skills information of a player in the database.
func Roll ¶
func Roll(w http.ResponseWriter, r *http.Request)
Roll is the handler for all the requested rolls of one die.
func RollN ¶
func RollN(w http.ResponseWriter, r *http.Request)
RollN is the handler for all the requested rolls of n d dice, where n is specified with a query.
func SetAbility ¶
func SetAbility(w http.ResponseWriter, r *http.Request)
SetAbility is the handler that sets the requested ability of a player to the provided value.
func SetArmorClass ¶
func SetArmorClass(w http.ResponseWriter, r *http.Request)
SetArmorClass is the handler that sets the armor class of the requested creature to the provided value.
func SetHitPoints ¶
func SetHitPoints(w http.ResponseWriter, r *http.Request)
SetHitPoints is the handler that sets the hitpoints of the requested creature to the provided value.
func SetLevel ¶
func SetLevel(w http.ResponseWriter, r *http.Request)
SetLevel is the handler that sets the hitpoints of the requested creature to the provided value.
Types ¶
This section is empty.