comments for golint

This commit is contained in:
Roland Osborne 2022-07-24 21:43:58 -07:00
parent ccfa6d6c3b
commit b255c3d0fc
4 changed files with 8 additions and 0 deletions

View File

@ -4,26 +4,31 @@ import (
"net/http"
)
//GetAccountApps TODO list apps attached to account
func GetAccountApps(w http.ResponseWriter, r *http.Request) {
w.Header().Set("Content-Type", "application/json; charset=UTF-8")
w.WriteHeader(http.StatusOK)
}
//GetAccountAsset TODO list assets hosted by account
func GetAccountAsset(w http.ResponseWriter, r *http.Request) {
w.Header().Set("Content-Type", "application/json; charset=UTF-8")
w.WriteHeader(http.StatusOK)
}
//RemoveAccount TODO remove app attached to account
func RemoveAccountApp(w http.ResponseWriter, r *http.Request) {
w.Header().Set("Content-Type", "application/json; charset=UTF-8")
w.WriteHeader(http.StatusOK)
}
//SetAccountExport TODO export account
func SetAccountExport(w http.ResponseWriter, r *http.Request) {
w.Header().Set("Content-Type", "application/json; charset=UTF-8")
w.WriteHeader(http.StatusOK)
}
//SetAccountNode TODO set forwarding
func SetAccountNode(w http.ResponseWriter, r *http.Request) {
w.Header().Set("Content-Type", "application/json; charset=UTF-8")
w.WriteHeader(http.StatusOK)

View File

@ -11,6 +11,7 @@ import (
"strings"
)
//AddAccount if available, create account with specified username and password
func AddAccount(w http.ResponseWriter, r *http.Request) {
var token *store.AccountToken
var res error

View File

@ -8,6 +8,7 @@ import (
"net/http"
)
//AddAccountApp with access token, attach an app to an account generating agent token
func AddAccountApp(w http.ResponseWriter, r *http.Request) {
account, res := AccountLogin(r)

View File

@ -8,6 +8,7 @@ import (
"time"
)
//AddAccountAuthentication create an access token to reset account access
func AddAccountAuthentication(w http.ResponseWriter, r *http.Request) {
account, err := AccountLogin(r)