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