controller

package
v0.0.0-...-4109721 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DiscoveryController

type DiscoveryController struct {
	FairDataPointClient clients.FairDataPointClient
	IdentifierRegex     *regexp.Regexp
	IsPartOfRegex       *regexp.Regexp
	DatasetsRegex       *regexp.Regexp
	DatasetIdRegex      *regexp.Regexp
	AccessPoints        map[string]uuid.UUID
}

func InitDiscoveryController

func InitDiscoveryController(fairClient clients.FairDataPointClient, accessPoints map[string]uuid.UUID) (DiscoveryController, error)

func (DiscoveryController) Add

func (ddc DiscoveryController) Add(body, catalogID string)

func (DiscoveryController) Delete

func (ddc DiscoveryController) Delete(body string) error

func (DiscoveryController) MessageHandler

func (ddc DiscoveryController) MessageHandler(messageList clients.MessageList) error

func (DiscoveryController) ProcessMessage

func (ddc DiscoveryController) ProcessMessage(message, from string) error

func (DiscoveryController) Restore

func (ddc DiscoveryController) Restore(body, catalogID string) error

func (DiscoveryController) Update

func (ddc DiscoveryController) Update(body, catalogID string)

type SearchResponse

type SearchResponse struct {
	Uri         string   `json:"uri"`
	Types       []string `json:"types"`
	Title       string   `json:"title"`
	Description string   `json:"description"`
	Relations   []string `json:"relations"`
}

Jump to

Keyboard shortcuts

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