config

package
v0.0.0-...-314415d Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2024 License: Apache-2.0 Imports: 1 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 {
	Server   Server   `json:"server" yaml:"server" mapstructure:"server"`
	Nacos    Nacos    `json:"nacos" yaml:"nacos" mapstructure:"nacos"`
	Mysql    Mysql    `json:"mysql" yaml:"mysql" mapstructure:"mysql"`
	DingTalk DingTalk `json:"dingTalk" yaml:"dingTalk" mapstructure:"dingTalk"`
}

type DingTalk

type DingTalk struct {
	Webhook string `json:"web-hook" yaml:"web-hook" mapstructure:"web-hook"`
	Secret  string `json:"secret" yaml:"secret" mapstructure:"secret"`
}

type Mysql

type Mysql struct {
	Username string `json:"username" yaml:"username" mapstructure:"username"`
	Password string `json:"password" yaml:"password" mapstructure:"password"`
	Host     string `json:"host" yaml:"host" mapstructure:"host"`
	Port     int    `json:"port" yaml:"port" mapstructure:"port"`
	Database string `json:"database" yaml:"database" mapstructure:"database"`
}

func (Mysql) Dsn

func (m Mysql) Dsn() string

type Nacos

type Nacos struct {
	IpAddr      string `json:"ipAddr" yaml:"ipAddr" mapstructure:"ipAddr"`
	Port        uint64 `json:"port" yaml:"port" mapstructure:"port"`
	ContextPath string `json:"contextPath" yaml:"contextPath" mapstructure:"contextPath"`
	Group       string `json:"group" yaml:"group" mapstructure:"group"`
	DataId      string `json:"dataId" yaml:"dataId" mapstructure:"dataId"`
	NamespaceId string `json:"namespaceId" yaml:"namespaceId" mapstructure:"namespaceId"`
	UserName    string `json:"userName" yaml:"userName" mapstructure:"userName"`
	Password    string `json:"password" yaml:"password" mapstructure:"password"`
}

type Server

type Server struct {
	Host string `json:"host" yaml:"host" mapstructure:"host"`
	Port int    `json:"port" yaml:"port" mapstructure:"port"`
}

Jump to

Keyboard shortcuts

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