Documentation ¶
Index ¶
- Variables
- func DeleteDataset(w http.ResponseWriter, r *http.Request)
- func EADDownload(w http.ResponseWriter, r *http.Request)
- func EADMeta(w http.ResponseWriter, r *http.Request)
- func GetScrollResult(w http.ResponseWriter, r *http.Request)
- func GetSearchRecord(ctx context.Context, id string) (*fragments.FragmentGraph, error)
- func NewPrometheuusMiddleware(name string, buckets ...float64) *prometheusMiddleware
- func PDFDownload(w http.ResponseWriter, r *http.Request)
- func ProcessSearchRequest(w http.ResponseWriter, r *http.Request, searchRequest *fragments.SearchRequest)
- func RegisterDatasets(router chi.Router)
- func RegisterEAD(r chi.Router)
- func RegisterLOD(r chi.Router)
- func RegisterLinkedDataFragments(router chi.Router)
- func RegisterMetrics(r chi.Router)
- func RegisterSearch(router chi.Router)
- func RegisterSparql(r chi.Router)
- func RenderLODResource(w http.ResponseWriter, r *http.Request)
- func TreeDescriptionAPI(w http.ResponseWriter, r *http.Request)
- func TreeDescriptionSearch(w http.ResponseWriter, r *http.Request)
- func TreeList(w http.ResponseWriter, r *http.Request)
- type EchoSearchRequest
- type OldBulkProcessor
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrSparqlNotEnabled = errors.New("SPARQL endpoint is disabled") ErrInvalidSparqlRequest = errors.New("unable to create SPARQL request") )
Functions ¶
func DeleteDataset ¶ added in v0.2.0
func DeleteDataset(w http.ResponseWriter, r *http.Request)
func EADDownload ¶
func EADDownload(w http.ResponseWriter, r *http.Request)
EADDownload is a handler that returns a stored XML for an EAD Archive
func GetScrollResult ¶
func GetScrollResult(w http.ResponseWriter, r *http.Request)
func GetSearchRecord ¶ added in v0.2.1
func NewPrometheuusMiddleware ¶
NewMiddleware returns a new prometheus Middleware handler.
func PDFDownload ¶
func PDFDownload(w http.ResponseWriter, r *http.Request)
PDFDownload is a handler that returns a stored PDF for an EAD Archive
func ProcessSearchRequest ¶
func ProcessSearchRequest(w http.ResponseWriter, r *http.Request, searchRequest *fragments.SearchRequest)
func RegisterDatasets ¶
func RegisterEAD ¶
func RegisterLOD ¶
func RegisterMetrics ¶
func RegisterSearch ¶
func RegisterSparql ¶
func RenderLODResource ¶
func RenderLODResource(w http.ResponseWriter, r *http.Request)
RenderLODResource returns a list of matching fragments for a LOD resource. This mimicks a SPARQL describe request
func TreeDescriptionAPI ¶
func TreeDescriptionAPI(w http.ResponseWriter, r *http.Request)
func TreeDescriptionSearch ¶ added in v0.1.10
func TreeDescriptionSearch(w http.ResponseWriter, r *http.Request)
Types ¶
type EchoSearchRequest ¶ added in v0.2.1
type EchoSearchRequest struct { ScrollPager *fragments.ScrollPager // contains filtered or unexported fields }
func NewEchoSearchRequest ¶ added in v0.2.1
func NewEchoSearchRequest( r *http.Request, searchRequest *fragments.SearchRequest, searchService *elastic.SearchService, searchResult *elastic.SearchResult, ) *EchoSearchRequest
func (*EchoSearchRequest) HasEcho ¶ added in v0.2.1
func (e *EchoSearchRequest) HasEcho() bool
func (*EchoSearchRequest) RenderEcho ¶ added in v0.2.1
func (e *EchoSearchRequest) RenderEcho(w http.ResponseWriter) error
type OldBulkProcessor ¶ added in v0.1.8
type OldBulkProcessor struct {
// contains filtered or unexported fields
}
func NewOldBulkProcessor ¶ added in v0.1.8
func NewOldBulkProcessor() *OldBulkProcessor
func (OldBulkProcessor) Publish ¶ added in v0.1.8
func (bp OldBulkProcessor) Publish(ctx context.Context, msg ...*domainpb.IndexMessage) error
Click to show internal directories.
Click to hide internal directories.