api

package
v0.0.0-...-da4b68f Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2020 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type API

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

func NewAPI

func NewAPI(logger *log.Logger, dataStore persistence.DataStore, fileStore persistence.FileStore, validator validator.Validator) *API

func (*API) AddMetadata

func (api *API) AddMetadata(w http.ResponseWriter, r *http.Request)

func (*API) CreateDataset

func (api *API) CreateDataset(w http.ResponseWriter, _ *http.Request)

func (*API) Dummy

func (api *API) Dummy(w http.ResponseWriter, r *http.Request)

func (*API) GetDataset

func (api *API) GetDataset(w http.ResponseWriter, r *http.Request)

func (*API) GetMetadata

func (api *API) GetMetadata(w http.ResponseWriter, r *http.Request)

func (*API) ListDatasets

func (api *API) ListDatasets(w http.ResponseWriter, r *http.Request)

func (*API) ListMetadata

func (api *API) ListMetadata(w http.ResponseWriter, r *http.Request)

func (*API) Logger

func (api *API) Logger(next http.HandlerFunc) http.HandlerFunc

func (*API) SetupRoutes

func (api *API) SetupRoutes(r *mux.Router)

func (*API) Validate

func (api *API) Validate(w http.ResponseWriter, r *http.Request)

Jump to

Keyboard shortcuts

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