config

package
v0.0.0-...-f8a11b1 Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Config = new(AppConfig)

Functions

This section is empty.

Types

type AppConfig

type AppConfig struct {
	DataSourceConfigMap DataSourceConfigMap `yaml:"datasource"`
}

type ConnectionConfig

type ConnectionConfig struct {
	Listen    bool     `yaml:"listen"`
	Host      string   `yaml:"host"`
	Username  string   `yaml:"username"`
	Password  string   `yaml:"password"`
	Database  string   `yaml:"database"`
	Addresses []string `yaml:"addresses"`
}

type DataSourceConfigMap

type DataSourceConfigMap struct {
	Mysql         map[string]ConnectionConfig `yaml:"mysql"`
	ElasticSearch map[string]ConnectionConfig `yaml:"elastic-search"`
}

Jump to

Keyboard shortcuts

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