20 lines
333 B
Go
20 lines
333 B
Go
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
|
|
}
|