modelresultfetcher

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetRegisteredModelResultFetcherInitFuncs

func GetRegisteredModelResultFetcherInitFuncs() map[string]ModelResultFetcherInitFunc

func RegisterModelResultFetcherInitFunc

func RegisterModelResultFetcherInitFunc(pluginName string, f ModelResultFetcherInitFunc)

Types

type DummyModelResultFetcher

type DummyModelResultFetcher struct{}

func (DummyModelResultFetcher) FetchModelResult

func (d DummyModelResultFetcher) FetchModelResult(ctx context.Context, metaReader metacache.MetaReader,
	metaWriter metacache.MetaWriter, metaServer *metaserver.MetaServer) error

type ModelResultFetcher

type ModelResultFetcher interface {
	FetchModelResult(ctx context.Context, metaReader metacache.MetaReader,
		metaWriter metacache.MetaWriter, metaServer *metaserver.MetaServer) error
}

func NewDummyModelResultFetcher

func NewDummyModelResultFetcher(fetcherName string, conf *config.Configuration, extraConf interface{},
	emitterPool metricspool.MetricsEmitterPool, metaServer *metaserver.MetaServer,
	metaCache metacache.MetaCache) (ModelResultFetcher, error)

type ModelResultFetcherInitFunc

type ModelResultFetcherInitFunc func(fetcherName string, conf *config.Configuration, extraConf interface{},
	emitterPool metricspool.MetricsEmitterPool, metaServer *metaserver.MetaServer,
	metaCache metacache.MetaCache) (ModelResultFetcher, error)

ModelResultFetcherInitFunc is used to initialize a particular init ModelResultFetcher

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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