consul

package
v0.0.0-...-e4b97f8 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package consul @Author hubo 2024/9/26 14:06:00 register service to consul

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeRegisterService

func DeRegisterService(localConfig *config.ServiceLocalConfig) error

func LoadCfgFromConsul

func LoadCfgFromConsul[T config.IAppConfig](consulAddr, serviceName string) (*T, error)

LoadCfgFromConsul 从 consul 获取指定服务的配置

func RegisterService

func RegisterService(localConfig *config.ServiceLocalConfig) error

RegisterService 注册服务

Types

This section is empty.

Jump to

Keyboard shortcuts

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