config

package
v0.0.0-...-9fdc65e Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var OnChange func()

OnChange is called when a config change is detected, can be set during runtime

Functions

This section is empty.

Types

type Config

type Config struct {
	LogLevel string
	Http     struct {
		Port string
	}
	Twitch struct {
		User  string
		Oauth string
	}
	Mongo struct {
		ConnectionString string
		Database         string
		Collection       string
		Username         string
		Password         string
	}
	Nats struct {
		URL   string
		Topic struct {
			Api string
		}
	}
	Health struct {
		Enabled bool
		Port    string
	}
	Prometheus struct {
		Enabled bool
		Port    string
	}
}

func New

func New() *Config

Jump to

Keyboard shortcuts

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