config

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package config provides ...

Package config provides ...

Index

Constants

This section is empty.

Variables

View Source
var (
	// Conf config instance
	Conf Config

	// ModeDev run mode as development
	ModeDev = "dev"
	// ModeProd run mode as production
	ModeProd = "prod"
	// WorkDir workspace dir
	WorkDir string
)

Functions

This section is empty.

Types

type CacheRedis added in v1.1.0

type CacheRedis struct {
	Host     string
	Password string
	DB       int
}

CacheRedis cache redis

type Config

type Config struct {
	RunMode  string
	AppName  string
	Database Database
	DemoApp  Mode
}

Config app config

type Database

type Database struct {
	Driver string
	Source string
}

Database sql database

type Mode

type Mode struct {
	Name       string
	EnableHTTP bool
	HTTPPort   int
	EnableGRPC bool
	GRPCPort   int
}

Mode run mode

Jump to

Keyboard shortcuts

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