Document how to build the Windows GUI version (headless). Document API functions implemented in Cmd.

This commit is contained in:
Kleissner
2021-11-15 15:50:40 +01:00
parent 6e27e7c003
commit f34a855f32
2 changed files with 58 additions and 2 deletions

4
API.go
View File

@@ -60,10 +60,10 @@ func parseDuration(input string) (result time.Duration) {
}
/*
apiConsole provides a websocket to send/receive internal commands
apiConsole provides a websocket to send/receive internal commands.
Request: GET /console
Result: 200 with JSON structure apiResponsePeerSelf
Result: Upgrade to websocket. The websocket message are texts to read/write.
*/
func apiConsole(w http.ResponseWriter, r *http.Request) {
c, err := webapi.WSUpgrader.Upgrade(w, r, nil)