mirror of
https://github.com/FrankerFaceZ/FrankerFaceZ.git
synced 2025-06-28 05:15:54 +00:00
update comments
This commit is contained in:
parent
1dc92ed407
commit
328363ab6b
2 changed files with 6 additions and 3 deletions
|
@ -134,8 +134,11 @@ func HTTPBackendDropBacklog(w http.ResponseWriter, r *http.Request) {
|
||||||
|
|
||||||
// HTTPBackendCachedPublish handles the /cached_pub route.
|
// HTTPBackendCachedPublish handles the /cached_pub route.
|
||||||
// It publishes a message to clients, and then updates the in-server cache for the message.
|
// It publishes a message to clients, and then updates the in-server cache for the message.
|
||||||
// notes:
|
//
|
||||||
// `scope` is implicit in the command
|
// The 'channel' parameter is a comma-separated list of topics to publish the message to.
|
||||||
|
// The 'args' parameter is the JSON-encoded command data.
|
||||||
|
// If the 'delete' parameter is present, an entry is removed from the cache instead of publishing a message.
|
||||||
|
// If the 'expires' parameter is not specified, the message will not expire (though it is only kept in-memory).
|
||||||
func HTTPBackendCachedPublish(w http.ResponseWriter, r *http.Request) {
|
func HTTPBackendCachedPublish(w http.ResponseWriter, r *http.Request) {
|
||||||
r.ParseForm()
|
r.ParseForm()
|
||||||
formData, err := Backend.UnsealRequest(r.Form)
|
formData, err := Backend.UnsealRequest(r.Form)
|
||||||
|
|
|
@ -63,4 +63,4 @@ func TestExpiredCleanup(t *testing.T) {
|
||||||
if CachedLastMessages[cmd][channel4].Data != "4" {
|
if CachedLastMessages[cmd][channel4].Data != "4" {
|
||||||
t.Error("saved wrong message")
|
t.Error("saved wrong message")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue