update go.mod

This commit is contained in:
ginuerzh
2022-04-05 17:57:26 +08:00
parent 4b88c240f8
commit 7c91dfb56f
5 changed files with 9 additions and 12 deletions

View File

@ -50,11 +50,3 @@ docker pull gogost/gost
### Shadowsocks Android插件 ### Shadowsocks Android插件
[xausky/ShadowsocksGostPlugin](https://github.com/xausky/ShadowsocksGostPlugin) [xausky/ShadowsocksGostPlugin](https://github.com/xausky/ShadowsocksGostPlugin)
## 问题建议
提交Issue: [https://github.com/go-gost/gost/issues](https://github.com/go-gost/gost/issues)
Telegram讨论群: [https://t.me/gogost](https://t.me/gogost)
Google讨论组: [https://groups.google.com/d/forum/go-gost](https://groups.google.com/d/forum/go-gost)

View File

@ -5,12 +5,12 @@ import (
"os" "os"
"github.com/go-gost/core/logger" "github.com/go-gost/core/logger"
metrics "github.com/go-gost/core/metrics/service"
"github.com/go-gost/core/service" "github.com/go-gost/core/service"
"github.com/go-gost/x/api" "github.com/go-gost/x/api"
"github.com/go-gost/x/config" "github.com/go-gost/x/config"
"github.com/go-gost/x/config/parsing" "github.com/go-gost/x/config/parsing"
xlogger "github.com/go-gost/x/logger" xlogger "github.com/go-gost/x/logger"
metrics "github.com/go-gost/x/metrics/service"
"github.com/go-gost/x/registry" "github.com/go-gost/x/registry"
) )

View File

@ -13,6 +13,7 @@ import (
"github.com/go-gost/x/config" "github.com/go-gost/x/config"
"github.com/go-gost/x/config/parsing" "github.com/go-gost/x/config/parsing"
xlogger "github.com/go-gost/x/logger" xlogger "github.com/go-gost/x/logger"
xmetrics "github.com/go-gost/x/metrics"
) )
var ( var (
@ -118,7 +119,7 @@ func main() {
} }
if cfg.Metrics != nil { if cfg.Metrics != nil {
metrics.SetGlobal(metrics.NewMetrics()) metrics.SetGlobal(xmetrics.NewMetrics())
if cfg.Metrics.Addr != "" { if cfg.Metrics.Addr != "" {
s, err := buildMetricsService(cfg.Metrics) s, err := buildMetricsService(cfg.Metrics)
if err != nil { if err != nil {

4
go.mod
View File

@ -5,8 +5,8 @@ go 1.18
replace github.com/templexxx/cpu v0.0.7 => github.com/templexxx/cpu v0.0.10-0.20211111114238-98168dcec14a replace github.com/templexxx/cpu v0.0.7 => github.com/templexxx/cpu v0.0.10-0.20211111114238-98168dcec14a
require ( require (
github.com/go-gost/core v0.0.0-20220404130002-d6e6efb0935b github.com/go-gost/core v0.0.0-20220405095520-c2f49e94443c
github.com/go-gost/x v0.0.0-20220404044539-6aa1cc740156 github.com/go-gost/x v0.0.0-20220405095636-1444ebc1ee1e
) )
require ( require (

4
go.sum
View File

@ -121,6 +121,8 @@ github.com/go-gl/glfw/v3.3/glfw v0.0.0-20191125211704-12ad95a8df72/go.mod h1:tQ2
github.com/go-gl/glfw/v3.3/glfw v0.0.0-20200222043503-6f7a984d4dc4/go.mod h1:tQ2UAYgL5IevRw8kRxooKSPJfGvJ9fJQFa0TUsXzTg8= github.com/go-gl/glfw/v3.3/glfw v0.0.0-20200222043503-6f7a984d4dc4/go.mod h1:tQ2UAYgL5IevRw8kRxooKSPJfGvJ9fJQFa0TUsXzTg8=
github.com/go-gost/core v0.0.0-20220404130002-d6e6efb0935b h1:Whi3wMi5aiC9kVBfTNYe5uVcaElYZqyrDYM94MJvH+A= github.com/go-gost/core v0.0.0-20220404130002-d6e6efb0935b h1:Whi3wMi5aiC9kVBfTNYe5uVcaElYZqyrDYM94MJvH+A=
github.com/go-gost/core v0.0.0-20220404130002-d6e6efb0935b/go.mod h1:/LzdiQ+0+3FMhyqw0phjFjXFdOa1fcQR5/bL/7ripCs= github.com/go-gost/core v0.0.0-20220404130002-d6e6efb0935b/go.mod h1:/LzdiQ+0+3FMhyqw0phjFjXFdOa1fcQR5/bL/7ripCs=
github.com/go-gost/core v0.0.0-20220405095520-c2f49e94443c h1:TzDyqefjnUVgdT6piHZgeXrVKXevawsMs0kmSZZhDR4=
github.com/go-gost/core v0.0.0-20220405095520-c2f49e94443c/go.mod h1:/LzdiQ+0+3FMhyqw0phjFjXFdOa1fcQR5/bL/7ripCs=
github.com/go-gost/gosocks4 v0.0.1 h1:+k1sec8HlELuQV7rWftIkmy8UijzUt2I6t+iMPlGB2s= github.com/go-gost/gosocks4 v0.0.1 h1:+k1sec8HlELuQV7rWftIkmy8UijzUt2I6t+iMPlGB2s=
github.com/go-gost/gosocks4 v0.0.1/go.mod h1:3B6L47HbU/qugDg4JnoFPHgJXE43Inz8Bah1QaN9qCc= github.com/go-gost/gosocks4 v0.0.1/go.mod h1:3B6L47HbU/qugDg4JnoFPHgJXE43Inz8Bah1QaN9qCc=
github.com/go-gost/gosocks5 v0.3.1-0.20211109033403-d894d75b7f09 h1:A95M6UWcfZgOuJkQ7QLfG0Hs5peWIUSysCDNz4pfe04= github.com/go-gost/gosocks5 v0.3.1-0.20211109033403-d894d75b7f09 h1:A95M6UWcfZgOuJkQ7QLfG0Hs5peWIUSysCDNz4pfe04=
@ -131,6 +133,8 @@ github.com/go-gost/tls-dissector v0.0.2-0.20211125135007-2b5d5bd9c07e h1:73NGqAs
github.com/go-gost/tls-dissector v0.0.2-0.20211125135007-2b5d5bd9c07e/go.mod h1:/9QfdewqmHdaE362Hv5nDaSWLx3pCmtD870d6GaquXs= github.com/go-gost/tls-dissector v0.0.2-0.20211125135007-2b5d5bd9c07e/go.mod h1:/9QfdewqmHdaE362Hv5nDaSWLx3pCmtD870d6GaquXs=
github.com/go-gost/x v0.0.0-20220404044539-6aa1cc740156 h1:Vh48o3X5zZRT5e50wgLGr1GNnHqHV/GRVUnpMc4hrwU= github.com/go-gost/x v0.0.0-20220404044539-6aa1cc740156 h1:Vh48o3X5zZRT5e50wgLGr1GNnHqHV/GRVUnpMc4hrwU=
github.com/go-gost/x v0.0.0-20220404044539-6aa1cc740156/go.mod h1:ZcHIO92IOsnu7K723MCN+aNVgwuRTgYN5pBvQku4o8s= github.com/go-gost/x v0.0.0-20220404044539-6aa1cc740156/go.mod h1:ZcHIO92IOsnu7K723MCN+aNVgwuRTgYN5pBvQku4o8s=
github.com/go-gost/x v0.0.0-20220405095636-1444ebc1ee1e h1:pdb9YuFeL4xUW1IUR5Yi/9kbcoPvcZESJXxCD8F9GG4=
github.com/go-gost/x v0.0.0-20220405095636-1444ebc1ee1e/go.mod h1:CYM7F8diDl+8KW6v/JJmnHRV7h8Rz7ooIfrLpZebGQw=
github.com/go-kit/kit v0.8.0/go.mod h1:xBxKIO96dXMWWy0MnWVtmwkA9/13aqxPnvrjFYMA2as= github.com/go-kit/kit v0.8.0/go.mod h1:xBxKIO96dXMWWy0MnWVtmwkA9/13aqxPnvrjFYMA2as=
github.com/go-kit/kit v0.9.0/go.mod h1:xBxKIO96dXMWWy0MnWVtmwkA9/13aqxPnvrjFYMA2as= github.com/go-kit/kit v0.9.0/go.mod h1:xBxKIO96dXMWWy0MnWVtmwkA9/13aqxPnvrjFYMA2as=
github.com/go-kit/log v0.1.0/go.mod h1:zbhenjAZHb184qTLMA9ZjW7ThYL0H2mk7Q6pNt4vbaY= github.com/go-kit/log v0.1.0/go.mod h1:zbhenjAZHb184qTLMA9ZjW7ThYL0H2mk7Q6pNt4vbaY=