Help us shape the future of Go! Take the 2026 Go Developer Survey

factory

package
v1.4.8 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2026 License: Apache-2.0 Imports: 12 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateStoreFromConfig

func CreateStoreFromConfig(storeConfig config.StorePluginConfig, configVersion string, pluginBinDir []string) (referrerstore.ReferrerStore, error)

the first element of pluginBinDir will be used as the plugin directory

func CreateStoresFromConfig

func CreateStoresFromConfig(storesConfig config.StoresConfig, defaultPluginPath string) ([]referrerstore.ReferrerStore, error)

CreateStoresFromConfig creates a stores from the provided configuration

func Register

func Register(name string, factory StoreFactory)

Types

type StoreFactory

type StoreFactory interface {
	Create(version string, storesConfig config.StorePluginConfig) (referrerstore.ReferrerStore, error)
}

StoreFactory is an interface that defines methods to create a store

Jump to

Keyboard shortcuts

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