repositories

package
v0.0.0-...-a12d374 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2020 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HistoryRepository

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

func NewHistoryRepository

func NewHistoryRepository(db driver.Database, collectionName string) (*HistoryRepository, error)

func (*HistoryRepository) Create

func (repo *HistoryRepository) Create(ctx context.Context, entry history.Record) (dal.Entity, error)

func (*HistoryRepository) Find

func (*HistoryRepository) Get

func (*HistoryRepository) Update

func (repo *HistoryRepository) Update(ctx context.Context, entry history.Record) (dal.Entity, error)

type PersistenceRepository

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

func NewPersistenceRepository

func NewPersistenceRepository(db driver.Database, collectionName string) (*PersistenceRepository, error)

func (*PersistenceRepository) Create

func (repo *PersistenceRepository) Create(ctx context.Context, record persistence.Record) (dal.Entity, error)

func (*PersistenceRepository) Delete

func (repo *PersistenceRepository) Delete(ctx context.Context, id string) error

func (*PersistenceRepository) Find

func (*PersistenceRepository) FindByScriptID

func (repo *PersistenceRepository) FindByScriptID(ctx context.Context, scriptID string, q dal.Query) (persistence.QueryResult, error)

func (*PersistenceRepository) Get

func (*PersistenceRepository) Update

func (repo *PersistenceRepository) Update(ctx context.Context, record persistence.Record) (dal.Entity, error)

type ProjectRepository

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

func NewProjectRepository

func NewProjectRepository(client driver.Client, db driver.Database, collectionName string) (*ProjectRepository, error)

func (*ProjectRepository) Create

func (repo *ProjectRepository) Create(ctx context.Context, project projects.Project) (dal.Entity, error)

func (*ProjectRepository) Delete

func (repo *ProjectRepository) Delete(ctx context.Context, id string) error

func (*ProjectRepository) Find

func (*ProjectRepository) Get

func (*ProjectRepository) Update

func (repo *ProjectRepository) Update(ctx context.Context, project projects.UpdateProject) (dal.Entity, error)

type ScriptRepository

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

func NewScriptRepository

func NewScriptRepository(db driver.Database, collectionName string) (*ScriptRepository, error)

func (*ScriptRepository) Create

func (repo *ScriptRepository) Create(ctx context.Context, script scripts.Script) (dal.Entity, error)

func (*ScriptRepository) Delete

func (repo *ScriptRepository) Delete(ctx context.Context, id string) error

func (*ScriptRepository) Find

func (*ScriptRepository) Get

func (*ScriptRepository) Update

func (repo *ScriptRepository) Update(ctx context.Context, script scripts.UpdateScript) (dal.Entity, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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