21 lines
523 B
Go
21 lines
523 B
Go
package main
|
|
|
|
import (
|
|
"context"
|
|
|
|
"git.optclblast.xyz/draincloud/draincloud-core/internal/app"
|
|
"git.optclblast.xyz/draincloud/draincloud-core/internal/plugin"
|
|
"git.optclblast.xyz/draincloud/draincloud-core/internal/storage/postgres"
|
|
)
|
|
|
|
func main() {
|
|
ctx := context.Background()
|
|
ps := plugin.NewPluginStore()
|
|
pl := plugin.MustNewPluginLoader(ctx, 8081, ps)
|
|
pl.Run(ctx)
|
|
|
|
pg := postgres.New(ctx, "postgres://draincloud:draincloud_secret@localhost:5432/draincloud?sslmode=disable")
|
|
|
|
app.New(pg).Run(context.TODO())
|
|
}
|