recordsources

package
v1.0.60 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Register

func Register(name string, factory Factory)

func StoreURL

func StoreURL(ctx context.Context, url string, f backends.FileStore) (string, int, error)

Types

type Factory

type Factory func() (Source, error)

type Record

type Record interface {
	SourceName() string
	SourceID() string
	ToCandidateRecord(*backends.Services) (*models.CandidateRecord, error)
}

type Source

type Source interface {
	GetRecords(context.Context, func(Record) error) error
}

func New

func New(name string) (Source, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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