Skip to content

Commit

Permalink
Update for channel/v3
Browse files Browse the repository at this point in the history
  • Loading branch information
plorenz committed Sep 6, 2024
1 parent 45d261f commit 609c68c
Show file tree
Hide file tree
Showing 10 changed files with 27 additions and 23 deletions.
8 changes: 4 additions & 4 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,13 @@ require (
github.com/michaelquigley/pfxlog v0.6.10
github.com/mitchellh/go-ps v1.0.0
github.com/mitchellh/mapstructure v1.5.0
github.com/openziti/channel/v2 v2.0.136
github.com/openziti/channel/v3 v3.0.0-20240906172147-702f52deaf5c
github.com/openziti/edge-api v0.26.23
github.com/openziti/foundation/v2 v2.0.47
github.com/openziti/identity v1.0.81
github.com/openziti/foundation/v2 v2.0.48
github.com/openziti/identity v1.0.84
github.com/openziti/metrics v1.2.56
github.com/openziti/secretstream v0.1.21
github.com/openziti/transport/v2 v2.0.138
github.com/openziti/transport/v2 v2.0.143
github.com/orcaman/concurrent-map/v2 v2.0.1
github.com/pkg/errors v0.9.1
github.com/rcrowley/go-metrics v0.0.0-20201227073835-cf1acfcdf475
Expand Down
16 changes: 8 additions & 8 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -302,20 +302,20 @@ github.com/onsi/gomega v1.13.0 h1:7lLHu94wT9Ij0o6EWWclhu0aOh32VxhkwEJvzuWPeak=
github.com/onsi/gomega v1.13.0/go.mod h1:lRk9szgn8TxENtWd0Tp4c3wjlRfMTMH27I+3Je41yGY=
github.com/opentracing/opentracing-go v1.2.0 h1:uEJPy/1a5RIPAJ0Ov+OIO8OxWu77jEv+1B0VhjKrZUs=
github.com/opentracing/opentracing-go v1.2.0/go.mod h1:GxEUsuufX4nBwe+T+Wl9TAgYrxe9dPLANfrWvHYVTgc=
github.com/openziti/channel/v2 v2.0.136 h1:XWjcNrPhto2XiD5HLhsh7GhmqfHEweQIJ/eUjtVKUJs=
github.com/openziti/channel/v2 v2.0.136/go.mod h1:7jhk6JtJPP1O8aWYx+w2IuwCunFJ88Ot4AQcrKiX5og=
github.com/openziti/channel/v3 v3.0.0-20240906172147-702f52deaf5c h1:Edu5+8hTUz8gUpB+gBZ1lPCutOVgqEndtePKrL3iwLQ=
github.com/openziti/channel/v3 v3.0.0-20240906172147-702f52deaf5c/go.mod h1:HKLmCTrimAI7RXpydb4ubORzafisOoxgvuvTbEaXlEM=
github.com/openziti/edge-api v0.26.23 h1:tXXGc/ACg7bQys+8K8ElS49A8VWfBi8Y6nGV53NqE9U=
github.com/openziti/edge-api v0.26.23/go.mod h1:t0qfgV5u2+HItpvgDIShA69v6m7RZ+PrbQuLQaDDdx8=
github.com/openziti/foundation/v2 v2.0.47 h1:f2LM6FQOhHXJ9QMTpr4GAKq8qXspNG3EGczMjjyz7uc=
github.com/openziti/foundation/v2 v2.0.47/go.mod h1:pj5nPmVtAdF1QX+aRtALw69hxcsAzrWDpBUe+Zrc73Q=
github.com/openziti/identity v1.0.81 h1:zeS+sCxsfIbNAvlLHqM+74BcCPitW4Vpmarlrcun6hw=
github.com/openziti/identity v1.0.81/go.mod h1:/UKDen2MOw2Kjs0WuKiBloIT2bPrV0jxLAo8eyVy0ic=
github.com/openziti/foundation/v2 v2.0.48 h1:G0/P8XQS+xTAS3KYQ/PHjLFHLABZkLJeNDbPgPTaxU0=
github.com/openziti/foundation/v2 v2.0.48/go.mod h1:pj5nPmVtAdF1QX+aRtALw69hxcsAzrWDpBUe+Zrc73Q=
github.com/openziti/identity v1.0.84 h1:AxNS/KZb50rzJkZ+1IF1aoollObrelZBUoMlWtpw2Y4=
github.com/openziti/identity v1.0.84/go.mod h1:EVkwgH4r/uQ/GUUFjIZN6WBiGcQHUhfiv6o+WUAtuDk=
github.com/openziti/metrics v1.2.56 h1:sOX5SCdK2Kx2vci+2PWIXDedbyRDUWylM3xJmmISiUs=
github.com/openziti/metrics v1.2.56/go.mod h1:nATuueUtFF5PDhwBwbq93g8sjpQZmf0yo2rySOnOUEY=
github.com/openziti/secretstream v0.1.21 h1:r4xN8/CzSEvxZFFYGSztrlhMtIvk3B+SQcq2zgZ4Tb4=
github.com/openziti/secretstream v0.1.21/go.mod h1:1lfAnS8gBHsKZiPbRRK1sularbAsqizN6tWUEuZSfo0=
github.com/openziti/transport/v2 v2.0.138 h1:F7TUv34BZ6x2BetYLtYbxSU/G15B+vkGRU4uPKwvRvU=
github.com/openziti/transport/v2 v2.0.138/go.mod h1:v0PN1dhFP48HeUUeBq9n/Ql2u5ln8EOtPBA3KkzD2GI=
github.com/openziti/transport/v2 v2.0.143 h1:qhqI/yEN4SvP8SBx7ERCt0x67Im+Icy/hGtJ7Dn/xOQ=
github.com/openziti/transport/v2 v2.0.143/go.mod h1:3BxxlWa8fbhmZG1CmIOpeEHlCCY1G7DPx7v7+bAXYEQ=
github.com/orcaman/concurrent-map/v2 v2.0.1 h1:jOJ5Pg2w1oeB6PeDurIYf6k9PQ+aTITr/6lP/L/zp6c=
github.com/orcaman/concurrent-map/v2 v2.0.1/go.mod h1:9Eq3TG2oBe5FirmYWQfYO5iH1q0Jv47PLaNK++uCdOM=
github.com/parallaxsecond/parsec-client-go v0.0.0-20221025095442-f0a77d263cf9 h1:mOvehYivJ4Aqu2CPe3D3lv8jhqOI9/1o0THxJHBE0qw=
Expand Down
2 changes: 1 addition & 1 deletion ziti/edge/conn.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ import (

"github.com/google/uuid"
"github.com/michaelquigley/pfxlog"
"github.com/openziti/channel/v2"
"github.com/openziti/channel/v3"
"github.com/openziti/foundation/v2/sequence"
)

Expand Down
2 changes: 1 addition & 1 deletion ziti/edge/messages.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ package edge

import (
"encoding/binary"
"github.com/openziti/channel/v2"
"github.com/openziti/channel/v3"
"github.com/openziti/foundation/v2/uuidz"
"github.com/openziti/sdk-golang/pb/edge_client_pb"
"github.com/pkg/errors"
Expand Down
2 changes: 1 addition & 1 deletion ziti/edge/msg_mux.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ package edge
import (
"fmt"
"github.com/michaelquigley/pfxlog"
"github.com/openziti/channel/v2"
"github.com/openziti/channel/v3"
"github.com/pkg/errors"
"github.com/sirupsen/logrus"
"math"
Expand Down
2 changes: 1 addition & 1 deletion ziti/edge/network/conn.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ import (
"crypto/rand"
"encoding/base64"
"github.com/michaelquigley/pfxlog"
"github.com/openziti/channel/v2"
"github.com/openziti/channel/v3"
"github.com/openziti/edge-api/rest_model"
"github.com/openziti/foundation/v2/info"
"github.com/openziti/sdk-golang/ziti/edge"
Expand Down
2 changes: 1 addition & 1 deletion ziti/edge/network/conn_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package network

import (
"crypto/x509"
"github.com/openziti/channel/v2"
"github.com/openziti/channel/v3"
"github.com/openziti/foundation/v2/sequencer"
"github.com/openziti/sdk-golang/ziti/edge"
"github.com/stretchr/testify/require"
Expand Down
2 changes: 1 addition & 1 deletion ziti/edge/network/factory.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import (
"time"

"github.com/michaelquigley/pfxlog"
"github.com/openziti/channel/v2"
"github.com/openziti/channel/v3"
"github.com/openziti/edge-api/rest_model"
"github.com/openziti/sdk-golang/ziti/edge"
"github.com/openziti/secretstream/kx"
Expand Down
2 changes: 1 addition & 1 deletion ziti/edge/network/seq_test.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package network

import (
"github.com/openziti/channel/v2"
"github.com/openziti/channel/v3"
"github.com/openziti/sdk-golang/ziti/edge"
"github.com/stretchr/testify/require"
"testing"
Expand Down
12 changes: 8 additions & 4 deletions ziti/ziti.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ import (

"github.com/cenkalti/backoff/v4"
"github.com/michaelquigley/pfxlog"
"github.com/openziti/channel/v2"
"github.com/openziti/channel/v2/latency"
"github.com/openziti/channel/v3"
"github.com/openziti/channel/v3/latency"
"github.com/openziti/edge-api/rest_client_api_client/current_api_session"
"github.com/openziti/edge-api/rest_model"
"github.com/openziti/foundation/v2/versions"
Expand Down Expand Up @@ -1387,8 +1387,12 @@ func (context *ContextImpl) connectEdgeRouter(routerName, ingressUrl string) *ed
}
}

dialer := channel.NewClassicDialer(identity.NewIdentity(id), ingAddr, map[int32][]byte{
edge.SessionTokenHeader: context.CtrlClt.GetCurrentApiSession().GetToken(),
dialer := channel.NewClassicDialer(channel.DialerConfig{
Identity: identity.NewIdentity(id),
Endpoint: ingAddr,
Headers: map[int32][]byte{
edge.SessionTokenHeader: context.CtrlClt.GetCurrentApiSession().GetToken(),
},
})

start := time.Now().UnixNano()
Expand Down

0 comments on commit 609c68c

Please sign in to comment.