1
0
mirror of https://github.com/go-micro/go-micro.git synced 2025-06-24 22:26:54 +02:00

add events package (#2341)

* add events package

* update go version
This commit is contained in:
Asim Aslam
2021-11-08 08:52:39 +00:00
committed by GitHub
parent c5be9f560c
commit 0c2041e439
56 changed files with 982 additions and 72 deletions

View File

@ -4,8 +4,8 @@ import (
"errors"
"sync"
"go-micro.dev/v4/server"
"github.com/google/uuid"
"go-micro.dev/v4/server"
)
type MockServer struct {

View File

@ -4,6 +4,8 @@ import (
"bytes"
"sync"
"github.com/oxtoacart/bpool"
"github.com/pkg/errors"
"go-micro.dev/v4/codec"
raw "go-micro.dev/v4/codec/bytes"
"go-micro.dev/v4/codec/grpc"
@ -12,8 +14,6 @@ import (
"go-micro.dev/v4/codec/proto"
"go-micro.dev/v4/codec/protorpc"
"go-micro.dev/v4/transport"
"github.com/oxtoacart/bpool"
"github.com/pkg/errors"
)
type rpcCodec struct {

View File

@ -9,9 +9,9 @@ import (
"testing"
"time"
"github.com/golang/protobuf/proto"
"go-micro.dev/v4/codec/json"
protoCodec "go-micro.dev/v4/codec/proto"
"github.com/golang/protobuf/proto"
)
// protoStruct implements proto.Message

View File

@ -7,11 +7,11 @@ import (
"os/signal"
"time"
"github.com/google/uuid"
"go-micro.dev/v4/codec"
"go-micro.dev/v4/logger"
"go-micro.dev/v4/registry"
signalutil "go-micro.dev/v4/util/signal"
"github.com/google/uuid"
)
// Server is a simple micro server abstraction