1
0
mirror of https://github.com/go-micro/go-micro.git synced 2025-11-23 21:44:41 +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

@@ -7,10 +7,10 @@ import (
"strings"
"time"
"go-micro.dev/v4/cmd"
"go-micro.dev/v4/config/source"
"github.com/imdario/mergo"
"github.com/urfave/cli/v2"
"go-micro.dev/v4/cmd"
"go-micro.dev/v4/config/source"
)
type cliSource struct {

View File

@@ -5,11 +5,11 @@ import (
"os"
"testing"
"github.com/urfave/cli/v2"
"go-micro.dev/v4"
"go-micro.dev/v4/cmd"
"go-micro.dev/v4/config"
"go-micro.dev/v4/config/source"
"github.com/urfave/cli/v2"
)
func TestCliSourceDefault(t *testing.T) {

View File

@@ -3,8 +3,8 @@ package cli
import (
"context"
"go-micro.dev/v4/config/source"
"github.com/urfave/cli/v2"
"go-micro.dev/v4/config/source"
)
type contextKey struct{}

View File

@@ -6,8 +6,8 @@ import (
"strings"
"time"
"go-micro.dev/v4/config/source"
"github.com/imdario/mergo"
"go-micro.dev/v4/config/source"
)
var (

View File

@@ -1,12 +1,13 @@
//+build !linux
//go:build !linux
// +build !linux
package file
import (
"os"
"go-micro.dev/v4/config/source"
"github.com/fsnotify/fsnotify"
"go-micro.dev/v4/config/source"
)
type watcher struct {

View File

@@ -1,12 +1,13 @@
//+build linux
//go:build linux
// +build linux
package file
import (
"os"
"go-micro.dev/v4/config/source"
"github.com/fsnotify/fsnotify"
"go-micro.dev/v4/config/source"
)
type watcher struct {

View File

@@ -3,8 +3,8 @@ package flag
import (
"errors"
"flag"
"go-micro.dev/v4/config/source"
"github.com/imdario/mergo"
"go-micro.dev/v4/config/source"
"strings"
"time"
)

View File

@@ -5,8 +5,8 @@ import (
"sync"
"time"
"go-micro.dev/v4/config/source"
"github.com/google/uuid"
"go-micro.dev/v4/config/source"
)
type memory struct {