configs

package
v1.0.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ServiceName = "tbot"

Functions

This section is empty.

Types

type Config

type Config struct {
	Telegram struct {
		Token string
	}
	Spotify struct {
		ClientID     string `mapstructure:"client_id"`
		ClientSecret string `mapstructure:"client_secret"`
	}
	MongoDB struct {
		Addr string
	}
	SqLite struct {
		DataSource string `mapstructure:"data_source"`
	}
	Logger struct {
		Level string
	}
}

func NewConfig

func NewConfig() *Config

func (*Config) Print

func (c *Config) Print() error

func (*Config) Read

func (c *Config) Read() error

Jump to

Keyboard shortcuts

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