config

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2022 License: MIT Imports: 3 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 {
	Debug bool  `yaml:"debug"`
	Http  Http  `yaml:"http"`
	Mysql Mysql `yaml:"mysql"`
	Redis Redis `yaml:"redis"`
	Kafka Kafka `yaml:"kafka"`
}

func Phase

func Phase() (*Config, error)

type Http

type Http struct {
	Host string `yaml:"host"`
	Port string `yaml:"port"`
}

type Kafka

type Kafka struct {
	Enable  bool     `yaml:"enable"`
	Brokers []string `yaml:"brokers"`
	Topic   string   `yaml:"topic"`
}

type Mysql

type Mysql struct {
	User     string `yaml:"user"`
	Host     string `yaml:"host"`
	Port     string `yaml:"port"`
	Password string `yaml:"password"`
	Database string `yaml:"database"`
}

type Redis

type Redis struct {
	Host     string `yaml:"host"`
	Port     string `yaml:"port"`
	Database int    `yaml:"database"`
	Password string `yaml:"password"`
	Enable   int    `yaml:"enable"`
}

Jump to

Keyboard shortcuts

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