configs

package
v0.0.0-...-e7d4c05 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2025 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	AppName string               `json:"appName"`
	Serves  []container.Serve    `json:"serves"`
	Etcd    _etcd.EtcdConfig     `json:"etcd"`
	MongoDB _mongo.MongoDBConfig `json:"mongodb"`
	Log     struct {
		DB         string `json:"db"`
		Collection string `json:"collection"`
	} `json:"log"`
	Consistent struct {
		Hash struct {
			Type          string `json:"type"`
			WorkerNodeNum int    `json:"workerNodeNum"`
		} `json:"hash"`
	} `json:"consistent"`
}

func Conf

func Conf() *Config

Conf 直接获取conf

func SafeConf

func SafeConf() (*Config, error)

SafeConf 获取提示信息

Jump to

Keyboard shortcuts

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