Skip to content

Commit

Permalink
Swich repo to version v3.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
levichevdmitry committed Jan 6, 2020
1 parent 630d934 commit a000500
Show file tree
Hide file tree
Showing 23 changed files with 84 additions and 65 deletions.
2 changes: 1 addition & 1 deletion Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ The default container factory provides generic functionality on-demand, such as

Quick Links:

* [Downloads](https://github.com/pip-services3-go/pip-services3-container-go.git)
* [Downloads](https://github.com/pip-services3-go/pip-services3-container-go/blob/master/docs/Downloads.md)
* [API Reference](https://godoc.org/github.com/pip-services3-go/pip-services3-container-go/)
* [Building and Testing](https://github.com/pip-services3-go/pip-services3-container-go/blob/master/docs/Development.md)
* [Contributing](https://github.com/pip-services3-go/pip-services3-container-go/blob/master/docs/Development.md#contrib)
Expand Down
18 changes: 9 additions & 9 deletions build/DefaultContainerFactory.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@ package build
Creates default container components (loggers, counters, caches, locks, etc.) by their descriptors.
*/
import (
"github.com/pip-services3-go/pip-services3-components-go/auth"
cbuild "github.com/pip-services3-go/pip-services3-components-go/build"
"github.com/pip-services3-go/pip-services3-components-go/cache"
"github.com/pip-services3-go/pip-services3-components-go/config"
"github.com/pip-services3-go/pip-services3-components-go/connect"
"github.com/pip-services3-go/pip-services3-components-go/count"
"github.com/pip-services3-go/pip-services3-components-go/info"
"github.com/pip-services3-go/pip-services3-components-go/log"
"github.com/pip-services3-go/pip-services3-components-go/test"
"github.com/pip-services3-go/pip-services3-components-go/v3/auth"
cbuild "github.com/pip-services3-go/pip-services3-components-go/v3/build"
"github.com/pip-services3-go/pip-services3-components-go/v3/cache"
"github.com/pip-services3-go/pip-services3-components-go/v3/config"
"github.com/pip-services3-go/pip-services3-components-go/v3/connect"
"github.com/pip-services3-go/pip-services3-components-go/v3/count"
"github.com/pip-services3-go/pip-services3-components-go/v3/info"
"github.com/pip-services3-go/pip-services3-components-go/v3/log"
"github.com/pip-services3-go/pip-services3-components-go/v3/test"
)

// Create a new instance of the factory and sets nested factories.
Expand Down
8 changes: 4 additions & 4 deletions config/ComponentConfig.go
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
package config

import (
"github.com/pip-services3-go/pip-services3-commons-go/config"
"github.com/pip-services3-go/pip-services3-commons-go/errors"
"github.com/pip-services3-go/pip-services3-commons-go/refer"
"github.com/pip-services3-go/pip-services3-commons-go/reflect"
"github.com/pip-services3-go/pip-services3-commons-go/v3/config"
"github.com/pip-services3-go/pip-services3-commons-go/v3/errors"
"github.com/pip-services3-go/pip-services3-commons-go/v3/refer"
"github.com/pip-services3-go/pip-services3-commons-go/v3/reflect"
)

/*
Expand Down
2 changes: 1 addition & 1 deletion config/ContainerConfig.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package config

import (
"github.com/pip-services3-go/pip-services3-commons-go/config"
"github.com/pip-services3-go/pip-services3-commons-go/v3/config"
)

/*
Expand Down
6 changes: 3 additions & 3 deletions config/ContainerConfigReader.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ package config
import (
"path/filepath"

"github.com/pip-services3-go/pip-services3-commons-go/config"
"github.com/pip-services3-go/pip-services3-commons-go/errors"
cconfig "github.com/pip-services3-go/pip-services3-components-go/config"
"github.com/pip-services3-go/pip-services3-commons-go/v3/config"
"github.com/pip-services3-go/pip-services3-commons-go/v3/errors"
cconfig "github.com/pip-services3-go/pip-services3-components-go/v3/config"
)

/*
Expand Down
18 changes: 9 additions & 9 deletions container/Container.go
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
package container

import (
cconfig "github.com/pip-services3-go/pip-services3-commons-go/config"
"github.com/pip-services3-go/pip-services3-commons-go/errors"
crefer "github.com/pip-services3-go/pip-services3-commons-go/refer"
cbuild "github.com/pip-services3-go/pip-services3-components-go/build"
"github.com/pip-services3-go/pip-services3-components-go/info"
"github.com/pip-services3-go/pip-services3-components-go/log"
"github.com/pip-services3-go/pip-services3-container-go/build"
"github.com/pip-services3-go/pip-services3-container-go/config"
"github.com/pip-services3-go/pip-services3-container-go/refer"
cconfig "github.com/pip-services3-go/pip-services3-commons-go/v3/config"
"github.com/pip-services3-go/pip-services3-commons-go/v3/errors"
crefer "github.com/pip-services3-go/pip-services3-commons-go/v3/refer"
cbuild "github.com/pip-services3-go/pip-services3-components-go/v3/build"
"github.com/pip-services3-go/pip-services3-components-go/v3/info"
"github.com/pip-services3-go/pip-services3-components-go/v3/log"
"github.com/pip-services3-go/pip-services3-container-go/v3/build"
"github.com/pip-services3-go/pip-services3-container-go/v3/config"
"github.com/pip-services3-go/pip-services3-container-go/v3/refer"
)

/*
Expand Down
6 changes: 3 additions & 3 deletions container/ProcessContainer.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ import (
"strings"
"time"

cconfig "github.com/pip-services3-go/pip-services3-commons-go/config"
crefer "github.com/pip-services3-go/pip-services3-commons-go/refer"
"github.com/pip-services3-go/pip-services3-components-go/log"
cconfig "github.com/pip-services3-go/pip-services3-commons-go/v3/config"
crefer "github.com/pip-services3-go/pip-services3-commons-go/v3/refer"
"github.com/pip-services3-go/pip-services3-components-go/v3/log"
)

/*
Expand Down
2 changes: 1 addition & 1 deletion docs/Development.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ This document provides high-level instructions on how to build and test the micr
This is a Golang project and you have to install Golang tools.
You can download them from official Golang website: https://golang.org/dl/

After node is installed you can check it by running the following command:
After go is installed you can check it by running the following command:
```bash
go version
```
Expand Down
19 changes: 19 additions & 0 deletions docs/Downloads.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Pip.Services Container for Golang Downloads

Binary releases of the container are available through GIT global repository.
To use the container you can either include dependency into your go file:

```golang

...
import (
cauth "github.com/pip-services3-go/pip-services3-container-go/v3/auth"
)

```

Source code can be checked out from github repository:

```bash
git clone [email protected]:pip-services-go/pip-services-container-go.git
```
8 changes: 4 additions & 4 deletions examples/DummyController.go
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
package examples

import (
"github.com/pip-services3-go/pip-services3-commons-go/config"
"github.com/pip-services3-go/pip-services3-commons-go/refer"
"github.com/pip-services3-go/pip-services3-commons-go/run"
"github.com/pip-services3-go/pip-services3-components-go/log"
"github.com/pip-services3-go/pip-services3-commons-go/v3/config"
"github.com/pip-services3-go/pip-services3-commons-go/v3/refer"
"github.com/pip-services3-go/pip-services3-commons-go/v3/run"
"github.com/pip-services3-go/pip-services3-components-go/v3/log"
)

type DummyController struct {
Expand Down
4 changes: 2 additions & 2 deletions examples/DummyFactory.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package examples

import (
"github.com/pip-services3-go/pip-services3-commons-go/refer"
"github.com/pip-services3-go/pip-services3-components-go/build"
"github.com/pip-services3-go/pip-services3-commons-go/v3/refer"
"github.com/pip-services3-go/pip-services3-components-go/v3/build"
)

var ControllerDescriptor = refer.NewDescriptor("pip-services-dummies", "controller", "default", "*", "1.0")
Expand Down
2 changes: 1 addition & 1 deletion examples/DummyProcess.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package examples

import "github.com/pip-services3-go/pip-services3-container-go/container"
import "github.com/pip-services3-go/pip-services3-container-go/v3/container"

func NewDummyProcess() *container.ProcessContainer {
c := container.NewProcessContainer("dummy", "Sample dummy process")
Expand Down
6 changes: 3 additions & 3 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
module github.com/pip-services3-go/pip-services3-container-go
module github.com/pip-services3-go/pip-services3-container-go/v3

go 1.12

require (
github.com/pip-services3-go/pip-services3-commons-go v0.0.0-20190804203000-6456cc90b324
github.com/pip-services3-go/pip-services3-components-go v0.0.0-20190807202040-060944d786b8
github.com/pip-services3-go/pip-services3-commons-go/v3 v3.0.0
github.com/pip-services3-go/pip-services3-components-go/v3 v3.0.0
github.com/stretchr/testify v1.3.0
)
6 changes: 3 additions & 3 deletions index.go.bak
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package container

import (
_ "github.com/pip-services3-go/pip-services3-container-go/build"
_ "github.com/pip-services3-go/pip-services3-container-go/config"
_ "github.com/pip-services3-go/pip-services3-container-go/refer"
_ "github.com/pip-services3-go/pip-services3-container-go/v3/build"
_ "github.com/pip-services3-go/pip-services3-container-go/v3/config"
_ "github.com/pip-services3-go/pip-services3-container-go/v3/refer"
)
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package main

import (
"os"
"github.com/pip-services3-go/pip-services3-container-go/examples"
"github.com/pip-services3-go/pip-services3-container-go/v3/examples"
)

func main() {
Expand Down
6 changes: 3 additions & 3 deletions refer/BuildReferencesDecorator.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package refer

import (
"github.com/pip-services3-go/pip-services3-commons-go/refer"
crefer "github.com/pip-services3-go/pip-services3-commons-go/refer"
"github.com/pip-services3-go/pip-services3-components-go/build"
"github.com/pip-services3-go/pip-services3-commons-go/v3/refer"
crefer "github.com/pip-services3-go/pip-services3-commons-go/v3/refer"
"github.com/pip-services3-go/pip-services3-components-go/v3/build"
)

/*
Expand Down
10 changes: 5 additions & 5 deletions refer/ContainerReferences.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ package refer
import (
"fmt"

cconfig "github.com/pip-services3-go/pip-services3-commons-go/config"
"github.com/pip-services3-go/pip-services3-commons-go/refer"
"github.com/pip-services3-go/pip-services3-commons-go/reflect"
"github.com/pip-services3-go/pip-services3-components-go/build"
"github.com/pip-services3-go/pip-services3-container-go/config"
cconfig "github.com/pip-services3-go/pip-services3-commons-go/v3/config"
"github.com/pip-services3-go/pip-services3-commons-go/v3/refer"
"github.com/pip-services3-go/pip-services3-commons-go/v3/reflect"
"github.com/pip-services3-go/pip-services3-components-go/v3/build"
"github.com/pip-services3-go/pip-services3-container-go/v3/config"
)

/*
Expand Down
2 changes: 1 addition & 1 deletion refer/LinkReferencesDecorator.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package refer

import (
crefer "github.com/pip-services3-go/pip-services3-commons-go/refer"
crefer "github.com/pip-services3-go/pip-services3-commons-go/v3/refer"
)

/*
Expand Down
2 changes: 1 addition & 1 deletion refer/ManagedReferences.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package refer

import (
crefer "github.com/pip-services3-go/pip-services3-commons-go/refer"
crefer "github.com/pip-services3-go/pip-services3-commons-go/v3/refer"
)

/*
Expand Down
2 changes: 1 addition & 1 deletion refer/ReferencesDecorator.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package refer

import crefer "github.com/pip-services3-go/pip-services3-commons-go/refer"
import crefer "github.com/pip-services3-go/pip-services3-commons-go/v3/refer"

/*
Chainable decorator for IReferences that allows to inject additional capabilities such as
Expand Down
4 changes: 2 additions & 2 deletions refer/RunReferencesDecorator.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package refer

import (
crefer "github.com/pip-services3-go/pip-services3-commons-go/refer"
"github.com/pip-services3-go/pip-services3-commons-go/run"
crefer "github.com/pip-services3-go/pip-services3-commons-go/v3/refer"
"github.com/pip-services3-go/pip-services3-commons-go/v3/run"
)

/*
Expand Down
8 changes: 4 additions & 4 deletions test/config/ComponentConfig_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ package test_config
import (
"testing"

conf "github.com/pip-services3-go/pip-services3-commons-go/config"
"github.com/pip-services3-go/pip-services3-commons-go/refer"
"github.com/pip-services3-go/pip-services3-commons-go/reflect"
cconf "github.com/pip-services3-go/pip-services3-container-go/config"
conf "github.com/pip-services3-go/pip-services3-commons-go/v3/config"
"github.com/pip-services3-go/pip-services3-commons-go/v3/refer"
"github.com/pip-services3-go/pip-services3-commons-go/v3/reflect"
cconf "github.com/pip-services3-go/pip-services3-container-go/v3/config"

"github.com/stretchr/testify/assert"
)
Expand Down
6 changes: 3 additions & 3 deletions test/refer/ManagedReferences_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ import (

"github.com/stretchr/testify/assert"

"github.com/pip-services3-go/pip-services3-commons-go/refer"
"github.com/pip-services3-go/pip-services3-components-go/log"
crefer "github.com/pip-services3-go/pip-services3-container-go/refer"
"github.com/pip-services3-go/pip-services3-commons-go/v3/refer"
"github.com/pip-services3-go/pip-services3-components-go/v3/log"
crefer "github.com/pip-services3-go/pip-services3-container-go/v3/refer"
)

func TestAutoCreateComponent(t *testing.T) {
Expand Down

0 comments on commit a000500

Please sign in to comment.