Skip to content
This repository has been archived by the owner on Jul 4, 2024. It is now read-only.

怎么访问 注册在etcd的服务 #5

Open
yz-yz-yz opened this issue May 31, 2024 · 0 comments
Open

怎么访问 注册在etcd的服务 #5

yz-yz-yz opened this issue May 31, 2024 · 0 comments

Comments

@yz-yz-yz
Copy link

func main() {

//我的服务通过etcd注册的,这里怎么集成etcd呢?
ctx, cancel := context.WithCancel(context.Background())
defer cancel()

srv := api.NewApi()

if err := srv.Run(ctx); err != nil {
	log.Fatal(err)
}

}

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant