source

package
v1.19.14 Latest Latest
Warning

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

Go to latest
Published: May 24, 2022 License: Unlicense Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNoConfigurator = errors.New("no configurator")

ErrNoConfigurator is defined in the config.

View Source
var (
	// Module for fx.
	Module = fx.Options(
		fx.Provide(opentracing.NewTracer),
		fx.Provide(NewConfigurator),
	)
)

Functions

func NewConfigurator

func NewConfigurator(params ConfiguratorParams) (configurator.Configurator, error)

NewConfigurator for source.

Types

type Config

type Config struct {
	Type   string        `yaml:"type"`
	Git    git.Config    `yaml:"git"`
	Folder folder.Config `yaml:"folder"`
}

Config for source.

func (*Config) IsFolder

func (c *Config) IsFolder() bool

IsFolder configured.

func (*Config) IsGit

func (c *Config) IsGit() bool

IsGit configured.

type ConfiguratorParams added in v1.16.0

type ConfiguratorParams struct {
	fx.In

	Config *Config
	Tracer opentracing.Tracer
}

ConfiguratorParams for source.

Directories

Path Synopsis
git

Jump to

Keyboard shortcuts

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