21 lines
475 B
Go
21 lines
475 B
Go
package server
|
|
|
|
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().
|
|
Register(NewGinHttpServer(logger.With(zap.String("app", "ginHttpServer")), deps)).
|
|
Register(NewStorageServer(logger.With(zap.String("app", "storageServer")), deps)).
|
|
Run(ctx)
|
|
}
|