executions

package
v0.0.0-...-0ea846c Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 6, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ExecutionService

type ExecutionService struct {
	*database.PostgresDBAccess
}

ExecutionService is the service that handles the code executions of the application

func NewExecutionService

func NewExecutionService(db *database.PostgresDBAccess) *ExecutionService

NewExecutionService creates a new execution service

func (ExecutionService) CreateExecution

func (e ExecutionService) CreateExecution(input model.NewExecution, temporalExec compiler.TemporalExecution) (*dbmodels.Execution, error)

CreateExecution creates a new execution in the database

func (ExecutionService) GetExecution

func (e ExecutionService) GetExecution(id string) (*dbmodels.Execution, error)

GetExecution retrieves a single execution from the database

func (ExecutionService) GetExecutions

func (e ExecutionService) GetExecutions() ([]dbmodels.Execution, error)

GetExecutions retrieves all the executions from the database

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL