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
57d36f2545
commit
200ba4b9f8
@ -8,6 +8,7 @@ import (
|
||||
"net/http"
|
||||
)
|
||||
|
||||
//SetChannelCard adds contact to channel membership
|
||||
func SetChannelCard(w http.ResponseWriter, r *http.Request) {
|
||||
|
||||
account, code, err := ParamAgentToken(r, false)
|
||||
|
@ -8,6 +8,7 @@ import (
|
||||
"net/http"
|
||||
)
|
||||
|
||||
//SetChannelGroup adds sharing group to channel
|
||||
func SetChannelGroup(w http.ResponseWriter, r *http.Request) {
|
||||
|
||||
account, code, err := BearerAppToken(r, false)
|
||||
|
@ -6,6 +6,7 @@ import (
|
||||
"net/http"
|
||||
)
|
||||
|
||||
//SetChannelRevision notifies contact of updated channel revision
|
||||
func SetChannelRevision(w http.ResponseWriter, r *http.Request) {
|
||||
|
||||
card, code, err := ParamContactToken(r, false)
|
||||
@ -28,6 +29,7 @@ func SetChannelRevision(w http.ResponseWriter, r *http.Request) {
|
||||
WriteResponse(w, nil)
|
||||
}
|
||||
|
||||
//NotifyChannelRevision stores updated channel revision
|
||||
func NotifyChannelRevision(card *store.Card, revision int64) error {
|
||||
|
||||
act := &card.Account
|
||||
|
@ -8,6 +8,7 @@ import (
|
||||
"net/http"
|
||||
)
|
||||
|
||||
//SetChannelSubject updates channel subject for account holder
|
||||
func SetChannelSubject(w http.ResponseWriter, r *http.Request) {
|
||||
|
||||
account, code, err := ParamAgentToken(r, false)
|
||||
|
@ -8,6 +8,7 @@ import (
|
||||
"net/http"
|
||||
)
|
||||
|
||||
//SetChannelTopicConfirmed sets confirmation status of topic
|
||||
func SetChannelTopicConfirmed(w http.ResponseWriter, r *http.Request) {
|
||||
|
||||
// scan parameters
|
||||
|
@ -8,6 +8,7 @@ import (
|
||||
"net/http"
|
||||
)
|
||||
|
||||
//SetChannelTopicSubject sets subject of channel topic created by invoker
|
||||
func SetChannelTopicSubject(w http.ResponseWriter, r *http.Request) {
|
||||
|
||||
// scan parameters
|
||||
|
@ -8,6 +8,7 @@ import (
|
||||
"net/http"
|
||||
)
|
||||
|
||||
//SetChannelTopicTagSubject sets subject of tag created by invoker
|
||||
func SetChannelTopicTagSubject(w http.ResponseWriter, r *http.Request) {
|
||||
|
||||
// scan parameters
|
||||
|
@ -8,6 +8,7 @@ import (
|
||||
"time"
|
||||
)
|
||||
|
||||
//SetCloseMessage delivers disconnection message to contact
|
||||
func SetCloseMessage(w http.ResponseWriter, r *http.Request) {
|
||||
|
||||
var message DataMessage
|
||||
|
@ -8,6 +8,7 @@ import (
|
||||
"net/http"
|
||||
)
|
||||
|
||||
//SetGroupSubject sets subject of group under account
|
||||
func SetGroupSubject(w http.ResponseWriter, r *http.Request) {
|
||||
|
||||
account, code, err := ParamAgentToken(r, true)
|
||||
|
Loading…
Reference in New Issue
Block a user