config

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2024 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitOpenTelemetrySDK added in v0.8.0

func InitOpenTelemetrySDK(ctx context.Context, instanceID, APIToken string, isDev bool) (shutdown func(context.Context) error, err error)

Types

type Config

type Config struct {
	TwitchClientID          string
	TwitchClientSecret      string
	TwitchChatbotName       string
	TwitchChannelName       string
	CipherPassphrase        string
	TwitchOAuth2RedirectURI string
	DatabaseUsername        string
	DatabasePassword        string
	GrafanaCloudInstanceID  string
	GrafanaAPIToken         string
	OTELServiceName         string
	OTLPExporterEndpoint    string
}

func New

func New(isDevEnv bool) (*Config, error)

Jump to

Keyboard shortcuts

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