Remove unused and deprecated Storer interface.

This commit is contained in:
Maximilian Paß
2022-10-14 20:16:56 +01:00
parent 7119f3e012
commit b9c923da8a
2 changed files with 6 additions and 29 deletions

View File

@ -1,22 +0,0 @@
package execution
import (
"github.com/openHPI/poseidon/pkg/dto"
)
// ID is an identifier for an execution.
type ID string
// Storer stores executions.
type Storer interface {
// Add adds a runner to the storage.
// It overwrites the existing execution if an execution with the same id already exists.
Add(id ID, executionRequest *dto.ExecutionRequest)
// Exists returns whether the execution with the given id exists in the store.
Exists(id ID) bool
// Pop deletes the execution with the given id from the storage and returns it.
// If no such execution exists, ok is false and true otherwise.
Pop(id ID) (request *dto.ExecutionRequest, ok bool)
}