Registry / networking / go-kratos-kratos-contrib-registry-etcd-v2

go-kratos-kratos-contrib-registry-etcd-v2

JSON →
library2.0.0-20240119085030-a556a2b53120gogounverified

Provides an etcd-based service registry and discovery implementation for the Kratos microservice framework.

go get github.com/go-kratos/kratos/contrib/registry/etcd/v2
INSTALL
IMPORT
SIG · GO-KRATOS-KRATOS-C
G
go-kratos-kratos-contrib-registry-etcd-v2
networkinggov2.0.0-20240119085030-a556a2b53120
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

etcd
github.com/go-kratos/kratos/contrib/registry/etcd/v2

Creates an etcd registry instance using an etcd client.

package main import ( "github.com/go-kratos/kratos/contrib/registry/etcd/v2" clientv3 "go.etcd.io/etcd/client/v3" ) func main() { cli, _ := clientv3.New(clientv3.Config{Endpoints: []string{"localhost:2379"}}) r := etcd.New(cli) _ = r }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
2.0.0-20240119085030-a556a2b53120latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
11 hits · last 30 days
node
10
OpenAI (training)
1
Resources
go-kratos-kratos-contrib-registry-etcd-v2 — go get go-kratos-kratos-contrib-registry-etcd-v2 · libregistry