datastore

package
v0.0.0-...-843e88f Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2020 License: MPL-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BeehiveStore

type BeehiveStore struct {
	DB *sqlx.DB
}

func NewDatastore

func NewDatastore(db *sqlx.DB) *BeehiveStore

func (*BeehiveStore) CreateJobSolutions

func (b *BeehiveStore) CreateJobSolutions(jobID string, sols honey.JobSolutions) (honey.JobSolutions, error)

func (*BeehiveStore) CreateSolution

func (b *BeehiveStore) CreateSolution(sol honey.Solution) (honey.Solution, error)

func (*BeehiveStore) DeleteJobSolutions

func (b *BeehiveStore) DeleteJobSolutions(jobID string) (bool, error)

type Storage

type Storage interface {
	CreateSolution(sol honey.Solution) (honey.Solution, error)
	CreateJobSolutions(jobID string, sols honey.JobSolutions) (honey.JobSolutions, error)
	DeleteJobSolutions(jobID string) (bool, error)
}

Jump to

Keyboard shortcuts

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