Documentation ¶
Index ¶
- Constants
- Variables
- func CreateSignalHandler(db *gorm.DB, w http.ResponseWriter, r *http.Request)
- func DeleteSignalHandler(db *gorm.DB, w http.ResponseWriter, r *http.Request)
- func DispatchMessage(db *gorm.DB) pubsub.Callback
- func GetAllSignalsHandler(db *gorm.DB, w http.ResponseWriter, r *http.Request)
- func GetSignalHandler(db *gorm.DB, w http.ResponseWriter, r *http.Request)
- func MigrateDB(db *gorm.DB) error
- func UpdateSignalHandler(db *gorm.DB, w http.ResponseWriter, r *http.Request)
- func UpdateSignalStatus(db *gorm.DB, msg *pubsub.Message) error
- type JSONB
- type Signal
Constants ¶
View Source
const ( SignalStatusNew = iota SignalStatusRejected SignalStatusResolved )
View Source
const (
TrendSignalType = "trend"
)
Variables ¶
View Source
var SignalTypes = map[string]bool{ TrendSignalType: false, }
Functions ¶
func CreateSignalHandler ¶
func DeleteSignalHandler ¶
func GetAllSignalsHandler ¶
func GetSignalHandler ¶
func UpdateSignalHandler ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.