mirror of
https://github.com/documize/community.git
synced 2025-07-24 07:39:43 +02:00
refactored document & search codebase to new API
This commit is contained in:
parent
d90b3249c3
commit
65390ab67d
12 changed files with 1288 additions and 35 deletions
|
@ -18,13 +18,14 @@ import (
|
|||
"github.com/documize/community/core/api"
|
||||
"github.com/documize/community/core/api/request"
|
||||
"github.com/documize/community/core/env"
|
||||
"github.com/documize/community/domain"
|
||||
"github.com/documize/community/domain/search"
|
||||
"github.com/documize/community/domain/section"
|
||||
"github.com/documize/community/edition/boot"
|
||||
"github.com/documize/community/edition/logging"
|
||||
_ "github.com/documize/community/embed" // the compressed front-end code and static data
|
||||
"github.com/documize/community/server"
|
||||
_ "github.com/go-sql-driver/mysql" // the mysql driver is required behind the scenes
|
||||
"github.com/documize/community/domain"
|
||||
)
|
||||
|
||||
var rt env.Runtime
|
||||
|
@ -68,6 +69,9 @@ func main() {
|
|||
// Register smart sections
|
||||
section.Register(rt)
|
||||
|
||||
// Search indexer queue
|
||||
search.Start(&rt, &s)
|
||||
|
||||
ready := make(chan struct{}, 1) // channel signals router ready
|
||||
server.Start(&rt, &s, ready)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue