Documentation ¶
Index ¶
- Constants
- func NewIndexer(w RecordWriter, options ...Option) func(string)
- type AutoIndexOption
- type AutoIndexOptions
- type AutoIndexer
- type Cdx
- type CdxAPI
- type CdxJ
- type CdxPb
- type CdxResponse
- type ClosestRequest
- type DateRange
- type FileAPI
- type FileResponse
- type Filter
- type IdAPI
- type IdResponse
- type Indexer
- type KafkaIndexOption
- func WithBrokers(brokers []string) KafkaIndexOption
- func WithGroupID(groupID string) KafkaIndexOption
- func WithMaxBytes(maxBytes int) KafkaIndexOption
- func WithMaxWait(maxWait time.Duration) KafkaIndexOption
- func WithMinBytes(minBytes int) KafkaIndexOption
- func WithTopic(topic string) KafkaIndexOption
- type KafkaIndexer
- type Option
- type Options
- type Queue
- type Record
- type RecordWriter
- type Runner
- type SearchRequest
- type Sort
- type Toc
- type WorkQueue
- type Worker
Constants ¶
View Source
const AlreadyIndexedError indexError = "already indexed"
Variables ¶
This section is empty.
Functions ¶
func NewIndexer ¶
func NewIndexer(w RecordWriter, options ...Option) func(string)
Types ¶
type AutoIndexOption ¶
type AutoIndexOption func(*AutoIndexOptions)
func WithExcludeDirs ¶
func WithExcludeDirs(res ...*regexp.Regexp) AutoIndexOption
func WithMaxDepth ¶
func WithMaxDepth(depth int) AutoIndexOption
func WithPaths ¶
func WithPaths(paths []string) AutoIndexOption
type AutoIndexOptions ¶
type AutoIndexer ¶
type AutoIndexer struct { Queue // contains filtered or unexported fields }
func NewAutoIndexer ¶
func NewAutoIndexer(s Queue, options ...AutoIndexOption) AutoIndexer
type CdxAPI ¶
type CdxAPI interface { List(context.Context, int, chan<- CdxResponse) error Search(context.Context, SearchRequest, chan<- CdxResponse) error Closest(context.Context, ClosestRequest, chan<- CdxResponse) error }
type CdxResponse ¶
type ClosestRequest ¶
type FileResponse ¶
type IdResponse ¶
type KafkaIndexOption ¶
type KafkaIndexOption func(options *kafka.ReaderConfig)
func WithBrokers ¶
func WithBrokers(brokers []string) KafkaIndexOption
func WithGroupID ¶
func WithGroupID(groupID string) KafkaIndexOption
func WithMaxBytes ¶
func WithMaxBytes(maxBytes int) KafkaIndexOption
func WithMaxWait ¶
func WithMaxWait(maxWait time.Duration) KafkaIndexOption
func WithMinBytes ¶
func WithMinBytes(minBytes int) KafkaIndexOption
func WithTopic ¶
func WithTopic(topic string) KafkaIndexOption
type KafkaIndexer ¶
type KafkaIndexer struct { kafka.ReaderConfig Queue }
func NewKafkaIndexer ¶
func NewKafkaIndexer(q Queue, options ...KafkaIndexOption) KafkaIndexer
type RecordWriter ¶
type SearchRequest ¶
type WorkQueue ¶
type WorkQueue struct {
// contains filtered or unexported fields
}
func NewWorkQueue ¶
Click to show internal directories.
Click to hide internal directories.