conf

package
v0.0.0-...-6a1fd9b Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetBotId

func GetBotId() string

func GetBotToken

func GetBotToken() string

func GetBotUserId

func GetBotUserId() string

func GetModeName

func GetModeName(mode Mode) string

func GetTraqClientConf

func GetTraqClientConf() (string, bool)

func NewLogger

func NewLogger(mode Mode) (*zap.Logger, error)

Types

type Mode

type Mode int
const (
	ProdMode Mode = iota
	DevMode
)

func GetMode

func GetMode() Mode

type MongoDBConfig

type MongoDBConfig struct {
	Host         string
	DatabaseName string
	User         string
	Password     string
}

func GetMongoUri

func GetMongoUri() *MongoDBConfig

Jump to

Keyboard shortcuts

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