2024-09-27 22:37:58 +00:00
|
|
|
package main
|
|
|
|
|
2024-10-10 21:36:51 +00:00
|
|
|
import (
|
|
|
|
"context"
|
|
|
|
|
|
|
|
"git.optclblast.xyz/draincloud/draincloud-core/internal/app"
|
2024-10-19 23:05:34 +00:00
|
|
|
"git.optclblast.xyz/draincloud/draincloud-core/internal/plugin"
|
2024-10-20 09:12:54 +00:00
|
|
|
"git.optclblast.xyz/draincloud/draincloud-core/internal/storage/postgres"
|
2024-10-10 21:36:51 +00:00
|
|
|
)
|
2024-09-27 22:37:58 +00:00
|
|
|
|
2024-10-10 21:36:51 +00:00
|
|
|
func main() {
|
2024-10-19 23:05:34 +00:00
|
|
|
ctx := context.Background()
|
2024-10-20 09:12:54 +00:00
|
|
|
|
2024-10-27 05:07:27 +00:00
|
|
|
plugin.MustNewPluginLoader(ctx, 8081, plugin.NewPluginStore()).
|
|
|
|
Run(ctx)
|
2024-10-20 09:12:54 +00:00
|
|
|
|
2024-10-27 05:07:27 +00:00
|
|
|
pg := postgres.New(ctx, "postgres://draincloud:draincloud@localhost:5432/draincloud?sslmode=disable")
|
|
|
|
|
|
|
|
app.New(pg).
|
|
|
|
Run(ctx)
|
2024-09-27 22:37:58 +00:00
|
|
|
}
|