config

package
v0.0.0-...-31263be Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

* * Generated by go-doudou v2.0.4. * You can edit it as your need.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BizConfig

type BizConfig struct {
	AdaptorTimeout             time.Duration `split_words:"true"`
	AdaptorVerbose             bool          `split_words:"true"`
	AdaptorInfluxAddr          string        `split_words:"true"`
	AdaptorInfluxUsername      string        `split_words:"true"`
	AdaptorInfluxPassword      string        `split_words:"true"`
	AdaptorInfluxClientTimeout time.Duration `split_words:"true"`
	AdaptorInfluxDatabase      string        `split_words:"true"`
}

type Config

type Config struct {
	DbConf  DbConfig
	BizConf BizConfig
}

func LoadFromEnv

func LoadFromEnv() *Config

type DbConfig

type DbConfig struct {
	Driver  string `default:"mysql"`
	Host    string `default:"localhost"`
	Port    string `default:"3306"`
	User    string
	Passwd  string
	Schema  string
	Charset string `default:"utf8mb4"`
}

Jump to

Keyboard shortcuts

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