mirror of
https://github.com/FrankerFaceZ/FrankerFaceZ.git
synced 2025-09-02 11:20:56 +00:00
Post to backend when server start
This commit is contained in:
parent
95a8f710f8
commit
a4bac68d02
3 changed files with 19 additions and 2 deletions
|
@ -26,6 +26,7 @@ var responseCache *cache.Cache
|
|||
var getBacklogUrl string
|
||||
var postStatisticsUrl string
|
||||
var addTopicUrl string
|
||||
var announceStartupUrl string
|
||||
|
||||
var backendSharedKey [32]byte
|
||||
var serverId int
|
||||
|
@ -43,6 +44,7 @@ func SetupBackend(config *ConfigFile) {
|
|||
getBacklogUrl = fmt.Sprintf("%s/backlog", backendUrl)
|
||||
postStatisticsUrl = fmt.Sprintf("%s/stats", backendUrl)
|
||||
addTopicUrl = fmt.Sprintf("%s/topics", backendUrl)
|
||||
announceStartupUrl = fmt.Sprintf("%s/startup", backendUrl)
|
||||
|
||||
messageBufferPool.New = New4KByteBuffer
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue