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

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

@yz-yz-yz

Description

@yz-yz-yz

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)
}

}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions