Skip to content

Commit

Permalink
readme
Browse files Browse the repository at this point in the history
Signed-off-by: Cruvie <>
  • Loading branch information
Cruvie committed Oct 6, 2023
1 parent dd1f5f5 commit 589cc49
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
12 changes: 10 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,15 +76,15 @@ services:
- "2333:2333"
restart: unless-stopped
volumes:
- ./config/config.yml:/kk_etcd_go/config/config.yml
- ./config/config.yml:/kk_etcd_go/internal/config/config.yml

```
# SDK
we only provide `go` sdk now
```shell
go get github.com/cruvie/kk_etcd_go@latest
```
init and get config from etcd
## init and get config from etcd

`my_config` in etcd (yaml format)
```yaml
Expand Down Expand Up @@ -134,6 +134,14 @@ func InitEtcd() {
kk_etcd.GetConfig(configKey, &GlobalConfig)
}
```
## Register Http/gRPC Service
```
refer to https://github.com/cruvie/kk_etcd_go/blob/master/kk_etcd/kk_etcd_test.go
```
## GetServiceList
```
refer to https://github.com/cruvie/kk_etcd_go/blob/master/kk_etcd/kk_etcd_test.go
```

# Contribute

Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ description: Etcd UI
# pub.dev using `flutter pub publish`. This is preferred for private packages.
publish_to: 'none' # Remove this line if you wish to publish to pub.dev

version: 1.3.0
version: 1.3.1

environment:
sdk: '>=3.1.0'
Expand Down

0 comments on commit 589cc49

Please sign in to comment.