File: env_injector_option.go

package info (click to toggle)
golang-gitlab-gitlab-org-labkit 1.17.0-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,092 kB
  • sloc: sh: 210; javascript: 49; makefile: 4
file content (15 lines) | stat: -rw-r--r-- 326 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
package tracing

type envInjectorConfig struct{}

// EnvInjectorOption will configure an environment injector.
type EnvInjectorOption func(*envInjectorConfig)

func applyEnvInjectorOptions(opts []EnvInjectorOption) envInjectorConfig {
	config := envInjectorConfig{}
	for _, v := range opts {
		v(&config)
	}

	return config
}