indexer

package
v0.8.6 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2024 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config added in v0.6.0

type Config struct {
	Host   string
	ApiKey string `yaml:"apiKey"`
}

type IndexBatchData added in v0.8.0

type IndexBatchData struct {
	TotalIndexed int `json:"totalIndexed"`
	LastIndex    int `json:"lastIndex"`
}

type Indexer

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

Indexer helps sending news to the indexer service: https://github.com/encypher-studio/newsware-indexer

func New

func New(config Config) (Indexer, error)

func (Indexer) Index

func (i Indexer) Index(news *nwelastic.News) error

func (Indexer) Ping added in v0.7.0

func (i Indexer) Ping() error

Jump to

Keyboard shortcuts

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