mirror of
https://github.com/openziti/ziti.git
synced 2026-09-10 08:45:41 +00:00
Update to current protobuf library
This commit is contained in:
@@ -17,7 +17,7 @@
|
||||
package handler_ctrl
|
||||
|
||||
import (
|
||||
"github.com/golang/protobuf/proto"
|
||||
"google.golang.org/protobuf/proto"
|
||||
"github.com/michaelquigley/pfxlog"
|
||||
"github.com/openziti/channel"
|
||||
"github.com/openziti/fabric/controller/network"
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
package handler_ctrl
|
||||
|
||||
import (
|
||||
"github.com/golang/protobuf/proto"
|
||||
"google.golang.org/protobuf/proto"
|
||||
"github.com/michaelquigley/pfxlog"
|
||||
"github.com/openziti/channel"
|
||||
"github.com/openziti/fabric/controller/network"
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
package handler_ctrl
|
||||
|
||||
import (
|
||||
"github.com/golang/protobuf/proto"
|
||||
"google.golang.org/protobuf/proto"
|
||||
"github.com/michaelquigley/pfxlog"
|
||||
"github.com/openziti/channel"
|
||||
"github.com/openziti/fabric/controller/network"
|
||||
|
||||
@@ -18,7 +18,7 @@ package handler_ctrl
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"github.com/golang/protobuf/proto"
|
||||
"google.golang.org/protobuf/proto"
|
||||
"github.com/michaelquigley/pfxlog"
|
||||
"github.com/openziti/channel"
|
||||
"github.com/openziti/fabric/controller/network"
|
||||
|
||||
@@ -18,7 +18,7 @@ package handler_ctrl
|
||||
|
||||
import (
|
||||
"errors"
|
||||
"github.com/golang/protobuf/proto"
|
||||
"google.golang.org/protobuf/proto"
|
||||
"github.com/michaelquigley/pfxlog"
|
||||
"github.com/openziti/channel"
|
||||
"github.com/openziti/channel/protobufs"
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
package handler_ctrl
|
||||
|
||||
import (
|
||||
"github.com/golang/protobuf/proto"
|
||||
"google.golang.org/protobuf/proto"
|
||||
"github.com/michaelquigley/pfxlog"
|
||||
"github.com/openziti/channel"
|
||||
"github.com/openziti/fabric/controller/network"
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
package handler_ctrl
|
||||
|
||||
import (
|
||||
"github.com/golang/protobuf/proto"
|
||||
"google.golang.org/protobuf/proto"
|
||||
"github.com/michaelquigley/pfxlog"
|
||||
"github.com/openziti/channel"
|
||||
"github.com/openziti/fabric/controller/network"
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
package handler_ctrl
|
||||
|
||||
import (
|
||||
"github.com/golang/protobuf/proto"
|
||||
"google.golang.org/protobuf/proto"
|
||||
"github.com/michaelquigley/pfxlog"
|
||||
"github.com/openziti/fabric/controller/network"
|
||||
"github.com/openziti/fabric/metrics"
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
package handler_ctrl
|
||||
|
||||
import (
|
||||
"github.com/golang/protobuf/proto"
|
||||
"google.golang.org/protobuf/proto"
|
||||
"github.com/michaelquigley/pfxlog"
|
||||
"github.com/openziti/channel"
|
||||
"github.com/openziti/fabric/controller/network"
|
||||
|
||||
@@ -19,7 +19,7 @@ package handler_ctrl
|
||||
import (
|
||||
"bytes"
|
||||
"encoding/binary"
|
||||
"github.com/golang/protobuf/proto"
|
||||
"google.golang.org/protobuf/proto"
|
||||
"github.com/openziti/channel"
|
||||
"github.com/openziti/fabric/controller/network"
|
||||
"github.com/openziti/fabric/controller/xt"
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
package handler_ctrl
|
||||
|
||||
import (
|
||||
"github.com/golang/protobuf/proto"
|
||||
"google.golang.org/protobuf/proto"
|
||||
"github.com/michaelquigley/pfxlog"
|
||||
"github.com/openziti/channel"
|
||||
"github.com/openziti/fabric/controller/network"
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
package handler_ctrl
|
||||
|
||||
import (
|
||||
"github.com/golang/protobuf/proto"
|
||||
"google.golang.org/protobuf/proto"
|
||||
"github.com/michaelquigley/pfxlog"
|
||||
"github.com/openziti/channel"
|
||||
"github.com/openziti/channel/trace/pb"
|
||||
|
||||
@@ -18,7 +18,7 @@ package handler_ctrl
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"github.com/golang/protobuf/proto"
|
||||
"google.golang.org/protobuf/proto"
|
||||
"github.com/openziti/channel"
|
||||
"github.com/openziti/fabric/controller/db"
|
||||
"github.com/openziti/fabric/controller/network"
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
package handler_ctrl
|
||||
|
||||
import (
|
||||
"github.com/golang/protobuf/proto"
|
||||
"google.golang.org/protobuf/proto"
|
||||
"github.com/michaelquigley/pfxlog"
|
||||
"github.com/openziti/channel"
|
||||
"github.com/openziti/fabric/controller/network"
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
package handler_mgmt
|
||||
|
||||
import (
|
||||
"github.com/golang/protobuf/proto"
|
||||
"google.golang.org/protobuf/proto"
|
||||
"github.com/michaelquigley/pfxlog"
|
||||
"github.com/openziti/channel"
|
||||
"github.com/openziti/fabric/controller/network"
|
||||
|
||||
@@ -18,7 +18,7 @@ package handler_mgmt
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"github.com/golang/protobuf/proto"
|
||||
"google.golang.org/protobuf/proto"
|
||||
"github.com/michaelquigley/pfxlog"
|
||||
"github.com/openziti/channel"
|
||||
"github.com/openziti/fabric/controller/network"
|
||||
|
||||
@@ -18,7 +18,7 @@ package handler_mgmt
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"github.com/golang/protobuf/proto"
|
||||
"google.golang.org/protobuf/proto"
|
||||
"github.com/michaelquigley/pfxlog"
|
||||
"github.com/openziti/channel"
|
||||
"github.com/openziti/fabric/controller/network"
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
package handler_mgmt
|
||||
|
||||
import (
|
||||
"github.com/golang/protobuf/proto"
|
||||
"google.golang.org/protobuf/proto"
|
||||
"github.com/michaelquigley/pfxlog"
|
||||
"github.com/openziti/channel"
|
||||
"github.com/openziti/fabric/controller/network"
|
||||
|
||||
@@ -17,8 +17,6 @@
|
||||
package handler_mgmt
|
||||
|
||||
import (
|
||||
"github.com/golang/protobuf/proto"
|
||||
"github.com/golang/protobuf/ptypes/timestamp"
|
||||
"github.com/michaelquigley/pfxlog"
|
||||
"github.com/openziti/channel"
|
||||
"github.com/openziti/fabric/controller/network"
|
||||
@@ -27,7 +25,10 @@ import (
|
||||
"github.com/openziti/fabric/pb/mgmt_pb"
|
||||
"github.com/openziti/foundation/metrics"
|
||||
"github.com/openziti/foundation/metrics/metrics_pb"
|
||||
"google.golang.org/protobuf/proto"
|
||||
"google.golang.org/protobuf/types/known/timestamppb"
|
||||
"regexp"
|
||||
"time"
|
||||
)
|
||||
|
||||
type streamMetricsHandler struct {
|
||||
@@ -189,9 +190,10 @@ func (handler *MetricsStreamHandler) filter(filters []*metricsFilter, msg *metri
|
||||
Name: name,
|
||||
}
|
||||
intervalMetric.Values = bucket.Values
|
||||
intervalMetric.IntervalStartUTC = ×tamp.Timestamp{Seconds: bucket.IntervalStartUTC}
|
||||
intervalEndSeconds := bucket.IntervalStartUTC + int64(interval.IntervalLength)
|
||||
intervalMetric.IntervalEndUTC = ×tamp.Timestamp{Seconds: intervalEndSeconds}
|
||||
intervalStart := time.UnixMilli(bucket.IntervalStartUTC * 1000)
|
||||
intervalMetric.IntervalStartUTC = timestamppb.New(intervalStart)
|
||||
intervalEnd := intervalStart.Add(time.Second * time.Duration(interval.IntervalLength))
|
||||
intervalMetric.IntervalEndUTC = timestamppb.New(intervalEnd)
|
||||
|
||||
event.IntervalMetrics = append(event.IntervalMetrics, intervalMetric)
|
||||
}
|
||||
|
||||
@@ -18,7 +18,7 @@ package handler_mgmt
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"github.com/golang/protobuf/proto"
|
||||
"google.golang.org/protobuf/proto"
|
||||
"github.com/openziti/channel"
|
||||
"github.com/openziti/channel/trace/pb"
|
||||
"github.com/openziti/fabric/controller/network"
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
package handler_mgmt
|
||||
|
||||
import (
|
||||
"github.com/golang/protobuf/proto"
|
||||
"google.golang.org/protobuf/proto"
|
||||
"github.com/michaelquigley/pfxlog"
|
||||
"github.com/openziti/channel"
|
||||
"github.com/openziti/channel/trace/pb"
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
package controller
|
||||
|
||||
import (
|
||||
"github.com/golang/protobuf/proto"
|
||||
"google.golang.org/protobuf/proto"
|
||||
"github.com/michaelquigley/pfxlog"
|
||||
"github.com/openziti/channel"
|
||||
"github.com/openziti/fabric/controller/network"
|
||||
|
||||
+2
-2
@@ -1,12 +1,12 @@
|
||||
package events
|
||||
|
||||
import (
|
||||
"github.com/golang/protobuf/ptypes/timestamp"
|
||||
"github.com/google/uuid"
|
||||
"github.com/openziti/fabric/controller/network"
|
||||
"github.com/openziti/fabric/metrics"
|
||||
"github.com/openziti/foundation/metrics/metrics_pb"
|
||||
"github.com/pkg/errors"
|
||||
"google.golang.org/protobuf/types/known/timestamppb"
|
||||
"reflect"
|
||||
"regexp"
|
||||
"strings"
|
||||
@@ -248,7 +248,7 @@ type MetricsEvent struct {
|
||||
SourceAppId string
|
||||
SourceEntityId string
|
||||
Version uint32
|
||||
Timestamp *timestamp.Timestamp
|
||||
Timestamp *timestamppb.Timestamp
|
||||
Metric string
|
||||
Metrics map[string]interface{}
|
||||
Tags map[string]string
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
package metrics
|
||||
|
||||
import (
|
||||
"github.com/golang/protobuf/proto"
|
||||
"google.golang.org/protobuf/proto"
|
||||
"github.com/michaelquigley/pfxlog"
|
||||
"github.com/openziti/channel"
|
||||
"github.com/openziti/foundation/metrics/metrics_pb"
|
||||
|
||||
@@ -18,7 +18,7 @@ package ctrl_pb
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"github.com/golang/protobuf/proto"
|
||||
"google.golang.org/protobuf/proto"
|
||||
"github.com/michaelquigley/pfxlog"
|
||||
"github.com/openziti/channel"
|
||||
"github.com/openziti/fabric/ctrl_msg"
|
||||
|
||||
@@ -18,7 +18,7 @@ package mgmt_pb
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"github.com/golang/protobuf/proto"
|
||||
"google.golang.org/protobuf/proto"
|
||||
"github.com/michaelquigley/pfxlog"
|
||||
"github.com/openziti/channel"
|
||||
)
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
package handler_ctrl
|
||||
|
||||
import (
|
||||
"github.com/golang/protobuf/proto"
|
||||
"google.golang.org/protobuf/proto"
|
||||
"github.com/michaelquigley/pfxlog"
|
||||
"github.com/openziti/channel"
|
||||
"github.com/openziti/channel/protobufs"
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
package handler_ctrl
|
||||
|
||||
import (
|
||||
"github.com/golang/protobuf/proto"
|
||||
"google.golang.org/protobuf/proto"
|
||||
"github.com/michaelquigley/pfxlog"
|
||||
"github.com/openziti/channel"
|
||||
"github.com/openziti/fabric/pb/ctrl_pb"
|
||||
|
||||
@@ -18,7 +18,7 @@ package handler_ctrl
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
"github.com/golang/protobuf/proto"
|
||||
"google.golang.org/protobuf/proto"
|
||||
"github.com/michaelquigley/pfxlog"
|
||||
"github.com/openziti/channel"
|
||||
"github.com/openziti/fabric/inspect"
|
||||
|
||||
@@ -21,7 +21,7 @@ import (
|
||||
"syscall"
|
||||
"time"
|
||||
|
||||
"github.com/golang/protobuf/proto"
|
||||
"google.golang.org/protobuf/proto"
|
||||
"github.com/michaelquigley/pfxlog"
|
||||
"github.com/openziti/channel"
|
||||
"github.com/openziti/fabric/controller/xt"
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
package handler_ctrl
|
||||
|
||||
import (
|
||||
"github.com/golang/protobuf/proto"
|
||||
"google.golang.org/protobuf/proto"
|
||||
"github.com/michaelquigley/pfxlog"
|
||||
"github.com/openziti/channel"
|
||||
"github.com/openziti/fabric/pb/ctrl_pb"
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
package handler_ctrl
|
||||
|
||||
import (
|
||||
"github.com/golang/protobuf/proto"
|
||||
"google.golang.org/protobuf/proto"
|
||||
"github.com/michaelquigley/pfxlog"
|
||||
"github.com/openziti/channel"
|
||||
trace_pb "github.com/openziti/channel/trace/pb"
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
package handler_ctrl
|
||||
|
||||
import (
|
||||
"github.com/golang/protobuf/proto"
|
||||
"google.golang.org/protobuf/proto"
|
||||
"github.com/michaelquigley/pfxlog"
|
||||
"github.com/openziti/channel"
|
||||
"github.com/openziti/fabric/pb/ctrl_pb"
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
package handler_ctrl
|
||||
|
||||
import (
|
||||
"github.com/golang/protobuf/proto"
|
||||
"google.golang.org/protobuf/proto"
|
||||
"github.com/michaelquigley/pfxlog"
|
||||
"github.com/openziti/channel"
|
||||
"github.com/openziti/fabric/pb/ctrl_pb"
|
||||
|
||||
+1
-1
@@ -23,7 +23,7 @@ import (
|
||||
"fmt"
|
||||
gosundheit "github.com/AppsFlyer/go-sundheit"
|
||||
"github.com/AppsFlyer/go-sundheit/checks"
|
||||
"github.com/golang/protobuf/proto"
|
||||
"google.golang.org/protobuf/proto"
|
||||
"github.com/michaelquigley/pfxlog"
|
||||
"github.com/openziti/channel"
|
||||
"github.com/openziti/fabric/controller/xctrl"
|
||||
|
||||
+1
-1
@@ -21,7 +21,7 @@ import (
|
||||
tls2 "crypto/tls"
|
||||
"fmt"
|
||||
"github.com/go-resty/resty/v2"
|
||||
"github.com/golang/protobuf/proto"
|
||||
"google.golang.org/protobuf/proto"
|
||||
"github.com/openziti/channel"
|
||||
"github.com/openziti/channel/protobufs"
|
||||
"github.com/openziti/fabric/controller/api_impl"
|
||||
|
||||
+1
-1
@@ -3,7 +3,7 @@
|
||||
package tests
|
||||
|
||||
import (
|
||||
"github.com/golang/protobuf/proto"
|
||||
"google.golang.org/protobuf/proto"
|
||||
"github.com/google/uuid"
|
||||
"github.com/openziti/channel"
|
||||
"github.com/openziti/channel/protobufs"
|
||||
|
||||
@@ -18,7 +18,7 @@ package trace
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"github.com/golang/protobuf/proto"
|
||||
"google.golang.org/protobuf/proto"
|
||||
"github.com/michaelquigley/pfxlog"
|
||||
"github.com/openziti/channel"
|
||||
"github.com/openziti/channel/trace/pb"
|
||||
|
||||
Reference in New Issue
Block a user