api

package
v1.8.0 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2020 License: MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Close

func Close(ctx context.Context) error

Close represents the graceful shutting down of the http server

func CreateImportAPI

func CreateImportAPI(ctx context.Context,
	bindAddr, zebedeeURL string,
	mongoDataStore datastore.DataStorer,
	jobService JobService,
	auditor audit.AuditorService,
	hc *healthcheck.HealthCheck)

CreateImportAPI manages all the routes configured to API

Types

type Auditor

type Auditor audit.AuditorService

Auditor provides auditor service

type ImportAPI

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

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

func (*ImportAPI) ServeHTTP

func (api *ImportAPI) ServeHTTP(w http.ResponseWriter, r *http.Request)

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