regen files with never protoc (#6)

* regen files with never protoc
* rewrite import path

Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
This commit is contained in:
2020-08-19 17:47:17 +03:00
committed by GitHub
parent 7a407d5792
commit 06136312bb
357 changed files with 8755 additions and 3310 deletions

View File

@@ -4,9 +4,9 @@ package config
import (
"context"
"github.com/micro/go-micro/v3/config/loader"
"github.com/micro/go-micro/v3/config/reader"
"github.com/micro/go-micro/v3/config/source"
"github.com/unistack-org/micro/v3/config/loader"
"github.com/unistack-org/micro/v3/config/reader"
"github.com/unistack-org/micro/v3/config/source"
)
// Config is an interface abstraction for dynamic configuration

View File

@@ -5,11 +5,11 @@ import (
"sync"
"time"
"github.com/micro/go-micro/v3/config/loader"
"github.com/micro/go-micro/v3/config/loader/memory"
"github.com/micro/go-micro/v3/config/reader"
"github.com/micro/go-micro/v3/config/reader/json"
"github.com/micro/go-micro/v3/config/source"
"github.com/unistack-org/micro/v3/config/loader"
"github.com/unistack-org/micro/v3/config/loader/memory"
"github.com/unistack-org/micro/v3/config/reader"
"github.com/unistack-org/micro/v3/config/reader/json"
"github.com/unistack-org/micro/v3/config/source"
)
type config struct {

View File

@@ -9,10 +9,10 @@ import (
"testing"
"time"
"github.com/micro/go-micro/v3/config/source"
"github.com/micro/go-micro/v3/config/source/env"
"github.com/micro/go-micro/v3/config/source/file"
"github.com/micro/go-micro/v3/config/source/memory"
"github.com/unistack-org/micro/v3/config/source"
"github.com/unistack-org/micro/v3/config/source/env"
"github.com/unistack-org/micro/v3/config/source/file"
"github.com/unistack-org/micro/v3/config/source/memory"
)
func createFileForIssue18(t *testing.T, content string) *os.File {

View File

@@ -4,7 +4,7 @@ import (
"encoding/json"
"github.com/hashicorp/hcl"
"github.com/micro/go-micro/v3/config/encoder"
"github.com/unistack-org/micro/v3/config/encoder"
)
type hclEncoder struct{}

View File

@@ -3,7 +3,7 @@ package json
import (
"encoding/json"
"github.com/micro/go-micro/v3/config/encoder"
"github.com/unistack-org/micro/v3/config/encoder"
)
type jsonEncoder struct{}

View File

@@ -4,7 +4,7 @@ import (
"bytes"
"github.com/BurntSushi/toml"
"github.com/micro/go-micro/v3/config/encoder"
"github.com/unistack-org/micro/v3/config/encoder"
)
type tomlEncoder struct{}

View File

@@ -3,7 +3,7 @@ package xml
import (
"encoding/xml"
"github.com/micro/go-micro/v3/config/encoder"
"github.com/unistack-org/micro/v3/config/encoder"
)
type xmlEncoder struct{}

View File

@@ -2,7 +2,7 @@ package yaml
import (
"github.com/ghodss/yaml"
"github.com/micro/go-micro/v3/config/encoder"
"github.com/unistack-org/micro/v3/config/encoder"
)
type yamlEncoder struct{}

View File

@@ -4,8 +4,8 @@ package loader
import (
"context"
"github.com/micro/go-micro/v3/config/reader"
"github.com/micro/go-micro/v3/config/source"
"github.com/unistack-org/micro/v3/config/reader"
"github.com/unistack-org/micro/v3/config/source"
)
// Loader manages loading sources

View File

@@ -9,10 +9,10 @@ import (
"sync"
"time"
"github.com/micro/go-micro/v3/config/loader"
"github.com/micro/go-micro/v3/config/reader"
"github.com/micro/go-micro/v3/config/reader/json"
"github.com/micro/go-micro/v3/config/source"
"github.com/unistack-org/micro/v3/config/loader"
"github.com/unistack-org/micro/v3/config/reader"
"github.com/unistack-org/micro/v3/config/reader/json"
"github.com/unistack-org/micro/v3/config/source"
)
type memory struct {

View File

@@ -1,9 +1,9 @@
package memory
import (
"github.com/micro/go-micro/v3/config/loader"
"github.com/micro/go-micro/v3/config/reader"
"github.com/micro/go-micro/v3/config/source"
"github.com/unistack-org/micro/v3/config/loader"
"github.com/unistack-org/micro/v3/config/reader"
"github.com/unistack-org/micro/v3/config/source"
)
// WithSource appends a source to list of sources

View File

@@ -1,9 +1,9 @@
package config
import (
"github.com/micro/go-micro/v3/config/loader"
"github.com/micro/go-micro/v3/config/reader"
"github.com/micro/go-micro/v3/config/source"
"github.com/unistack-org/micro/v3/config/loader"
"github.com/unistack-org/micro/v3/config/reader"
"github.com/unistack-org/micro/v3/config/source"
)
// WithLoader sets the loader for manager config

View File

@@ -5,10 +5,10 @@ import (
"time"
"github.com/imdario/mergo"
"github.com/micro/go-micro/v3/config/encoder"
"github.com/micro/go-micro/v3/config/encoder/json"
"github.com/micro/go-micro/v3/config/reader"
"github.com/micro/go-micro/v3/config/source"
"github.com/unistack-org/micro/v3/config/encoder"
"github.com/unistack-org/micro/v3/config/encoder/json"
"github.com/unistack-org/micro/v3/config/reader"
"github.com/unistack-org/micro/v3/config/source"
)
type jsonReader struct {

View File

@@ -3,8 +3,8 @@ package json
import (
"testing"
"github.com/micro/go-micro/v3/config/reader"
"github.com/micro/go-micro/v3/config/source"
"github.com/unistack-org/micro/v3/config/reader"
"github.com/unistack-org/micro/v3/config/source"
)
func TestReader(t *testing.T) {

View File

@@ -8,8 +8,8 @@ import (
"time"
simple "github.com/bitly/go-simplejson"
"github.com/micro/go-micro/v3/config/reader"
"github.com/micro/go-micro/v3/config/source"
"github.com/unistack-org/micro/v3/config/reader"
"github.com/unistack-org/micro/v3/config/source"
)
type jsonValues struct {

View File

@@ -4,8 +4,8 @@ import (
"reflect"
"testing"
"github.com/micro/go-micro/v3/config/reader"
"github.com/micro/go-micro/v3/config/source"
"github.com/unistack-org/micro/v3/config/reader"
"github.com/unistack-org/micro/v3/config/source"
)
func TestValues(t *testing.T) {

View File

@@ -1,12 +1,12 @@
package reader
import (
"github.com/micro/go-micro/v3/config/encoder"
"github.com/micro/go-micro/v3/config/encoder/hcl"
"github.com/micro/go-micro/v3/config/encoder/json"
"github.com/micro/go-micro/v3/config/encoder/toml"
"github.com/micro/go-micro/v3/config/encoder/xml"
"github.com/micro/go-micro/v3/config/encoder/yaml"
"github.com/unistack-org/micro/v3/config/encoder"
"github.com/unistack-org/micro/v3/config/encoder/hcl"
"github.com/unistack-org/micro/v3/config/encoder/json"
"github.com/unistack-org/micro/v3/config/encoder/toml"
"github.com/unistack-org/micro/v3/config/encoder/xml"
"github.com/unistack-org/micro/v3/config/encoder/yaml"
)
type Options struct {

View File

@@ -4,7 +4,7 @@ package reader
import (
"time"
"github.com/micro/go-micro/v3/config/source"
"github.com/unistack-org/micro/v3/config/source"
)
// Reader is an interface for merging changesets

View File

@@ -7,7 +7,7 @@ import (
"time"
"github.com/imdario/mergo"
"github.com/micro/go-micro/v3/config/source"
"github.com/unistack-org/micro/v3/config/source"
)
var (

View File

@@ -6,7 +6,7 @@ import (
"testing"
"time"
"github.com/micro/go-micro/v3/config/source"
"github.com/unistack-org/micro/v3/config/source"
)
func TestEnv_Read(t *testing.T) {

View File

@@ -5,7 +5,7 @@ import (
"strings"
"github.com/micro/go-micro/v3/config/source"
"github.com/unistack-org/micro/v3/config/source"
)
type strippedPrefixKey struct{}

View File

@@ -1,7 +1,7 @@
package env
import (
"github.com/micro/go-micro/v3/config/source"
"github.com/unistack-org/micro/v3/config/source"
)
type watcher struct {

View File

@@ -8,7 +8,7 @@ import (
cetcd "github.com/coreos/etcd/clientv3"
"github.com/coreos/etcd/mvcc/mvccpb"
"github.com/micro/go-micro/v3/config/source"
"github.com/unistack-org/micro/v3/config/source"
)
// Currently a single etcd reader

View File

@@ -4,7 +4,7 @@ import (
"context"
"time"
"github.com/micro/go-micro/v3/config/source"
"github.com/unistack-org/micro/v3/config/source"
)
type addressKey struct{}

View File

@@ -5,7 +5,7 @@ import (
"github.com/coreos/etcd/clientv3"
"github.com/coreos/etcd/mvcc/mvccpb"
"github.com/micro/go-micro/v3/config/encoder"
"github.com/unistack-org/micro/v3/config/encoder"
)
func makeEvMap(e encoder.Encoder, data map[string]interface{}, kv []*clientv3.Event, stripPrefix string) map[string]interface{} {

View File

@@ -7,7 +7,7 @@ import (
"time"
cetcd "github.com/coreos/etcd/clientv3"
"github.com/micro/go-micro/v3/config/source"
"github.com/unistack-org/micro/v3/config/source"
)
type watcher struct {

View File

@@ -5,7 +5,7 @@ import (
"io/ioutil"
"os"
"github.com/micro/go-micro/v3/config/source"
"github.com/unistack-org/micro/v3/config/source"
)
type file struct {

View File

@@ -7,8 +7,8 @@ import (
"testing"
"time"
"github.com/micro/go-micro/v3/config"
"github.com/micro/go-micro/v3/config/source/file"
"github.com/unistack-org/micro/v3/config"
"github.com/unistack-org/micro/v3/config/source/file"
)
func TestConfig(t *testing.T) {

View File

@@ -3,7 +3,7 @@ package file
import (
"strings"
"github.com/micro/go-micro/v3/config/encoder"
"github.com/unistack-org/micro/v3/config/encoder"
)
func format(p string, e encoder.Encoder) string {

View File

@@ -3,7 +3,7 @@ package file
import (
"testing"
"github.com/micro/go-micro/v3/config/source"
"github.com/unistack-org/micro/v3/config/source"
)
func TestFormat(t *testing.T) {

View File

@@ -3,7 +3,7 @@ package file
import (
"context"
"github.com/micro/go-micro/v3/config/source"
"github.com/unistack-org/micro/v3/config/source"
)
type filePathKey struct{}

View File

@@ -6,7 +6,7 @@ import (
"os"
"github.com/fsnotify/fsnotify"
"github.com/micro/go-micro/v3/config/source"
"github.com/unistack-org/micro/v3/config/source"
)
type watcher struct {

View File

@@ -7,7 +7,7 @@ import (
"reflect"
"github.com/fsnotify/fsnotify"
"github.com/micro/go-micro/v3/config/source"
"github.com/unistack-org/micro/v3/config/source"
)
type watcher struct {

View File

@@ -4,7 +4,7 @@ import (
"errors"
"flag"
"github.com/imdario/mergo"
"github.com/micro/go-micro/v3/config/source"
"github.com/unistack-org/micro/v3/config/source"
"strings"
"time"
)

View File

@@ -3,7 +3,7 @@ package flag
import (
"context"
"github.com/micro/go-micro/v3/config/source"
"github.com/unistack-org/micro/v3/config/source"
)
type includeUnsetKey struct{}

View File

@@ -6,7 +6,7 @@ import (
"time"
"github.com/google/uuid"
"github.com/micro/go-micro/v3/config/source"
"github.com/unistack-org/micro/v3/config/source"
)
type memory struct {

View File

@@ -3,7 +3,7 @@ package memory
import (
"context"
"github.com/micro/go-micro/v3/config/source"
"github.com/unistack-org/micro/v3/config/source"
)
type changeSetKey struct{}

View File

@@ -1,7 +1,7 @@
package memory
import (
"github.com/micro/go-micro/v3/config/source"
"github.com/unistack-org/micro/v3/config/source"
)
type watcher struct {

View File

@@ -3,9 +3,9 @@ package source
import (
"context"
"github.com/micro/go-micro/v3/client"
"github.com/micro/go-micro/v3/config/encoder"
"github.com/micro/go-micro/v3/config/encoder/json"
"github.com/unistack-org/micro/v3/client"
"github.com/unistack-org/micro/v3/config/encoder"
"github.com/unistack-org/micro/v3/config/encoder/json"
)
type Options struct {

View File

@@ -3,7 +3,7 @@ package config
import (
"time"
"github.com/micro/go-micro/v3/config/reader"
"github.com/unistack-org/micro/v3/config/reader"
)
type value struct{}