config

package
v0.0.0-...-c234f5e Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2024 License: Apache-2.0 Imports: 0 Imported by: 0

README

Config

使用步骤

  1. dev 环境编译: go build -tags=dev -o pure-server
  2. k8s 环境编译: go build -tags=k8s -o pure-server

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Config = webookConfig{
	DB: DBConfig{
		DSN: "root:root@tcp(localhost:13316)/webook",
	},
	Redis: RedisConfig{
		Addr:     "localhost:6379",
		Password: "",
		DB:       0,
	},
}

Config dev 配置

Functions

This section is empty.

Types

type DBConfig

type DBConfig struct {
	DSN string
}

type RedisConfig

type RedisConfig struct {
	Addr     string
	DB       int
	Password string
}

Jump to

Keyboard shortcuts

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