shared

package
v0.22.3 Latest Latest
Warning

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

Go to latest
Published: May 1, 2024 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LoggerConfigFile

type LoggerConfigFile struct {
	Level string `mapstructure:"level" json:"level,omitempty" default:"debug"`

	// format can be "json" or "console"
	Format string `mapstructure:"format" json:"format,omitempty" default:"json"`
}

type OpenTelemetryConfigFile

type OpenTelemetryConfigFile struct {
	CollectorURL string `mapstructure:"collectorURL" json:"collectorURL,omitempty"`
	ServiceName  string `mapstructure:"serviceName" json:"serviceName,omitempty" default:"server"`
}

type TLSConfigFile

type TLSConfigFile struct {
	// TLSStrategy can be "tls", "mtls", or "none"
	TLSStrategy string `mapstructure:"tlsStrategy" json:"tlsStrategy,omitempty" default:"tls"`

	TLSCert       string `mapstructure:"tlsCert" json:"tlsCert,omitempty"`
	TLSCertFile   string `mapstructure:"tlsCertFile" json:"tlsCertFile,omitempty"`
	TLSKey        string `mapstructure:"tlsKey" json:"tlsKey,omitempty"`
	TLSKeyFile    string `mapstructure:"tlsKeyFile" json:"tlsKeyFile,omitempty"`
	TLSRootCA     string `mapstructure:"tlsRootCA" json:"tlsRootCA,omitempty"`
	TLSRootCAFile string `mapstructure:"tlsRootCAFile" json:"tlsRootCAFile,omitempty"`
}

Jump to

Keyboard shortcuts

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