major change of websocket dbmHandler structure
This commit is contained in:
13
models/subscribtion.go
Normal file
13
models/subscribtion.go
Normal file
@@ -0,0 +1,13 @@
|
||||
package models
|
||||
|
||||
type Subscribtions map[string]*Subscribtion
|
||||
|
||||
type Subscribtion struct {
|
||||
OnCreate bool
|
||||
OnDelete bool
|
||||
OnChange bool
|
||||
}
|
||||
|
||||
func InitSubscribtion() Subscribtions {
|
||||
return make(Subscribtions)
|
||||
}
|
Reference in New Issue
Block a user