Versions in this module Expand all Collapse all v0 v0.3.0 Aug 31, 2022 v0.2.1 Jan 25, 2022 Changes in this version + type Agent struct + AlternateName string + ID string + Name string + SameAs string + Type string + type Catalog struct + Context string + Dataset []*Dataset + Description string + ID string + Name string + Publisher Agent + Type string + type Dataset struct + Context string + Creator Agent + DateCreated string + DateModified string + DatePublished string + Description string + Distribution []Distribution + ID string + InLanguage []string + IncludedInDataCatalog string + Keywords []string + License string + MainEntityOfPage string + Name string + Publisher Agent + Type string + type DatasetLink struct + ID string + Type string + type Distribution struct + ContentSize string + ContentURL string + DateModified string + DatePublished string + EncodingFormat string + Name string + Type string + type DistributionCfg struct + DatasetType string + DownloadFmt string + MimeType string + type Option func(*Service) error + func SetConfig(cfg *RegisterConfig) Option + type RegisterConfig struct + DataPath string + DatasetFmt string + DefaultLanguages []string + DefaultLicense string + Description string + Distributions []DistributionCfg + Name string + Publisher struct{ ... } + RDFBaseURL string + func (r *RegisterConfig) GetAgent() Agent + func (r *RegisterConfig) GetDistributions(spec, datasetType string) []Distribution + type Service struct + func NewService(options ...Option) (*Service, error) + func (s *Service) AddDatasets(orgID string, catalog *Catalog) error + func (s *Service) HandleCatalog(w http.ResponseWriter, r *http.Request) + func (s *Service) HandleDataset(w http.ResponseWriter, r *http.Request) + func (s *Service) Routes(router chi.Router) + func (s *Service) ServeHTTP(w http.ResponseWriter, r *http.Request) + func (s *Service) Shutdown(ctx context.Context) error