20 lines
330 B
Go
20 lines
330 B
Go
package server
|
|
|
|
import (
|
|
"context"
|
|
|
|
"forge.cadoles.com/Cadoles/emissary/internal/setup"
|
|
"github.com/pkg/errors"
|
|
)
|
|
|
|
func (s *Server) initRepositories(ctx context.Context) error {
|
|
agentRepo, err := setup.NewAgentRepository(ctx, s.conf)
|
|
if err != nil {
|
|
return errors.WithStack(err)
|
|
}
|
|
|
|
s.agentRepo = agentRepo
|
|
|
|
return nil
|
|
}
|