draincloud-core/cmd/main.go
drainpilled f8f10b7c15 tmp
2024-10-20 05:12:54 -04:00

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())
}