conf

package
v0.4.4 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	HypixelAPIKey string
	DBNamespace   string
	JWTSecret     string
	BotPwd        string
	DBHost        string
	DBUser        string
	DBName        string
	DBPort        int
	DBPwd         string
	Port          int
}

func ReadConfig

func ReadConfig() *Config

func (*Config) ConnectDB

func (c *Config) ConnectDB() *surreal_wrap.DB

func (*Config) JWTConfig

func (c *Config) JWTConfig() *echojwt.Config

Jump to

Keyboard shortcuts

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