diff --git a/go.mod b/go.mod index cf21879..e9602e2 100644 --- a/go.mod +++ b/go.mod @@ -7,7 +7,7 @@ require ( github.com/BurntSushi/toml v1.0.0 github.com/gorilla/websocket v1.5.0 github.com/kelseyhightower/envconfig v1.4.0 - github.com/mattermost/mattermost-server/v6 v6.0.0-20221122212622-0509e78744bf + github.com/mattermost/mattermost/server/public v0.0.0-20230613002302-62a3ee8adcb5 github.com/pborman/uuid v1.2.1 github.com/pion/ice/v2 v2.3.3 github.com/pion/interceptor v0.1.12 @@ -36,7 +36,7 @@ require ( github.com/gofrs/flock v0.8.0 // indirect github.com/golang/protobuf v1.5.3 // indirect github.com/google/uuid v1.3.0 // indirect - github.com/mattermost/logr/v2 v2.0.15 // indirect + github.com/mattermost/logr/v2 v2.0.16 // indirect github.com/matttproud/golang_protobuf_extensions v1.0.4 // indirect github.com/pion/datachannel v1.5.5 // indirect github.com/pion/dtls/v2 v2.2.7 // indirect @@ -54,6 +54,7 @@ require ( github.com/prometheus/client_model v0.3.0 // indirect github.com/prometheus/common v0.42.0 // indirect github.com/prometheus/procfs v0.9.0 // indirect + github.com/rogpeppe/go-internal v1.10.0 // indirect github.com/sirupsen/logrus v1.9.0 // indirect github.com/vmihailenco/tagparser/v2 v2.0.0 // indirect github.com/wiggin77/merror v1.0.4 // indirect @@ -61,6 +62,6 @@ require ( golang.org/x/exp v0.0.0-20200908183739-ae8ad444f925 // indirect golang.org/x/net v0.10.0 // indirect google.golang.org/protobuf v1.30.0 // indirect - gopkg.in/natefinch/lumberjack.v2 v2.0.0 // indirect + gopkg.in/natefinch/lumberjack.v2 v2.2.1 // indirect gopkg.in/yaml.v3 v3.0.1 // indirect ) diff --git a/go.sum b/go.sum index 77a7e8c..47a85c0 100644 --- a/go.sum +++ b/go.sum @@ -199,8 +199,8 @@ github.com/googleapis/gax-go/v2 v2.0.3/go.mod h1:LLvjysVCY1JZeum8Z6l8qUty8fiNwE0 github.com/googleapis/gax-go/v2 v2.0.4/go.mod h1:0Wqv26UfaUD9n4G6kQubkQ+KchISgw+vpHVxEJEs9eg= github.com/googleapis/gax-go/v2 v2.0.5/go.mod h1:DWXyrwAJ9X0FpwwEdw+IPEYBICEFu5mhpdKc/us6bOk= github.com/gopherjs/gopherjs v0.0.0-20181017120253-0766667cb4d1/go.mod h1:wJfORRmW1u3UXTncJ5qlYoELFm8eSnnEO6hX4iZ3EWY= +github.com/gopherjs/gopherjs v0.0.0-20200217142428-fce0ec30dd00 h1:l5lAOZEym3oK3SQ2HBHWsJUfbNBiTXJDeW2QDxw9AQ0= github.com/gopherjs/gopherjs v0.0.0-20200217142428-fce0ec30dd00/go.mod h1:wJfORRmW1u3UXTncJ5qlYoELFm8eSnnEO6hX4iZ3EWY= -github.com/gopherjs/gopherjs v1.17.2 h1:fQnZVsXk8uxXIStYb0N4bGk7jeyTalG/wsZjQ25dO0g= github.com/gorilla/websocket v1.4.0/go.mod h1:E7qHFY5m1UJ88s3WnNqhKjPHQ0heANvMoAMk2YaljkQ= github.com/gorilla/websocket v1.5.0 h1:PPwGk2jz7EePpoHN/+ClbZu8SPxiqlu12wZP/3sWmnc= github.com/gorilla/websocket v1.5.0/go.mod h1:YR8l580nyteQvAITg2hZ9XVh4b55+EU/adAjf1fMHhE= @@ -261,10 +261,10 @@ github.com/lunixbochs/vtclean v1.0.0/go.mod h1:pHhQNgMf3btfWnGBVipUOjRYhoOsdGqdm github.com/magiconair/properties v1.8.0/go.mod h1:PppfXfuXeibc/6YijjN8zIbojt8czPbwD3XqdrwzmxQ= github.com/magiconair/properties v1.8.5/go.mod h1:y3VJvCyxH9uVvJTWEGAELF3aiYNyPKd5NZ3oSwXrF60= github.com/mailru/easyjson v0.0.0-20190312143242-1de009706dbe/go.mod h1:C1wdFJiN94OJF2b5HbByQZoLdCWB1Yqtg26g4irojpc= -github.com/mattermost/logr/v2 v2.0.15 h1:+WNbGcsc3dBao65eXlceB6dTILNJRIrvubnsTl3zBew= -github.com/mattermost/logr/v2 v2.0.15/go.mod h1:mpPp935r5dIkFDo2y9Q87cQWhFR/4xXpNh0k/y8Hmwg= -github.com/mattermost/mattermost-server/v6 v6.0.0-20221122212622-0509e78744bf h1:a61ZNxW8zYZjNSbH4Y3agqkWcw7AAo7XxXU4i722Ozs= -github.com/mattermost/mattermost-server/v6 v6.0.0-20221122212622-0509e78744bf/go.mod h1:B9ntfVMlYp1gsCnEKRuM4nMN02l2LQG0+JEPJoSA3mk= +github.com/mattermost/logr/v2 v2.0.16 h1:jnePX4cPskC3WDFvUardh/xZfxNdsFXbEERJQ1kUEDE= +github.com/mattermost/logr/v2 v2.0.16/go.mod h1:1dm/YhTpozsqANXxo5Pi5zYLBsal2xY0pX+JZNbzYJY= +github.com/mattermost/mattermost/server/public v0.0.0-20230613002302-62a3ee8adcb5 h1:X8ue+QQn0VJe6qR0q2kHGFhQCn5T4rqb7XS0t6R1r3A= +github.com/mattermost/mattermost/server/public v0.0.0-20230613002302-62a3ee8adcb5/go.mod h1:TtECPYX/ftU43bCGqN5W3Ic2gPDN2+zeKhXfE2YPRvw= github.com/mattn/go-colorable v0.0.9/go.mod h1:9vuHe8Xs5qXnSaW/c/ABM9alt+Vo+STaOChaDxuIBZU= github.com/mattn/go-isatty v0.0.3/go.mod h1:M+lRXTBqGeGNdLjl/ufCoiOlB5xdOkqRJdNxMWT7Zi4= github.com/matttproud/golang_protobuf_extensions v1.0.1/go.mod h1:D8He9yQNgCq6Z5Ld7szi9bcBfOoFv/3dc6xSMkL2PC0= @@ -386,7 +386,8 @@ github.com/pyroscope-io/godeltaprof v0.1.1/go.mod h1:psMITXp90+8pFenXkKIpNhrfmI9 github.com/rogpeppe/fastuuid v0.0.0-20150106093220-6724a57986af/go.mod h1:XWv6SoW27p1b0cqNHllgS5HIMJraePCO15w5zCzIWYg= github.com/rogpeppe/fastuuid v1.2.0/go.mod h1:jVj6XXZzXRy/MSR5jhDC/2q6DgLz+nrA6LYCDYWNEvQ= github.com/rogpeppe/go-internal v1.3.0/go.mod h1:M8bDsm7K2OlrFYOpmOWEs/qY81heoFRclV5y23lUDJ4= -github.com/rogpeppe/go-internal v1.8.0 h1:FCbCCtXNOY3UtUuHUYaghJg4y7Fd14rXifAYUAtL9R8= +github.com/rogpeppe/go-internal v1.10.0 h1:TMyTOH3F/DB16zRVcYyreMH6GnZZrwQVAoYjRBZyWFQ= +github.com/rogpeppe/go-internal v1.10.0/go.mod h1:UQnix2H7Ngw/k4C5ijL5+65zddjncjaFoBhdsK/akog= github.com/russross/blackfriday v1.5.2/go.mod h1:JO/DiYxRf+HjHt06OyowR9PTA263kcR/rfWxYHBV53g= github.com/russross/blackfriday/v2 v2.0.1/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM= github.com/ryanuber/columnize v0.0.0-20160712163229-9b3edd62028f/go.mod h1:sm1tb6uqfes/u+d4ooFouqFdy9/2g9QGwK3SQygK0Ts= @@ -474,7 +475,6 @@ github.com/vmihailenco/msgpack/v5 v5.3.5 h1:5gO0H1iULLWGhs2H5tbAHIZTV8/cYafcFOr9 github.com/vmihailenco/msgpack/v5 v5.3.5/go.mod h1:7xyJ9e+0+9SaZT0Wt1RGleJXzli6Q/V5KbhBonMG9jc= github.com/vmihailenco/tagparser/v2 v2.0.0 h1:y09buUbR+b5aycVFQs/g70pqKVZNBmxwAhO7/IwNM9g= github.com/vmihailenco/tagparser/v2 v2.0.0/go.mod h1:Wri+At7QHww0WTrCBeu4J6bNtoV6mEfg5OIWRZA9qds= -github.com/wiggin77/merror v1.0.2/go.mod h1:uQTcIU0Z6jRK4OwqganPYerzQxSFJ4GSHM3aurxxQpg= github.com/wiggin77/merror v1.0.4 h1:XxFLEevmQQfgJW2AxhapuMG7C1fQqfbim/XyUmYv/ZM= github.com/wiggin77/merror v1.0.4/go.mod h1:H2ETSu7/bPE0Ymf4bEwdUoo73OOEkdClnoRisfw0Nm0= github.com/wiggin77/srslog v1.0.1 h1:gA2XjSMy3DrRdX9UqLuDtuVAAshb8bE1NhX1YK0Qe+8= @@ -928,8 +928,8 @@ gopkg.in/errgo.v2 v2.1.0/go.mod h1:hNsd1EY+bozCKY1Ytp96fpM3vjJbqLJn88ws8XvfDNI= gopkg.in/fsnotify.v1 v1.4.7/go.mod h1:Tz8NjZHkW78fSQdbUxIjBTcgA1z1m8ZHf0WmKUhAMys= gopkg.in/inf.v0 v0.9.1/go.mod h1:cWUDdTG/fYaXco+Dcufb5Vnc6Gp2YChqWtbxRZE0mXw= gopkg.in/ini.v1 v1.62.0/go.mod h1:pNLf8WUiyNEtQjuu5G5vTm06TEv9tsIgeAvK8hOrP4k= -gopkg.in/natefinch/lumberjack.v2 v2.0.0 h1:1Lc07Kr7qY4U2YPouBjpCLxpiyxIVoxqXgkXLknAOE8= -gopkg.in/natefinch/lumberjack.v2 v2.0.0/go.mod h1:l0ndWWf7gzL7RNwBG7wST/UCcT4T24xpD6X8LsfU/+k= +gopkg.in/natefinch/lumberjack.v2 v2.2.1 h1:bBRl1b0OH9s/DuPhuXpNl+VtCaJXFZ5/uEFST95x9zc= +gopkg.in/natefinch/lumberjack.v2 v2.2.1/go.mod h1:YD8tP3GAjkrDg1eZH7EGmyESg/lsYskCTPBJVb9jqSc= gopkg.in/resty.v1 v1.12.0/go.mod h1:mDo4pnntr5jdWRML875a/NmxYqAlA73dVijT2AXvQQo= gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7/go.mod h1:dt/ZhP58zS4L8KSrWDmTeBkI65Dw0HsyUHuEVlX15mw= gopkg.in/yaml.v2 v2.0.0-20170812160011-eb3733d160e7/go.mod h1:JAlM8MvJe8wmxCU4Bli9HhUf9+ttbYbLASfIpnQbh74= @@ -939,7 +939,6 @@ gopkg.in/yaml.v2 v2.2.3/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= gopkg.in/yaml.v2 v2.2.4/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= gopkg.in/yaml.v2 v2.2.8/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= gopkg.in/yaml.v2 v2.3.0/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= -gopkg.in/yaml.v2 v2.4.0 h1:D8xgwECY7CYvx+Y2n4sBz93Jn9JRvxdiyyo8CTfuKaY= gopkg.in/yaml.v2 v2.4.0/go.mod h1:RDklbk79AGWmwhnvt/jBztapEOGDOx6ZbXqjP6csGnQ= gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= diff --git a/logger/config.go b/logger/config.go index 236da5c..fadf1b6 100644 --- a/logger/config.go +++ b/logger/config.go @@ -7,7 +7,7 @@ import ( "fmt" "strings" - "github.com/mattermost/mattermost-server/v6/shared/mlog" + "github.com/mattermost/mattermost/server/public/shared/mlog" ) // Config holds information used to initialize a new logger. diff --git a/logger/logger.go b/logger/logger.go index 8dec45c..d81fef5 100644 --- a/logger/logger.go +++ b/logger/logger.go @@ -8,7 +8,7 @@ import ( "fmt" "strings" - "github.com/mattermost/mattermost-server/v6/shared/mlog" + "github.com/mattermost/mattermost/server/public/shared/mlog" ) func getLevels(level string) []mlog.Level { diff --git a/logger/logger_test.go b/logger/logger_test.go index 20a8a54..4af8296 100644 --- a/logger/logger_test.go +++ b/logger/logger_test.go @@ -8,7 +8,7 @@ import ( "github.com/stretchr/testify/require" - "github.com/mattermost/mattermost-server/v6/shared/mlog" + "github.com/mattermost/mattermost/server/public/shared/mlog" ) func TestGetLevels(t *testing.T) { diff --git a/service/api/server.go b/service/api/server.go index 124b16d..01e696d 100644 --- a/service/api/server.go +++ b/service/api/server.go @@ -11,7 +11,7 @@ import ( "net/http" "time" - "github.com/mattermost/mattermost-server/v6/shared/mlog" + "github.com/mattermost/mattermost/server/public/shared/mlog" ) type Server struct { diff --git a/service/api/server_test.go b/service/api/server_test.go index 16fcdfc..0d18182 100644 --- a/service/api/server_test.go +++ b/service/api/server_test.go @@ -9,7 +9,7 @@ import ( "net/http" "testing" - "github.com/mattermost/mattermost-server/v6/shared/mlog" + "github.com/mattermost/mattermost/server/public/shared/mlog" "github.com/stretchr/testify/require" ) diff --git a/service/audit.go b/service/audit.go index 5d945be..1bb80c3 100644 --- a/service/audit.go +++ b/service/audit.go @@ -8,7 +8,7 @@ import ( "fmt" "net/http" - "github.com/mattermost/mattermost-server/v6/shared/mlog" + "github.com/mattermost/mattermost/server/public/shared/mlog" ) type httpData struct { diff --git a/service/auth.go b/service/auth.go index 4ac3d1e..04b14db 100644 --- a/service/auth.go +++ b/service/auth.go @@ -10,7 +10,7 @@ import ( "net/http" "strings" - "github.com/mattermost/mattermost-server/v6/shared/mlog" + "github.com/mattermost/mattermost/server/public/shared/mlog" ) const bearerPrefix = "Bearer " diff --git a/service/rtc/call.go b/service/rtc/call.go index 0cc06b5..8354b13 100644 --- a/service/rtc/call.go +++ b/service/rtc/call.go @@ -8,7 +8,7 @@ import ( "github.com/pion/webrtc/v3" - "github.com/mattermost/mattermost-server/v6/shared/mlog" + "github.com/mattermost/mattermost/server/public/shared/mlog" ) type call struct { diff --git a/service/rtc/logger.go b/service/rtc/logger.go index 43f50c7..17a3766 100644 --- a/service/rtc/logger.go +++ b/service/rtc/logger.go @@ -6,7 +6,7 @@ package rtc import ( "fmt" - "github.com/mattermost/mattermost-server/v6/shared/mlog" + "github.com/mattermost/mattermost/server/public/shared/mlog" "github.com/pion/logging" ) diff --git a/service/rtc/net.go b/service/rtc/net.go index dce04b0..1b41d6c 100644 --- a/service/rtc/net.go +++ b/service/rtc/net.go @@ -13,7 +13,7 @@ import ( "golang.org/x/sys/unix" - "github.com/mattermost/mattermost-server/v6/shared/mlog" + "github.com/mattermost/mattermost/server/public/shared/mlog" ) const ( diff --git a/service/rtc/net_test.go b/service/rtc/net_test.go index 4528b68..3ce3ff3 100644 --- a/service/rtc/net_test.go +++ b/service/rtc/net_test.go @@ -7,7 +7,7 @@ import ( "runtime" "testing" - "github.com/mattermost/mattermost-server/v6/shared/mlog" + "github.com/mattermost/mattermost/server/public/shared/mlog" "github.com/stretchr/testify/require" ) diff --git a/service/rtc/server.go b/service/rtc/server.go index 05ee7ad..4abd89c 100644 --- a/service/rtc/server.go +++ b/service/rtc/server.go @@ -13,7 +13,7 @@ import ( "github.com/pion/ice/v2" "github.com/pion/webrtc/v3" - "github.com/mattermost/mattermost-server/v6/shared/mlog" + "github.com/mattermost/mattermost/server/public/shared/mlog" ) const ( diff --git a/service/rtc/server_test.go b/service/rtc/server_test.go index 9692585..f621cdd 100644 --- a/service/rtc/server_test.go +++ b/service/rtc/server_test.go @@ -14,7 +14,7 @@ import ( "github.com/mattermost/rtcd/service/perf" "github.com/mattermost/rtcd/service/random" - "github.com/mattermost/mattermost-server/v6/shared/mlog" + "github.com/mattermost/mattermost/server/public/shared/mlog" "github.com/mattermost/rtcd/logger" "github.com/pion/ice/v2" "github.com/pion/webrtc/v3" diff --git a/service/rtc/session.go b/service/rtc/session.go index 8f9d334..f83a137 100644 --- a/service/rtc/session.go +++ b/service/rtc/session.go @@ -17,7 +17,7 @@ import ( "github.com/pion/rtcp" "github.com/pion/webrtc/v3" - "github.com/mattermost/mattermost-server/v6/shared/mlog" + "github.com/mattermost/mattermost/server/public/shared/mlog" ) const ( diff --git a/service/rtc/sfu.go b/service/rtc/sfu.go index d1e1563..29af569 100644 --- a/service/rtc/sfu.go +++ b/service/rtc/sfu.go @@ -13,7 +13,7 @@ import ( "github.com/mattermost/rtcd/service/random" - "github.com/mattermost/mattermost-server/v6/shared/mlog" + "github.com/mattermost/mattermost/server/public/shared/mlog" "github.com/pion/ice/v2" "github.com/pion/interceptor" diff --git a/service/rtc/simulcast.go b/service/rtc/simulcast.go index 1e0788d..e6daa9b 100644 --- a/service/rtc/simulcast.go +++ b/service/rtc/simulcast.go @@ -12,7 +12,7 @@ import ( "github.com/pion/interceptor/pkg/cc" - "github.com/mattermost/mattermost-server/v6/shared/mlog" + "github.com/mattermost/mattermost/server/public/shared/mlog" ) const ( diff --git a/service/service.go b/service/service.go index 59a6831..70584a6 100644 --- a/service/service.go +++ b/service/service.go @@ -19,7 +19,7 @@ import ( "github.com/mattermost/rtcd/service/store" "github.com/mattermost/rtcd/service/ws" - "github.com/mattermost/mattermost-server/v6/shared/mlog" + "github.com/mattermost/mattermost/server/public/shared/mlog" godeltaprof "github.com/pyroscope-io/godeltaprof/http/pprof" ) diff --git a/service/version.go b/service/version.go index 7b55537..64df0dc 100644 --- a/service/version.go +++ b/service/version.go @@ -8,7 +8,7 @@ import ( "net/http" "runtime" - "github.com/mattermost/mattermost-server/v6/shared/mlog" + "github.com/mattermost/mattermost/server/public/shared/mlog" ) var ( diff --git a/service/ws/server.go b/service/ws/server.go index 228b91e..7fb886b 100644 --- a/service/ws/server.go +++ b/service/ws/server.go @@ -12,7 +12,7 @@ import ( "github.com/mattermost/rtcd/service/random" "github.com/gorilla/websocket" - "github.com/mattermost/mattermost-server/v6/shared/mlog" + "github.com/mattermost/mattermost/server/public/shared/mlog" ) const ( diff --git a/service/ws/server_test.go b/service/ws/server_test.go index db68f67..7222e1b 100644 --- a/service/ws/server_test.go +++ b/service/ws/server_test.go @@ -14,7 +14,7 @@ import ( "github.com/mattermost/rtcd/service/random" "github.com/gorilla/websocket" - "github.com/mattermost/mattermost-server/v6/shared/mlog" + "github.com/mattermost/mattermost/server/public/shared/mlog" "github.com/stretchr/testify/require" )