config

package
v1.2.25 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2023 License: GPL-2.0 Imports: 5 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 {
	service.ServiceConf
	ListenOn string
	Mongo    struct {
		URL string
		DB  string
	}
	Cache         cache.CacheConf
	Elasticsearch ElasticsearchConf
	Redis         *redis.RedisConf
	GetFishTimes  int64
	RocketMq      *struct {
		URL       []string
		Retry     int
		GroupName string
	}
}

func NewConfig

func NewConfig() (*Config, error)

type ElasticsearchConf

type ElasticsearchConf struct {
	Addresses []string
	Username  string
	Password  string
}

Jump to

Keyboard shortcuts

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