octopush/internal/server/server.go

21 lines
426 B
Go
Raw Normal View History

2022-09-10 12:46:02 +02:00
package server
2022-09-10 20:20:49 +02:00
import (
"context"
"git.front.kjuulh.io/kjuulh/curre"
"git.front.kjuulh.io/kjuulh/kraken/internal/serverdeps"
"go.uber.org/zap"
)
func Start(logger *zap.Logger) error {
ctx := context.Background()
deps := serverdeps.NewServerDeps(logger)
return curre.NewManager().
2022-09-11 13:43:29 +02:00
Register(NewGinHttpServer(deps)).
2022-09-11 14:52:21 +02:00
Register(NewStorageServer(logger.With(zap.String("app", "storageServer")), deps)).
2022-09-10 20:20:49 +02:00
Run(ctx)
}