mappingprovider

package
v0.64.1 Latest Latest
Warning

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

Go to latest
Published: Dec 25, 2025 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MappingProvider

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

func New

func New(
	filePath string,
	opts ...Option,
) (*MappingProvider, error)

func (*MappingProvider) GetMapping

func (p *MappingProvider) GetMapping() seq.Mapping

func (*MappingProvider) GetRawMapping

func (p *MappingProvider) GetRawMapping() *seq.RawMapping

func (*MappingProvider) WatchUpdates

func (p *MappingProvider) WatchUpdates(ctx context.Context)

WatchUpdates periodically reads the contents at filePath and when it detects changes it updates the mapping

type Option

type Option func(*MappingProvider)

func WithIndexAllFields

func WithIndexAllFields(enabled bool) Option

func WithMapping

func WithMapping(m seq.Mapping) Option

func WithUpdatePeriod

func WithUpdatePeriod(up time.Duration) Option

Jump to

Keyboard shortcuts

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