16 lines
285 B
Go
16 lines
285 B
Go
package models
|
|
|
|
import wsModels "github.com/tecamino/tecamino-dbm/websocket/models"
|
|
|
|
type Subscriptions map[*wsModels.Client]*Subscription
|
|
|
|
type Subscription struct {
|
|
OnCreate bool
|
|
OnDelete bool
|
|
OnChange bool
|
|
}
|
|
|
|
func InitSubscribtion() Subscriptions {
|
|
return make(Subscriptions)
|
|
}
|