mirror of
https://github.com/balzack/databag.git
synced 2025-02-12 03:29:16 +00:00
more golint cleanup
This commit is contained in:
parent
ebe4c60446
commit
c637bf635f
@ -8,6 +8,7 @@ import (
|
||||
"net/http"
|
||||
)
|
||||
|
||||
//GetAccountListingMessage retrieves signed profile message of publicly listed account
|
||||
func GetAccountListingMessage(w http.ResponseWriter, r *http.Request) {
|
||||
|
||||
// get referenced account guid
|
||||
|
@ -5,6 +5,7 @@ import (
|
||||
"net/http"
|
||||
)
|
||||
|
||||
//GetAccountStatus retrieves account state values
|
||||
func GetAccountStatus(w http.ResponseWriter, r *http.Request) {
|
||||
|
||||
account, code, err := ParamAgentToken(r, true)
|
||||
|
@ -4,6 +4,7 @@ import (
|
||||
"net/http"
|
||||
)
|
||||
|
||||
//GetAccountToken retrieve type of account token
|
||||
func GetAccountToken(w http.ResponseWriter, r *http.Request) {
|
||||
|
||||
accountToken, err := BearerAccountToken(r)
|
||||
|
@ -11,6 +11,7 @@ type accountUsername struct {
|
||||
Username string
|
||||
}
|
||||
|
||||
//GetAccountUsername determines if username is assignable
|
||||
func GetAccountUsername(w http.ResponseWriter, r *http.Request) {
|
||||
|
||||
if r.FormValue("token") != "" {
|
||||
|
@ -13,6 +13,7 @@ import (
|
||||
"time"
|
||||
)
|
||||
|
||||
//GetArticleSubjectField retrieve base64 decoded value of an aritcle subject field
|
||||
func GetArticleSubjectField(w http.ResponseWriter, r *http.Request) {
|
||||
|
||||
// scan parameters
|
||||
|
@ -9,6 +9,7 @@ import (
|
||||
"strings"
|
||||
)
|
||||
|
||||
//GetArticles retrieve articles for account holder or those shared with contact
|
||||
func GetArticles(w http.ResponseWriter, r *http.Request) {
|
||||
var articleRevisionSet bool
|
||||
var articleRevision int64
|
||||
|
@ -8,6 +8,7 @@ import (
|
||||
"net/http"
|
||||
)
|
||||
|
||||
//GetCard retrieves contacts set by account
|
||||
func GetCard(w http.ResponseWriter, r *http.Request) {
|
||||
|
||||
account, code, err := BearerAppToken(r, false)
|
||||
|
@ -6,6 +6,7 @@ import (
|
||||
"strconv"
|
||||
)
|
||||
|
||||
//GetGroups retrieves list of groups in account
|
||||
func GetGroups(w http.ResponseWriter, r *http.Request) {
|
||||
var groupRevisionSet bool
|
||||
var groupRevision int64
|
||||
|
Loading…
Reference in New Issue
Block a user