28 lines
450 B
Go
28 lines
450 B
Go
|
package processor
|
||
|
|
||
|
import (
|
||
|
"git.sleepycat.moe/sam/mercury/internal/database"
|
||
|
"git.sleepycat.moe/sam/mercury/internal/database/sql"
|
||
|
"git.sleepycat.moe/sam/mercury/internal/streaming"
|
||
|
)
|
||
|
|
||
|
type Processor struct {
|
||
|
SocketHolder *streaming.SocketHolder
|
||
|
|
||
|
db *sql.Base
|
||
|
}
|
||
|
|
||
|
func New(db *sql.Base) *Processor {
|
||
|
p := &Processor{
|
||
|
SocketHolder: &streaming.SocketHolder{},
|
||
|
|
||
|
db: db,
|
||
|
}
|
||
|
|
||
|
return p
|
||
|
}
|
||
|
|
||
|
func (p *Processor) HandlePost(post database.Post) {
|
||
|
|
||
|
}
|