config

package
v0.0.0-...-efe2576 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2024 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
	}
	CacheConf     cache.CacheConf
	Elasticsearch ElasticsearchConf
	Redis         *redis.RedisConf
	LikeTimes     int64
}

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