conf

package
v0.0.0-...-f2f1574 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitConfig

func InitConfig(c *Config)

Types

type App

type App struct {
	Name             string
	Env              string
	RegisterTTL      int
	RegisterInterval int
	Version          string
	Endpoint         string
}

type Config

type Config struct {
	App   App
	MySQL MySQL
	Redis Redis
	NSQ   NSQ
}

type MySQL

type MySQL struct {
	Host   string
	Port   int
	DbName string
	User   string
	Pass   string
}

type NSQ

type NSQ struct {
	Topic   string
	Channel string
	Addr    string
}

type Redis

type Redis struct {
	Host     string
	Port     int
	Password string
	DB       int
}

Jump to

Keyboard shortcuts

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