mirror of
https://github.com/wisplite/tether.git
synced 2026-05-01 06:22:41 -05:00
initial commit
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
package tether
|
||||
|
||||
import (
|
||||
"github.com/wisplite/tether/reactivity"
|
||||
"gorm.io/gorm"
|
||||
)
|
||||
|
||||
type Engine struct {
|
||||
db *gorm.DB
|
||||
channels map[string]*reactivity.Channel
|
||||
}
|
||||
|
||||
func NewEngine(db *gorm.DB) *Engine {
|
||||
return &Engine{db: db, channels: make(map[string]*reactivity.Channel)}
|
||||
}
|
||||
Reference in New Issue
Block a user