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
118404c77f
commit
ebe4c60446
@ -4,6 +4,7 @@ import (
|
|||||||
"net/http"
|
"net/http"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
//ImportAccount TODO import account into node
|
||||||
func ImportAccount(w http.ResponseWriter, r *http.Request) {
|
func ImportAccount(w http.ResponseWriter, r *http.Request) {
|
||||||
w.Header().Set("Content-Type", "application/json; charset=UTF-8")
|
w.Header().Set("Content-Type", "application/json; charset=UTF-8")
|
||||||
w.WriteHeader(http.StatusOK)
|
w.WriteHeader(http.StatusOK)
|
||||||
|
@ -4,6 +4,7 @@ import (
|
|||||||
"net/http"
|
"net/http"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
//Authorize confirm account authorization with signed data message
|
||||||
func Authorize(w http.ResponseWriter, r *http.Request) {
|
func Authorize(w http.ResponseWriter, r *http.Request) {
|
||||||
|
|
||||||
account, code, res := BearerAppToken(r, true)
|
account, code, res := BearerAppToken(r, true)
|
||||||
|
@ -8,6 +8,7 @@ import (
|
|||||||
"net/http"
|
"net/http"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
//ClearArticleGroup remove sharing group from article
|
||||||
func ClearArticleGroup(w http.ResponseWriter, r *http.Request) {
|
func ClearArticleGroup(w http.ResponseWriter, r *http.Request) {
|
||||||
|
|
||||||
account, code, err := ParamAgentToken(r, false)
|
account, code, err := ParamAgentToken(r, false)
|
||||||
|
@ -8,6 +8,7 @@ import (
|
|||||||
"net/http"
|
"net/http"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
//ClearCardGroup removes card from sharing group
|
||||||
func ClearCardGroup(w http.ResponseWriter, r *http.Request) {
|
func ClearCardGroup(w http.ResponseWriter, r *http.Request) {
|
||||||
|
|
||||||
account, code, err := BearerAppToken(r, false)
|
account, code, err := BearerAppToken(r, false)
|
||||||
|
@ -8,6 +8,7 @@ import (
|
|||||||
"net/http"
|
"net/http"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
//ClearCardNotes clear notes assigned to card
|
||||||
func ClearCardNotes(w http.ResponseWriter, r *http.Request) {
|
func ClearCardNotes(w http.ResponseWriter, r *http.Request) {
|
||||||
|
|
||||||
account, code, err := BearerAppToken(r, false)
|
account, code, err := BearerAppToken(r, false)
|
||||||
|
@ -8,6 +8,7 @@ import (
|
|||||||
"net/http"
|
"net/http"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
//ClearChannelCard removes card from channel membership
|
||||||
func ClearChannelCard(w http.ResponseWriter, r *http.Request) {
|
func ClearChannelCard(w http.ResponseWriter, r *http.Request) {
|
||||||
|
|
||||||
account, code, err := ParamAgentToken(r, false)
|
account, code, err := ParamAgentToken(r, false)
|
||||||
|
@ -8,6 +8,7 @@ import (
|
|||||||
"net/http"
|
"net/http"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
//ClearChannelGroup removes sharing group from channel
|
||||||
func ClearChannelGroup(w http.ResponseWriter, r *http.Request) {
|
func ClearChannelGroup(w http.ResponseWriter, r *http.Request) {
|
||||||
|
|
||||||
account, code, err := BearerAppToken(r, false)
|
account, code, err := BearerAppToken(r, false)
|
||||||
|
@ -5,6 +5,7 @@ import (
|
|||||||
"net/http"
|
"net/http"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
//GetAccountAvailable return number of accounts available for public creation
|
||||||
func GetAccountAvailable(w http.ResponseWriter, r *http.Request) {
|
func GetAccountAvailable(w http.ResponseWriter, r *http.Request) {
|
||||||
|
|
||||||
available, err := getAvailableAccounts()
|
available, err := getAvailableAccounts()
|
||||||
|
@ -5,6 +5,7 @@ import (
|
|||||||
"net/http"
|
"net/http"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
//GetAccountListing retrieves profile list of publicly accessible accounts
|
||||||
func GetAccountListing(w http.ResponseWriter, r *http.Request) {
|
func GetAccountListing(w http.ResponseWriter, r *http.Request) {
|
||||||
|
|
||||||
var accounts []store.Account
|
var accounts []store.Account
|
||||||
|
@ -11,6 +11,7 @@ import (
|
|||||||
"time"
|
"time"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
//GetAccountListingImage retrieve profile image of publicly accessible account
|
||||||
func GetAccountListingImage(w http.ResponseWriter, r *http.Request) {
|
func GetAccountListingImage(w http.ResponseWriter, r *http.Request) {
|
||||||
|
|
||||||
// get referenced account guid
|
// get referenced account guid
|
||||||
|
Loading…
Reference in New Issue
Block a user