From b255c3d0fc342bb38ef0f3a8a3258477ed45943b Mon Sep 17 00:00:00 2001 From: Roland Osborne Date: Sun, 24 Jul 2022 21:43:58 -0700 Subject: [PATCH] comments for golint --- net/server/internal/api_account.go | 5 +++++ net/server/internal/api_addAccount.go | 1 + net/server/internal/api_addAccountApp.go | 1 + net/server/internal/api_addAccountAuthentication.go | 1 + 4 files changed, 8 insertions(+) diff --git a/net/server/internal/api_account.go b/net/server/internal/api_account.go index 120c0bdf..e87a9bb0 100644 --- a/net/server/internal/api_account.go +++ b/net/server/internal/api_account.go @@ -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) diff --git a/net/server/internal/api_addAccount.go b/net/server/internal/api_addAccount.go index 10711ad6..8aac127c 100644 --- a/net/server/internal/api_addAccount.go +++ b/net/server/internal/api_addAccount.go @@ -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 diff --git a/net/server/internal/api_addAccountApp.go b/net/server/internal/api_addAccountApp.go index 5346f599..55597dd0 100644 --- a/net/server/internal/api_addAccountApp.go +++ b/net/server/internal/api_addAccountApp.go @@ -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) diff --git a/net/server/internal/api_addAccountAuthentication.go b/net/server/internal/api_addAccountAuthentication.go index d1f1ac8c..5587a6e0 100644 --- a/net/server/internal/api_addAccountAuthentication.go +++ b/net/server/internal/api_addAccountAuthentication.go @@ -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)