metadata

package
v0.0.0-...-23becbe Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2021 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TableProject     = "metadata_projects"
	TableStates      = "metadata_states"
	TableActions     = "metadata_actions"
	TableTransitions = "metadata_transitions"
	TableWorkers     = "metadata_workers"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Repository

type Repository struct {
	// contains filtered or unexported fields
}

func NewRepository

func NewRepository(db *gorm.DB) *Repository

func (*Repository) CreateBulkActions

func (r *Repository) CreateBulkActions(ctx context.Context, payload []action.Persistent) error

func (*Repository) CreateBulkStates

func (r *Repository) CreateBulkStates(ctx context.Context, payload []state.Persistent) error

func (*Repository) CreateBulkTransitions

func (r *Repository) CreateBulkTransitions(ctx context.Context, payload []transition.Persistent) error

func (*Repository) CreateBulkWorkers

func (r *Repository) CreateBulkWorkers(ctx context.Context, payload []worker.Persistent) error

func (*Repository) CreateProject

func (r *Repository) CreateProject(ctx context.Context, payload project.Persistent) (project.Persistent, error)

func (*Repository) GetActions

func (r *Repository) GetActions(ctx context.Context, projectUID string) ([]*action.Persistent, error)

func (*Repository) GetProject

func (r *Repository) GetProject(ctx context.Context, projectName, activityName string) (*project.Persistent, error)

func (*Repository) GetStates

func (r *Repository) GetStates(ctx context.Context, projectUID string) ([]*state.Persistent, error)

func (*Repository) GetTransitions

func (r *Repository) GetTransitions(ctx context.Context, projectUID string) ([]*transition.Persistent, error)

func (*Repository) GetWorkers

func (r *Repository) GetWorkers(ctx context.Context, projectUID string) ([]*worker.Persistent, error)

Jump to

Keyboard shortcuts

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