diff --git a/net/server/internal/api_removeChannelTopic.go b/net/server/internal/api_removeChannelTopic.go index 66c187a9..789a2a2c 100644 --- a/net/server/internal/api_removeChannelTopic.go +++ b/net/server/internal/api_removeChannelTopic.go @@ -8,7 +8,7 @@ import ( "net/http" ) -//Removes channel topic created by invoker or under invokers channel +//RemoveChannelTopic removes channel topic created by invoker or under invokers channel func RemoveChannelTopic(w http.ResponseWriter, r *http.Request) { // scan parameters diff --git a/net/server/internal/api_removeChannelTopicAsset.go b/net/server/internal/api_removeChannelTopicAsset.go index 8c6e00d5..92841153 100644 --- a/net/server/internal/api_removeChannelTopicAsset.go +++ b/net/server/internal/api_removeChannelTopicAsset.go @@ -8,7 +8,7 @@ import ( "net/http" ) -//RemoveChannelTopic removes topic asset if invoker created topic +//RemoveChannelTopicAsset removes topic asset if invoker created topic func RemoveChannelTopicAsset(w http.ResponseWriter, r *http.Request) { // scan parameters diff --git a/net/server/internal/api_setAccountAccess.go b/net/server/internal/api_setAccountAccess.go index 1365b85b..ad79d38a 100644 --- a/net/server/internal/api_setAccountAccess.go +++ b/net/server/internal/api_setAccountAccess.go @@ -9,6 +9,7 @@ import ( "net/http" ) +//SetAccountAccess creates token to gain access to account func SetAccountAccess(w http.ResponseWriter, r *http.Request) { token, _, res := AccessToken(r) diff --git a/net/server/internal/api_setAccountAuthentication.go b/net/server/internal/api_setAccountAuthentication.go index 6c9b4e42..44cc1242 100644 --- a/net/server/internal/api_setAccountAuthentication.go +++ b/net/server/internal/api_setAccountAuthentication.go @@ -8,6 +8,7 @@ import ( "strings" ) +//SetAccountAuthentication resets account credentials func SetAccountAuthentication(w http.ResponseWriter, r *http.Request) { token, res := BearerAccountToken(r) diff --git a/net/server/internal/api_setAccountLogin.go b/net/server/internal/api_setAccountLogin.go index 5af5a19f..4f988bf6 100644 --- a/net/server/internal/api_setAccountLogin.go +++ b/net/server/internal/api_setAccountLogin.go @@ -7,6 +7,7 @@ import ( "strings" ) +//SetAccountLogin resets account login with agent token func SetAccountLogin(w http.ResponseWriter, r *http.Request) { account, code, err := ParamAgentToken(r, true) diff --git a/net/server/internal/api_setAccountSearchable.go b/net/server/internal/api_setAccountSearchable.go index da1a8509..58cf4e3f 100644 --- a/net/server/internal/api_setAccountSearchable.go +++ b/net/server/internal/api_setAccountSearchable.go @@ -6,6 +6,7 @@ import ( "net/http" ) +//SetAccountSearchable sets public visibility of account func SetAccountSearchable(w http.ResponseWriter, r *http.Request) { account, code, err := ParamAgentToken(r, true) diff --git a/net/server/internal/api_setArticleGroup.go b/net/server/internal/api_setArticleGroup.go index 861b0a04..e2ea605f 100644 --- a/net/server/internal/api_setArticleGroup.go +++ b/net/server/internal/api_setArticleGroup.go @@ -8,6 +8,7 @@ import ( "net/http" ) +//SetArticleGroup assigns sharing group to article func SetArticleGroup(w http.ResponseWriter, r *http.Request) { account, code, err := ParamAgentToken(r, false) diff --git a/net/server/internal/api_setArticleRevision.go b/net/server/internal/api_setArticleRevision.go index 41a1040a..bdb8c8ee 100644 --- a/net/server/internal/api_setArticleRevision.go +++ b/net/server/internal/api_setArticleRevision.go @@ -6,6 +6,7 @@ import ( "net/http" ) +//SetArticleRevision notifies contact of updated article revision func SetArticleRevision(w http.ResponseWriter, r *http.Request) { card, code, err := ParamContactToken(r, false) @@ -28,6 +29,7 @@ func SetArticleRevision(w http.ResponseWriter, r *http.Request) { WriteResponse(w, nil) } +//NotifyArticleRevision sets article revision of contact func NotifyArticleRevision(card *store.Card, revision int64) error { act := &card.Account diff --git a/net/server/internal/api_setArticleSubject.go b/net/server/internal/api_setArticleSubject.go index 4b830738..f4e774ea 100644 --- a/net/server/internal/api_setArticleSubject.go +++ b/net/server/internal/api_setArticleSubject.go @@ -8,6 +8,7 @@ import ( "net/http" ) +//SetArticleSubject updates the subject of specified article in account func SetArticleSubject(w http.ResponseWriter, r *http.Request) { account, code, err := ParamAgentToken(r, false) diff --git a/net/server/internal/api_setCardGroup.go b/net/server/internal/api_setCardGroup.go index 7220da58..e7c6324c 100644 --- a/net/server/internal/api_setCardGroup.go +++ b/net/server/internal/api_setCardGroup.go @@ -8,6 +8,7 @@ import ( "net/http" ) +//SetCardGroup assigns contact to sharing group func SetCardGroup(w http.ResponseWriter, r *http.Request) { account, code, err := BearerAppToken(r, false) if err != nil { diff --git a/net/server/internal/api_setCardNotes.go b/net/server/internal/api_setCardNotes.go index 8706aac5..1df903aa 100644 --- a/net/server/internal/api_setCardNotes.go +++ b/net/server/internal/api_setCardNotes.go @@ -8,6 +8,7 @@ import ( "net/http" ) +//SetCardNotes assignes notes to contact in account func SetCardNotes(w http.ResponseWriter, r *http.Request) { account, code, err := BearerAppToken(r, false) diff --git a/net/server/internal/api_setCardProfile.go b/net/server/internal/api_setCardProfile.go index 5fd9f221..6be4d605 100644 --- a/net/server/internal/api_setCardProfile.go +++ b/net/server/internal/api_setCardProfile.go @@ -8,6 +8,7 @@ import ( "net/http" ) +//SetCardProfile updates public profile of contact func SetCardProfile(w http.ResponseWriter, r *http.Request) { account, code, err := ParamAgentToken(r, false) diff --git a/net/server/internal/api_setCardStatus.go b/net/server/internal/api_setCardStatus.go index d81c9652..f43cd9f4 100644 --- a/net/server/internal/api_setCardStatus.go +++ b/net/server/internal/api_setCardStatus.go @@ -11,6 +11,7 @@ import ( "strconv" ) +//SetCardStatus updates connection status of contact func SetCardStatus(w http.ResponseWriter, r *http.Request) { var res error