handler

package
v0.0.0-...-403c8b4 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2022 License: Apache-2.0, MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IngestHandler

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

IngestHandler provides request handling functionality for the ingest server that is common to all protocols

func NewIngestHandler

func NewIngestHandler(indexer indexer.Interface, ingester *ingest.Ingester, registry *registry.Registry) *IngestHandler

func (*IngestHandler) Announce

func (h *IngestHandler) Announce(r io.Reader) error

func (*IngestHandler) DiscoverProvider

func (h *IngestHandler) DiscoverProvider(data []byte) error

func (*IngestHandler) IndexContent

func (h *IngestHandler) IndexContent(ctx context.Context, data []byte) error

IndexContent handles an IngestRequest

Returning error is the same as return v0.NewError(err, http.StatusBadRequest)

func (*IngestHandler) RegisterProvider

func (h *IngestHandler) RegisterProvider(ctx context.Context, data []byte) error

Jump to

Keyboard shortcuts

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