mercury/internal/processor/processor.go

28 lines
450 B
Go
Raw Normal View History

2023-10-15 17:08:55 +02:00
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) {
}