catalog

package
v0.0.0-...-eca5b37 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	// CatalogServiceURL is a default catalog service URL
	CatalogServiceURL = "http://localhost:8080"

	// ShortDescriptionLen is the short description max length
	ShortDescriptionLen = 200
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ParcelCatalogServiceClient

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

ParcelCatalogServiceClient is a client for catalog service

func NewCatalogServiceClient

func NewCatalogServiceClient(CatalogServiceURL string, trace bool) (*ParcelCatalogServiceClient, error)

NewCatalogServiceClient creates a new ParcelCatalogServiceClient

func (*ParcelCatalogServiceClient) GetAllDatasets

func (client *ParcelCatalogServiceClient) GetAllDatasets() ([]*dataset.Dataset, error)

GetAllDatasets returns all datasets

func (*ParcelCatalogServiceClient) SearchDatasets

func (client *ParcelCatalogServiceClient) SearchDatasets(keywords []string) ([]*dataset.Dataset, error)

SearchDatasets returns search result

func (*ParcelCatalogServiceClient) SelectDatasets

func (client *ParcelCatalogServiceClient) SelectDatasets(ids []string) ([]*dataset.Dataset, error)

SelectDatasets returns datasets with specific IDs

Jump to

Keyboard shortcuts

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