Redoing program to center around JSONRPC instead of a more REST-like API

This commit is contained in:
Ben 2025-07-28 08:10:06 -07:00
parent ed4bbeb608
commit be8936a665
Signed by: webmaster
GPG key ID: A5FCBAF34E6E8B50
15 changed files with 209 additions and 170 deletions

View file

@ -22,12 +22,12 @@ func Parse() {
/* module-specific variable to avoid re-parsing flags */
var flagsParsed bool = false;
/* what JSON file to read config values from */
var confLocation = flag.String("conf", "./config.txt", "Config file to read from")
/* what file to read the configuration */
var authJson = flag.String("auth", "./auth.json", "Authorization file to read from")
/* @return set boolean will be true if argument is not nil */
func GetConfLocation() (location string, set bool) {
if confLocation == nil {return "", false}
return *confLocation, true;
func GetAuthJson() (location string, set bool) {
if authJson == nil {return "", false}
return *authJson, true;
}
/* TCP port to bind to */