mirror of
https://github.com/balzack/databag.git
synced 2025-02-11 19:19:16 +00:00
more golint cleanup
This commit is contained in:
parent
6b1fac16ac
commit
9f134f9644
@ -8,6 +8,7 @@ import (
|
||||
"net/http"
|
||||
)
|
||||
|
||||
//GetChannelTopicAssets retries list of assets associated with topic
|
||||
func GetChannelTopicAssets(w http.ResponseWriter, r *http.Request) {
|
||||
|
||||
// scan parameters
|
||||
|
@ -8,6 +8,7 @@ import (
|
||||
"net/http"
|
||||
)
|
||||
|
||||
//GetChannelTopicDetail retrieves topic subject and attributes
|
||||
func GetChannelTopicDetail(w http.ResponseWriter, r *http.Request) {
|
||||
|
||||
// scan parameters
|
||||
|
@ -13,6 +13,7 @@ import (
|
||||
"time"
|
||||
)
|
||||
|
||||
//GetChannelTopicSubjectField base64 decodes and downloads a channel topic subject attribute
|
||||
func GetChannelTopicSubjectField(w http.ResponseWriter, r *http.Request) {
|
||||
|
||||
// scan parameters
|
||||
|
@ -13,6 +13,7 @@ import (
|
||||
"time"
|
||||
)
|
||||
|
||||
//GetChannelTopicTagSubjectField base64 decodes and downloads a field from a tag
|
||||
func GetChannelTopicTagSubjectField(w http.ResponseWriter, r *http.Request) {
|
||||
|
||||
// scan parameters
|
||||
|
@ -17,6 +17,7 @@ func reverseTags(input []store.TagSlot) []store.TagSlot {
|
||||
return output
|
||||
}
|
||||
|
||||
//GetChannelTopicTags retreives tags associated with topic
|
||||
func GetChannelTopicTags(w http.ResponseWriter, r *http.Request) {
|
||||
var revisionSet bool
|
||||
var revision int64
|
||||
|
@ -14,6 +14,7 @@ func reverseTopics(input []store.TopicSlot) []store.TopicSlot {
|
||||
return output
|
||||
}
|
||||
|
||||
//GetChannelTopics retrieves topics associated with channel
|
||||
func GetChannelTopics(w http.ResponseWriter, r *http.Request) {
|
||||
var revisionSet bool
|
||||
var revision int64
|
||||
|
@ -10,6 +10,7 @@ import (
|
||||
"strings"
|
||||
)
|
||||
|
||||
//GetChannels retrieves channels under account or shared with contact
|
||||
func GetChannels(w http.ResponseWriter, r *http.Request) {
|
||||
var channelRevisionSet bool
|
||||
var channelRevision int64
|
||||
|
@ -8,6 +8,7 @@ import (
|
||||
"net/http"
|
||||
)
|
||||
|
||||
//GetCloseMessage retrieves message to disconnect from contact
|
||||
func GetCloseMessage(w http.ResponseWriter, r *http.Request) {
|
||||
|
||||
account, code, res := ParamAgentToken(r, true)
|
||||
|
@ -13,6 +13,7 @@ import (
|
||||
"time"
|
||||
)
|
||||
|
||||
//GetGroupSubjectField base64 decods and downloads field from group subject
|
||||
func GetGroupSubjectField(w http.ResponseWriter, r *http.Request) {
|
||||
|
||||
// scan parameters
|
||||
|
@ -12,6 +12,7 @@ import (
|
||||
"time"
|
||||
)
|
||||
|
||||
//GetNodeAccountImage downloads profile image for the admin
|
||||
func GetNodeAccountImage(w http.ResponseWriter, r *http.Request) {
|
||||
|
||||
// get referenced account id
|
||||
|
@ -5,6 +5,7 @@ import (
|
||||
"net/http"
|
||||
)
|
||||
|
||||
//GetNodeAccounts retrieves profiles of hosted accounts for the admin
|
||||
func GetNodeAccounts(w http.ResponseWriter, r *http.Request) {
|
||||
|
||||
if code, err := ParamAdminToken(r); err != nil {
|
||||
|
Loading…
Reference in New Issue
Block a user