api

package
v1.27.0 Latest Latest
Warning

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

Go to latest
Published: May 15, 2023 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ImportAPI

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

ImportAPI is a restful API used to manage importing datasets to be published

func Setup added in v1.9.0

func Setup(router *mux.Router,
	dataStore datastore.DataStorer,
	jobService JobService, cfg *config.Configuration) *ImportAPI

Setup manages all the routes configured to API

func SetupAPIWith added in v1.13.0

func SetupAPIWith(overrideDataStore *mongo.DataStorer, overrideServiceMock *testapi.JobServiceMock) *ImportAPI

SetupAPIWith sets up API with given configs

type JobService

type JobService interface {
	CreateJob(ctx context.Context, job *models.Job) (*models.Job, error)
	UpdateJob(ctx context.Context, jobID string, job *models.Job) error
}

JobService provide business logic for job related operations.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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