nacos

package
v0.4.10 Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2024 License: MIT Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var BaseWebConfigVal = &BaseWebConfig{}

Functions

func AddListen

func AddListen(configs ...interface{})

func BuildConfigClient added in v0.1.17

func BuildConfigClient() config_client.IConfigClient

func BuildNamingClient added in v0.1.17

func BuildNamingClient() naming_client.INamingClient

func GetAllAppIns added in v0.2.11

func GetAllAppIns(serviceName string) ([]string, error)

func GetAllAppInsCallUrl added in v0.2.11

func GetAllAppInsCallUrl(path string) ([]string, error)

func GetAppIns

func GetAppIns(serviceName string) (string, error)

func GetAppInsCallUrl added in v0.1.2

func GetAppInsCallUrl(path string) (string, error)

func GetCronManage added in v0.3.18

func GetCronManage() *cron.Cron

func GetNamingClient

func GetNamingClient() naming_client.INamingClient

func GracefulShutdown added in v0.3.16

func GracefulShutdown()

GracefulShutdown 优雅关闭

func InitNacos

func InitNacos()

func LoadConfig

func LoadConfig(out interface{})

func LoadConfigOld added in v0.3.11

func LoadConfigOld(out interface{})

Types

type BaseWebConfig

type BaseWebConfig struct {
	ServerConfig WebServerConfig   `yaml:"server"`
	AppEnv       string            `yaml:"app-env"`  //发布环境
	AppSign      map[string]string `yaml:"app-sign"` //应用间秘钥
	AppName      string            //应用名
}

type WebServerConfig

type WebServerConfig struct {
	Port         string `yaml:"port"`
	CookieDomain string `yaml:"cookie-domain"`
}

Jump to

Keyboard shortcuts

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