conf

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

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

Go to latest
Published: Oct 1, 2023 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Conf

type Conf struct {
	Redis   *Redis   `yaml:"redis"`
	Mongodb *Mongodb `yaml:"mongodb"`
	Token   *Token   `yaml:"token"`
}
var Config *Conf

type Mongodb

type Mongodb struct {
	Host     string `yaml:"host"`
	Port     string `yaml:"port"`
	Username string `yaml:"username"`
	Password string `yaml:"password"`
}

type Redis

type Redis struct {
	Host     string `yaml:"host"`
	Port     int    `yaml:"port"`
	Username string `yaml:"username"`
	Password string `yaml:"password"`
	DbName   int    `yaml:"dbName"`
}

type Token

type Token struct {
	TokenSigningKey      string `yaml:"tokenSigningKey"`
	TokenExpiresDuration int    `yaml:"tokenExpiresDuration"`
	TokenRefreshDuration int    `yaml:"tokenRefreshDuration"`
}

Jump to

Keyboard shortcuts

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