Skip to content

Commit

Permalink
reorder v5
Browse files Browse the repository at this point in the history
  • Loading branch information
Ulexus committed Mar 7, 2020
1 parent f72edf5 commit 35a3fea
Show file tree
Hide file tree
Showing 181 changed files with 83 additions and 10,868 deletions.
22 changes: 6 additions & 16 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,29 +55,19 @@ You may need to explicitly install dependencies for this to work

## Client library

`ari-proxy` uses semantic versioning and [dep](https://github.com/golang/dep).
To use it in your own Go package, simply reference the
`github.com/CyCoreSystems/ari-proxy/client` package, and your dependency management
tool should be able to manage it.

For manual dependency management:

```
go get github.com/CyCoreSystems/ari-proxy
cd $GOPATH/github.com/CyCoreSystems/ari-proxy
dep ensure
```

`master` should be the latest stable, so a simple `go get` is required:
`ari-proxy` uses semantic versioning and standard Go modules. To use it in your
own Go package, simply reference the
`github.com/CyCoreSystems/ari-proxy/client/v5` package, and your dependency
management tool should be able to manage it.

### Usage

Connecting the client to NATS is simple:

```go
import (
"github.com/CyCoreSystems/ari"
"github.com/CyCoreSystems/ari-proxy/client"
"github.com/CyCoreSystems/ari/v5"
"github.com/CyCoreSystems/ari-proxy/v5/client"
)

func connect(ctx context.Context, appName string) (ari.Client,error) {
Expand Down
2 changes: 1 addition & 1 deletion _examples/bridge/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (

"github.com/inconshreveable/log15"

"github.com/CyCoreSystems/ari-proxy/client"
"github.com/CyCoreSystems/ari-proxy/v5/client"
rid "github.com/CyCoreSystems/ari-rid"
"github.com/CyCoreSystems/ari/v5"
"github.com/CyCoreSystems/ari/v5/ext/play"
Expand Down
2 changes: 1 addition & 1 deletion _examples/play/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (

"github.com/inconshreveable/log15"

"github.com/CyCoreSystems/ari-proxy/client"
"github.com/CyCoreSystems/ari-proxy/v5/client"
"github.com/CyCoreSystems/ari/v5"
"github.com/CyCoreSystems/ari/v5/ext/play"
)
Expand Down
2 changes: 1 addition & 1 deletion _examples/record/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (

"github.com/inconshreveable/log15"

"github.com/CyCoreSystems/ari-proxy/client"
"github.com/CyCoreSystems/ari-proxy/v5/client"
"github.com/CyCoreSystems/ari/v5"
"github.com/CyCoreSystems/ari/v5/ext/record"
)
Expand Down
2 changes: 1 addition & 1 deletion _examples/stasisStart/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"net/http"
"sync"

"github.com/CyCoreSystems/ari-proxy/client"
"github.com/CyCoreSystems/ari-proxy/v5/client"
"github.com/CyCoreSystems/ari/v5"
"github.com/CyCoreSystems/ari/v5/client/native"

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

import (
"github.com/CyCoreSystems/ari-proxy/proxy"
"github.com/CyCoreSystems/ari-proxy/v5/proxy"
"github.com/CyCoreSystems/ari/v5"
)

Expand Down
2 changes: 1 addition & 1 deletion client/application_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package client
import (
"testing"

"github.com/CyCoreSystems/ari-proxy/internal/integration"
"github.com/CyCoreSystems/ari-proxy/v5/internal/integration"
)

func TestApplicationList(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion client/asterisk.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package client

import (
"github.com/CyCoreSystems/ari-proxy/proxy"
"github.com/CyCoreSystems/ari-proxy/v5/proxy"
"github.com/CyCoreSystems/ari/v5"
)

Expand Down
2 changes: 1 addition & 1 deletion client/asterisk_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package client
import (
"testing"

"github.com/CyCoreSystems/ari-proxy/internal/integration"
"github.com/CyCoreSystems/ari-proxy/v5/internal/integration"
)

func TestAsteriskInfo(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion client/bridge.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package client

import (
"github.com/CyCoreSystems/ari-proxy/proxy"
"github.com/CyCoreSystems/ari-proxy/v5/proxy"
rid "github.com/CyCoreSystems/ari-rid"
"github.com/CyCoreSystems/ari/v5"
)
Expand Down
2 changes: 1 addition & 1 deletion client/bridge_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package client
import (
"testing"

"github.com/CyCoreSystems/ari-proxy/internal/integration"
"github.com/CyCoreSystems/ari-proxy/v5/internal/integration"
)

func TestBridgeCreate(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion client/channel.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package client
import (
"time"

"github.com/CyCoreSystems/ari-proxy/proxy"
"github.com/CyCoreSystems/ari-proxy/v5/proxy"
rid "github.com/CyCoreSystems/ari-rid"
"github.com/CyCoreSystems/ari/v5"
)
Expand Down
2 changes: 1 addition & 1 deletion client/channel_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package client
import (
"testing"

"github.com/CyCoreSystems/ari-proxy/internal/integration"
"github.com/CyCoreSystems/ari-proxy/v5/internal/integration"
)

func TestChannelData(t *testing.T) {
Expand Down
6 changes: 3 additions & 3 deletions client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ import (
"os"
"time"

"github.com/CyCoreSystems/ari-proxy/client/bus"
"github.com/CyCoreSystems/ari-proxy/client/cluster"
"github.com/CyCoreSystems/ari-proxy/proxy"
"github.com/CyCoreSystems/ari-proxy/v5/client/bus"
"github.com/CyCoreSystems/ari-proxy/v5/client/cluster"
"github.com/CyCoreSystems/ari-proxy/v5/proxy"
rid "github.com/CyCoreSystems/ari-rid"
"github.com/CyCoreSystems/ari/v5"

Expand Down
2 changes: 1 addition & 1 deletion client/clientserver_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"testing"
"time"

"github.com/CyCoreSystems/ari-proxy/server"
"github.com/CyCoreSystems/ari-proxy/v5/server"
rid "github.com/CyCoreSystems/ari-rid"
"github.com/CyCoreSystems/ari/v5"
"github.com/nats-io/nats.go"
Expand Down
2 changes: 1 addition & 1 deletion client/config.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package client

import (
"github.com/CyCoreSystems/ari-proxy/proxy"
"github.com/CyCoreSystems/ari-proxy/v5/proxy"
"github.com/CyCoreSystems/ari/v5"
)

Expand Down
2 changes: 1 addition & 1 deletion client/config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package client
import (
"testing"

"github.com/CyCoreSystems/ari-proxy/internal/integration"
"github.com/CyCoreSystems/ari-proxy/v5/internal/integration"
)

func TestConfigData(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion client/device.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package client

import (
"github.com/CyCoreSystems/ari-proxy/proxy"
"github.com/CyCoreSystems/ari-proxy/v5/proxy"
"github.com/CyCoreSystems/ari/v5"
)

Expand Down
2 changes: 1 addition & 1 deletion client/device_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package client
import (
"testing"

"github.com/CyCoreSystems/ari-proxy/internal/integration"
"github.com/CyCoreSystems/ari-proxy/v5/internal/integration"
)

func TestDeviceData(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion client/endpoint.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package client

import (
"github.com/CyCoreSystems/ari-proxy/proxy"
"github.com/CyCoreSystems/ari-proxy/v5/proxy"
"github.com/CyCoreSystems/ari/v5"
)

Expand Down
2 changes: 1 addition & 1 deletion client/endpoint_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package client
import (
"testing"

"github.com/CyCoreSystems/ari-proxy/internal/integration"
"github.com/CyCoreSystems/ari-proxy/v5/internal/integration"
)

func TestEndpointList(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion client/liveRecording.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package client

import (
"github.com/CyCoreSystems/ari-proxy/proxy"
"github.com/CyCoreSystems/ari-proxy/v5/proxy"
"github.com/CyCoreSystems/ari/v5"
)

Expand Down
2 changes: 1 addition & 1 deletion client/liveRecording_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package client
import (
"testing"

"github.com/CyCoreSystems/ari-proxy/internal/integration"
"github.com/CyCoreSystems/ari-proxy/v5/internal/integration"
)

func TestLiveRecordingData(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion client/logging.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package client

import (
"github.com/CyCoreSystems/ari-proxy/proxy"
"github.com/CyCoreSystems/ari-proxy/v5/proxy"
"github.com/CyCoreSystems/ari/v5"
)

Expand Down
2 changes: 1 addition & 1 deletion client/logging_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package client
import (
"testing"

"github.com/CyCoreSystems/ari-proxy/internal/integration"
"github.com/CyCoreSystems/ari-proxy/v5/internal/integration"
)

func TestLoggingList(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion client/mailbox.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package client

import (
"github.com/CyCoreSystems/ari-proxy/proxy"
"github.com/CyCoreSystems/ari-proxy/v5/proxy"
"github.com/CyCoreSystems/ari/v5"
)

Expand Down
2 changes: 1 addition & 1 deletion client/mailbox_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package client
import (
"testing"

"github.com/CyCoreSystems/ari-proxy/internal/integration"
"github.com/CyCoreSystems/ari-proxy/v5/internal/integration"
)

func TestMailboxList(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion client/modules.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package client

import (
"github.com/CyCoreSystems/ari-proxy/proxy"
"github.com/CyCoreSystems/ari-proxy/v5/proxy"
"github.com/CyCoreSystems/ari/v5"
)

Expand Down
2 changes: 1 addition & 1 deletion client/modules_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package client
import (
"testing"

"github.com/CyCoreSystems/ari-proxy/internal/integration"
"github.com/CyCoreSystems/ari-proxy/v5/internal/integration"
)

func TestModulesData(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion client/playback.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package client

import (
"github.com/CyCoreSystems/ari-proxy/proxy"
"github.com/CyCoreSystems/ari-proxy/v5/proxy"
"github.com/CyCoreSystems/ari/v5"
)

Expand Down
2 changes: 1 addition & 1 deletion client/playback_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package client
import (
"testing"

"github.com/CyCoreSystems/ari-proxy/internal/integration"
"github.com/CyCoreSystems/ari-proxy/v5/internal/integration"
)

func TestPlaybackData(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion client/sound.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package client

import (
"github.com/CyCoreSystems/ari-proxy/proxy"
"github.com/CyCoreSystems/ari-proxy/v5/proxy"
"github.com/CyCoreSystems/ari/v5"
)

Expand Down
2 changes: 1 addition & 1 deletion client/sound_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package client
import (
"testing"

"github.com/CyCoreSystems/ari-proxy/internal/integration"
"github.com/CyCoreSystems/ari-proxy/v5/internal/integration"
)

func TestSoundData(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion client/storedRecording.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package client

import (
"github.com/CyCoreSystems/ari-proxy/proxy"
"github.com/CyCoreSystems/ari-proxy/v5/proxy"
"github.com/CyCoreSystems/ari/v5"
)

Expand Down
2 changes: 1 addition & 1 deletion cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"os"
"strings"

"github.com/CyCoreSystems/ari-proxy/server"
"github.com/CyCoreSystems/ari-proxy/v5/server"
"github.com/CyCoreSystems/ari/v5/client/native"

"github.com/inconshreveable/log15"
Expand Down
2 changes: 0 additions & 2 deletions docker_login

This file was deleted.

4 changes: 2 additions & 2 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
module github.com/CyCoreSystems/ari-proxy
module github.com/CyCoreSystems/ari-proxy/v5

go 1.13

require (
github.com/BurntSushi/toml v0.3.1 // indirect
github.com/CyCoreSystems/ari-rid v0.1.0
github.com/CyCoreSystems/ari/v5 v5.0.1
github.com/CyCoreSystems/ari/v5 v5.0.3
github.com/fsnotify/fsnotify v0.0.0-20170329110642-4da3e2cfbabc // indirect
github.com/gogo/protobuf v1.3.1 // indirect
github.com/hashicorp/hcl v0.0.0-20170509225359-392dba7d905e // indirect
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ github.com/BurntSushi/toml v0.3.1 h1:WXkYYl6Yr3qBf1K79EBnL4mak0OimBfB0XUf9Vl28OQ
github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU=
github.com/CyCoreSystems/ari-rid v0.1.0 h1:QSn7/1Jc0b3Se/LIaMa9taGxC9n/zyBlCEw9Conrdrk=
github.com/CyCoreSystems/ari-rid v0.1.0/go.mod h1:vFD6moqOBGXaUM28Yck9X16+5cj+NbFmiyCvpUYuKr4=
github.com/CyCoreSystems/ari/v5 v5.0.1 h1:TfJOwETj6MumVBJPnZJoYqLtfUAo7W8FKnnssMlQ8PM=
github.com/CyCoreSystems/ari/v5 v5.0.1/go.mod h1:5fdxhNmHG+sUJkeIgPfMafi7d7Ec1B8QpPSCFvDDVc0=
github.com/CyCoreSystems/ari/v5 v5.0.3 h1:WF0J0lA4uSgV5Sk9t3V0vtRh6NPonYeRoHTJVXMMMzE=
github.com/CyCoreSystems/ari/v5 v5.0.3/go.mod h1:5fdxhNmHG+sUJkeIgPfMafi7d7Ec1B8QpPSCFvDDVc0=
github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8=
github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
Expand Down
2 changes: 1 addition & 1 deletion server/application.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"errors"
"strings"

"github.com/CyCoreSystems/ari-proxy/proxy"
"github.com/CyCoreSystems/ari-proxy/v5/proxy"
)

func (s *Server) applicationData(ctx context.Context, reply string, req *proxy.Request) {
Expand Down
2 changes: 1 addition & 1 deletion server/application_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package server
import (
"testing"

"github.com/CyCoreSystems/ari-proxy/internal/integration"
"github.com/CyCoreSystems/ari-proxy/v5/internal/integration"
)

func TestApplicationList(t *testing.T) {
Expand Down
Loading

0 comments on commit 35a3fea

Please sign in to comment.