Documentation ¶
Overview ¶
package producer provides interfaces used to populate a finding aid where "populate" means updating a data store with information mapping a Who's On First ID to its corresponding repository name.
Index ¶
- func RegisterProducer(ctx context.Context, scheme string, init_func ProducerInitializationFunc) error
- type CSVProducer
- type DocstoreProducer
- type MultiProducer
- type NullProducer
- type Producer
- func NewCSVProducer(ctx context.Context, uri string) (Producer, error)
- func NewDocstoreProducer(ctx context.Context, uri string) (Producer, error)
- func NewMultiProducer(ctx context.Context, uri string) (Producer, error)
- func NewNullProducer(ctx context.Context, uri string) (Producer, error)
- func NewProducer(ctx context.Context, uri string) (Producer, error)
- func NewProtobufProducer(ctx context.Context, uri string) (Producer, error)
- func NewSQLProducer(ctx context.Context, uri string) (Producer, error)
- func NewStdoutProducer(ctx context.Context, uri string) (Producer, error)
- type ProducerInitializationFunc
- type ProtobufProducer
- type SQLProducer
- type StdoutProducer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterProducer ¶
func RegisterProducer(ctx context.Context, scheme string, init_func ProducerInitializationFunc) error
Types ¶
type CSVProducer ¶
type CSVProducer struct { Producer // contains filtered or unexported fields }
func (*CSVProducer) PopulateWithIterator ¶
type DocstoreProducer ¶ added in v2.1.0
type DocstoreProducer struct { Producer // contains filtered or unexported fields }
func (*DocstoreProducer) Close ¶ added in v2.1.0
func (p *DocstoreProducer) Close(ctx context.Context) error
func (*DocstoreProducer) PopulateWithIterator ¶ added in v2.1.0
type MultiProducer ¶ added in v2.2.0
type MultiProducer struct { Producer // contains filtered or unexported fields }
func (*MultiProducer) Close ¶ added in v2.2.0
func (p *MultiProducer) Close(ctx context.Context) error
func (*MultiProducer) PopulateWithIterator ¶ added in v2.2.0
type NullProducer ¶ added in v2.2.0
type NullProducer struct {
Producer
}
func (*NullProducer) Close ¶ added in v2.2.0
func (p *NullProducer) Close(ctx context.Context) error
func (*NullProducer) PopulateWithIterator ¶ added in v2.2.0
type Producer ¶
type Producer interface { // PopulateWithIterator will crawl one or more paths with a `whosonfirst/go-whosonfirst-iterate/v2` iterator instance and populate a finding aid with each record encountered. PopulateWithIterator(context.Context, timings.Monitor, string, ...string) error Close(context.Context) error }
Producer provides an interfaces used to populate a finding aid where "populate" means updating a data store with information mapping a Who's On First ID to its corresponding repository name.
func NewDocstoreProducer ¶ added in v2.1.0
func NewMultiProducer ¶ added in v2.2.0
func NewNullProducer ¶ added in v2.2.0
func NewProtobufProducer ¶
type ProtobufProducer ¶
type ProtobufProducer struct { Producer // contains filtered or unexported fields }
func (*ProtobufProducer) PopulateWithIterator ¶
type SQLProducer ¶
type SQLProducer struct { Producer // contains filtered or unexported fields }
func (*SQLProducer) PopulateWithIterator ¶
type StdoutProducer ¶ added in v2.2.0
type StdoutProducer struct {
Producer
}
func (*StdoutProducer) Close ¶ added in v2.2.0
func (p *StdoutProducer) Close(ctx context.Context) error
func (*StdoutProducer) PopulateWithIterator ¶ added in v2.2.0
Source Files ¶
Click to show internal directories.
Click to hide internal directories.