config

package
v2.0.2 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2026 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// Providers represents this package's offering to the dependency manager.
	Providers = wire.NewSet(
		wire.FieldsOf(new(*Config),
			"Storage",
		),
	)
)

Functions

func RegisterStorageConfig

func RegisterStorageConfig(i do.Injector)

RegisterStorageConfig registers an *objectstorage.Config with the injector, extracted from the parent *Config. This mirrors the wire.FieldsOf pattern in wire.go. Prerequisite: *Config must be registered in the injector before calling this.

Types

type Config

type Config struct {
	Storage objectstorage.Config `envPrefix:"STORAGE_" json:"storageConfig"`
	Debug   bool                 `env:"DEBUG"          json:"debug"`
	// contains filtered or unexported fields
}

Config contains settings regarding search indices.

func (*Config) ValidateWithContext

func (cfg *Config) ValidateWithContext(ctx context.Context) error

ValidateWithContext validates a Config struct.

Jump to

Keyboard shortcuts

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