dashboard/cache/panelcreate.go
2020-02-09 14:26:52 +00:00

18 lines
330 B
Go

package cache
import (
"encoding/json"
"github.com/TicketsBot/GoPanel/database/table"
"github.com/apex/log"
)
func (c *RedisClient) PublishPanelCreate(settings table.Panel) {
encoded, err := json.Marshal(settings); if err != nil {
log.Error(err.Error())
return
}
c.Publish("tickets:panel:create", string(encoded))
}