bouncer/internal/admin/init.go

20 lines
333 B
Go
Raw Normal View History

2023-04-24 20:52:12 +02:00
package admin
import (
"context"
"forge.cadoles.com/cadoles/bouncer/internal/setup"
"github.com/pkg/errors"
)
func (s *Server) initRepositories(ctx context.Context) error {
proxyRepo, err := setup.NewProxyRepository(ctx, s.databaseConfig)
if err != nil {
return errors.WithStack(err)
}
s.repo = proxyRepo
return nil
}