config

package
v0.0.0-...-8bdb74e Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ApiConfig

type ApiConfig struct {
	Host string
	Port string
}

type Config

type Config struct {
	*DbConfig
	*ApiConfig
	*RedisConfig
}

func NewConfig

func NewConfig() (*Config, error)

func (*Config) ReadDbConfig

func (c *Config) ReadDbConfig() error

init db

func (*Config) ReadRedisConfig

func (c *Config) ReadRedisConfig() error

type DbConfig

type DbConfig struct {
	Host     string
	Port     string
	Username string
	Password string
	DBName   string
	DBDriver string
}

type RedisConfig

type RedisConfig struct {
	Host     string
	Password string
}

Jump to

Keyboard shortcuts

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