Skip to content

Commit

Permalink
v5
Browse files Browse the repository at this point in the history
  • Loading branch information
asim committed Jun 6, 2024
1 parent 11eebae commit 6026888
Show file tree
Hide file tree
Showing 698 changed files with 354,930 additions and 127 deletions.
20 changes: 10 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ Contents of this repository:

- [v2 - github.com/micro/go-micro/v2](https://github.com/go-micro/plugins/tree/main/v2)
- [v3 - github.com/asim/go-micro/v3](https://github.com/go-micro/plugins/tree/main/v3)
- [v4 - go-micro.dev/v4](https://github.com/go-micro/plugins/tree/main/v4)
- [v5 - go-micro.dev/v5](https://github.com/go-micro/plugins/tree/main/v5)

## Usage

Expand All @@ -48,9 +48,9 @@ Import the plugins in a `plugins.go` file
package main

import (
_ "github.com/go-micro/plugins/v4/broker/rabbitmq"
_ "github.com/go-micro/plugins/v4/registry/kubernetes"
_ "github.com/go-micro/plugins/v4/transport/nats"
_ "github.com/go-micro/plugins/v5/broker/rabbitmq"
_ "github.com/go-micro/plugins/v5/registry/kubernetes"
_ "github.com/go-micro/plugins/v5/transport/nats"
)
```

Expand All @@ -60,7 +60,7 @@ Create your service and ensure you call `service.Init`
package main

import (
"go-micro.dev/v4"
"go-micro.dev/v5"
)

func main() {
Expand Down Expand Up @@ -105,8 +105,8 @@ Import and set as options when creating a new service

```go
import (
"go-micro.dev/v4"
"github.com/go-micro/plugins/v4/registry/kubernetes"
"go-micro.dev/v5"
"github.com/go-micro/plugins/v5/registry/kubernetes"
)

func main() {
Expand All @@ -133,9 +133,9 @@ Create file plugins.go
package main

import (
_ "github.com/go-micro/plugins/v4/broker/rabbitmq"
_ "github.com/go-micro/plugins/v4/registry/kubernetes"
_ "github.com/go-micro/plugins/v4/transport/nats"
_ "github.com/go-micro/plugins/v5/broker/rabbitmq"
_ "github.com/go-micro/plugins/v5/registry/kubernetes"
_ "github.com/go-micro/plugins/v5/transport/nats"
)
```

Expand Down
226 changes: 113 additions & 113 deletions go.work
Original file line number Diff line number Diff line change
@@ -1,117 +1,117 @@
go 1.21

use (
./v4/acme/certmagic
./v4/auth/jwt
./v4/broker/gocloud
./v4/broker/googlepubsub
./v4/broker/grpc
./v4/broker/http
./v4/broker/kafka
./v4/broker/memory
./v4/broker/mqtt
./v4/broker/nats
./v4/broker/nsq
./v4/broker/proxy
./v4/broker/rabbitmq
./v4/broker/redis
./v4/broker/segmentio
./v4/broker/snssqs
./v4/broker/sqs
./v4/broker/stan
./v4/broker/stomp
./v4/cache/redis
./v4/client/grpc
./v4/client/http
./v4/client/mock
./v4/client/mucp
./v4/codec/bsonrpc
./v4/codec/json-iterator
./v4/codec/jsonrpc2
./v4/codec/msgpackrpc
./v4/codec/segmentio
./v4/config/encoder/cue
./v4/config/encoder/hcl
./v4/config/encoder/toml
./v4/config/encoder/xml
./v4/config/encoder/yaml
./v4/config/source/configmap
./v4/config/source/consul
./v4/config/source/etcd
./v4/config/source/grpc
./v4/config/source/mucp
./v4/config/source/nacos
./v4/config/source/nats
./v4/config/source/pkger
./v4/config/source/runtimevar
./v4/config/source/url
./v4/config/source/vault
./v4/events/nats
./v4/events/natsjs
./v4/events/redis
./v4/logger/apex
./v4/logger/logrus
./v4/logger/windowseventlog
./v4/logger/zap
./v4/logger/zerolog
./v4/proxy/http
./v4/registry/cache
./v4/registry/consul
./v4/registry/etcd
./v4/registry/eureka
./v4/registry/gossip
./v4/registry/kubernetes
./v4/registry/mdns
./v4/registry/memory
./v4/registry/multi
./v4/registry/nacos
./v4/registry/nats
./v4/registry/proxy
./v4/registry/zookeeper
./v4/registry/polaris
./v4/selector/dns
./v4/selector/label
./v4/selector/registry
./v4/selector/shard
./v4/selector/static
./v4/server/grpc
./v4/server/http
./v4/server/mucp
./v4/store/cockroach
./v4/store/consul
./v4/store/file
./v4/store/memcached
./v4/store/memory
./v4/store/mysql
./v4/store/nats-js
./v4/store/nats-js-kv
./v4/store/redis
./v4/sync/consul
./v4/sync/etcd
./v4/sync/memory
./v4/transport/grpc
./v4/transport/http
./v4/transport/memory
./v4/transport/nats
./v4/transport/quic
./v4/transport/rabbitmq
./v4/transport/tcp
./v4/transport/utp
./v4/wrapper/breaker/gobreaker
./v4/wrapper/breaker/hystrix
./v4/wrapper/endpoint
./v4/wrapper/monitoring/prometheus
./v4/wrapper/monitoring/victoriametrics
./v4/wrapper/ratelimiter/ratelimit
./v4/wrapper/ratelimiter/uber
./v4/wrapper/select/roundrobin
./v4/wrapper/select/shard
./v4/wrapper/select/version
./v4/wrapper/service
./v4/wrapper/trace/awsxray
./v4/wrapper/trace/datadog
./v4/wrapper/trace/opencensus
./v4/wrapper/trace/opentelemetry
./v4/wrapper/trace/opentracing
./v4/wrapper/validator
./v5/acme/certmagic
./v5/auth/jwt
./v5/broker/gocloud
./v5/broker/googlepubsub
./v5/broker/grpc
./v5/broker/http
./v5/broker/kafka
./v5/broker/memory
./v5/broker/mqtt
./v5/broker/nats
./v5/broker/nsq
./v5/broker/proxy
./v5/broker/rabbitmq
./v5/broker/redis
./v5/broker/segmentio
./v5/broker/snssqs
./v5/broker/sqs
./v5/broker/stan
./v5/broker/stomp
./v5/cache/redis
./v5/client/grpc
./v5/client/http
./v5/client/mock
./v5/client/mucp
./v5/codec/bsonrpc
./v5/codec/json-iterator
./v5/codec/jsonrpc2
./v5/codec/msgpackrpc
./v5/codec/segmentio
./v5/config/encoder/cue
./v5/config/encoder/hcl
./v5/config/encoder/toml
./v5/config/encoder/xml
./v5/config/encoder/yaml
./v5/config/source/configmap
./v5/config/source/consul
./v5/config/source/etcd
./v5/config/source/grpc
./v5/config/source/mucp
./v5/config/source/nacos
./v5/config/source/nats
./v5/config/source/pkger
./v5/config/source/runtimevar
./v5/config/source/url
./v5/config/source/vault
./v5/events/nats
./v5/events/natsjs
./v5/events/redis
./v5/logger/apex
./v5/logger/logrus
./v5/logger/windowseventlog
./v5/logger/zap
./v5/logger/zerolog
./v5/proxy/http
./v5/registry/cache
./v5/registry/consul
./v5/registry/etcd
./v5/registry/eureka
./v5/registry/gossip
./v5/registry/kubernetes
./v5/registry/mdns
./v5/registry/memory
./v5/registry/multi
./v5/registry/nacos
./v5/registry/nats
./v5/registry/polaris
./v5/registry/proxy
./v5/registry/zookeeper
./v5/selector/dns
./v5/selector/label
./v5/selector/registry
./v5/selector/shard
./v5/selector/static
./v5/server/grpc
./v5/server/http
./v5/server/mucp
./v5/store/cockroach
./v5/store/consul
./v5/store/file
./v5/store/memcached
./v5/store/memory
./v5/store/mysql
./v5/store/nats-js
./v5/store/nats-js-kv
./v5/store/redis
./v5/sync/consul
./v5/sync/etcd
./v5/sync/memory
./v5/transport/grpc
./v5/transport/http
./v5/transport/memory
./v5/transport/nats
./v5/transport/quic
./v5/transport/rabbitmq
./v5/transport/tcp
./v5/transport/utp
./v5/wrapper/breaker/gobreaker
./v5/wrapper/breaker/hystrix
./v5/wrapper/endpoint
./v5/wrapper/monitoring/prometheus
./v5/wrapper/monitoring/victoriametrics
./v5/wrapper/ratelimiter/ratelimit
./v5/wrapper/ratelimiter/uber
./v5/wrapper/select/roundrobin
./v5/wrapper/select/shard
./v5/wrapper/select/version
./v5/wrapper/service
./v5/wrapper/trace/awsxray
./v5/wrapper/trace/datadog
./v5/wrapper/trace/opencensus
./v5/wrapper/trace/opentelemetry
./v5/wrapper/trace/opentracing
./v5/wrapper/validator
)
2 changes: 1 addition & 1 deletion scripts/fmt.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ fi

for d in $(find $version -name 'go.mod'); do
pushd $(dirname $d)
go mod tidy -go=1.16 && go mod tidy -go=1.17
go fmt
go mod tidy
popd
done
6 changes: 3 additions & 3 deletions scripts/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
# #
# Usage: #
# $ release.sh all #
# $ release.sh v4/broker/http #
# $ release.sh v4/broker/http,v4/broker/redis #
# $ release.sh v4/* #
# $ release.sh v5/broker/http #
# $ release.sh v5/broker/http,v5/broker/redis #
# $ release.sh v5/* #
# #
######################################################################################

Expand Down
Loading

0 comments on commit 6026888

Please sign in to comment.