Documentation ¶
Overview ¶
Package repository declares the repository interfaces.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Project ¶
type Project interface { GetByID(ctx context.Context, id uuid.UUID) (*domain.Project, error) GetByName(ctx context.Context, name string) (*domain.Project, error) List(ctx context.Context, getProjectsRequest *domain.ListProjectsRequest) ([]*domain.Project, error) Create(ctx context.Context, project *domain.CreateProjectRequest) (*domain.Project, error) }
Project is the project repository.
type Run ¶
type Run interface { Get(ctx context.Context, id uuid.UUID) (*domain.Run, error) Create(ctx context.Context, createRunRequest *domain.CreateRunRequest) (*domain.Run, error) Update(ctx context.Context, updateRunRequest *domain.UpdateRunRequest) (*domain.Run, error) ListForProject(ctx context.Context, listForProject *domain.ListRunsForProjectRequest) ([]*domain.Run, error) }
Run is the run repository.
type Scenario ¶
type Scenario interface { Create(ctx context.Context, scenario *domain.CreateScenarioRequest) (*domain.Scenario, error) GetForProject(ctx context.Context, getForProjectRequest *domain.GetScenariosForProjectRequest) ([]*domain.Scenario, error) }
Scenario is the scenario repository.
type Type ¶
type Type string
Type is the type of repository.
const (
TypeSQLite Type = "sqlite"
)
Repository types.
func TypeFromString ¶
TypeFromString converts a string to a repository type.
type Wrapper ¶
Wrapper wraps all repositories.
func NewSQLiteWrapper ¶
NewSQLiteWrapper initialises sqlite repository implementation.
func NewWrapper ¶
NewWrapper initialises the repository wrapper.
Click to show internal directories.
Click to hide internal directories.