server

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2020 License: MIT Imports: 16 Imported by: 0

Documentation

Index

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 Disconnect

func Disconnect()

Disconnect disconnecs the client 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.

func SetSave

func SetSave(w http.ResponseWriter, r *http.Request)

SetSave is the handler that sets the requested saving throw of a player in the database.

func SetSkill

func SetSkill(w http.ResponseWriter, r *http.Request)

SetSkill is the handler that sets the requested skill of a player to the provided value.

Types

This section is empty.

Jump to

Keyboard shortcuts

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