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 DateRange
- type Deleter
- type FileAPI
- type FileInfoResponse
- 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 MatchType
- type Option
- type Options
- type Queue
- type Record
- type RecordWriter
- type ReportAPI
- type ReportGenerator
- type ReportResponse
- type Request
- type Runner
- 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 {
// contains filtered or unexported fields
}
func NewAutoIndexer ¶
func NewAutoIndexer(queue Queue, options ...AutoIndexOption) AutoIndexer
type CdxResponse ¶
type FileInfoResponse ¶
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 // contains filtered or unexported fields }
func NewKafkaIndexer ¶
func NewKafkaIndexer(queue Queue, options ...KafkaIndexOption) KafkaIndexer
type Record ¶
type RecordWriter ¶
type ReportAPI ¶ added in v0.4.0
type ReportAPI interface { CreateReport(context.Context, Request) (*schema.Report, error) ListReports(context.Context, Request, chan<- ReportResponse) error GetReport(context.Context, string) (*schema.Report, error) CancelReport(context.Context, string) error DeleteReport(context.Context, string) error }
type ReportGenerator ¶ added in v0.4.0
type ReportResponse ¶ added in v0.4.0
type WorkQueue ¶
type WorkQueue struct {
// contains filtered or unexported fields
}
func NewWorkQueue ¶
Click to show internal directories.
Click to hide internal directories.