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
Click to show internal directories.
Click to hide internal directories.