Skip to content

Commit

Permalink
chore: dependency upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
liov committed Jul 31, 2024
1 parent 10b0578 commit 559ea6c
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 3 deletions.
6 changes: 3 additions & 3 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@ require (

require (
github.com/grpc-ecosystem/go-grpc-middleware/v2 v2.1.0
github.com/hopeio/context v0.0.24
github.com/hopeio/protobuf v0.0.24
github.com/hopeio/utils v0.0.28
github.com/hopeio/context v0.0.25
github.com/hopeio/protobuf v0.0.26
github.com/hopeio/utils v0.0.30
github.com/quic-go/quic-go v0.44.0
github.com/rs/cors v1.11.0
go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.52.0
Expand Down
6 changes: 6 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,8 @@ github.com/hopeio/context v0.0.23 h1:8D4hv78RCeTHi7TN/xC641W/RLkBozVsOXMLmfR9mVU
github.com/hopeio/context v0.0.23/go.mod h1:HK1RR1UOM6aO6zK/IS2HqjubTtbYZhqunVPocyI7ZxA=
github.com/hopeio/context v0.0.24 h1:hREEh1ft1IRKStz/3pDWE0U98R04799XxvMV2z0mGIk=
github.com/hopeio/context v0.0.24/go.mod h1:Yxd4tRoxQOFKyHK0UWnNJLfHGIi1XZrYPLKU+z6OTIQ=
github.com/hopeio/context v0.0.25 h1:Z2tmcRW6t5QE2SI5txDKX26yypJ1+SJBdrwx9DiDjnc=
github.com/hopeio/context v0.0.25/go.mod h1:W4zIzYTePLKfTNUx8YRp0risdtu2KbpyOgToU1cy/5U=
github.com/hopeio/protobuf v0.0.17 h1:z9DSwCvoK6SQclR7O/G1Mp42dPfomQUAl3MT1f7Mr0c=
github.com/hopeio/protobuf v0.0.17/go.mod h1:MxW+wkbBlLcmr1gCa1sTW/iNxRvEQvje7jZH1mEUIYw=
github.com/hopeio/protobuf v0.0.20 h1:KFiHOCllVby+n3Q17H/oIPeh6r4xvT3aWa6Thd5zTcc=
Expand All @@ -150,6 +152,8 @@ github.com/hopeio/protobuf v0.0.23 h1:fhJvWKEcDOZYFVvvVtN2hI3H8NeZ+KWNdadvGYSi4m
github.com/hopeio/protobuf v0.0.23/go.mod h1:TI0yW7HtH5iq9+IKsOVIvLJ1qdqu7lFRSoR8TxcUlhQ=
github.com/hopeio/protobuf v0.0.24 h1:CEdSX0XnQx6c+LGnIqZp6YyF0GFycnJlMWjOmzUSopc=
github.com/hopeio/protobuf v0.0.24/go.mod h1:TubQpC0vcZNMUasPoxsRAiJUVLPrwk96HLLwedx2op4=
github.com/hopeio/protobuf v0.0.26 h1:HR6z0KSUcP0u8RgTYzRHiHmQkQZ4ktCR79XJ7u8ugeA=
github.com/hopeio/protobuf v0.0.26/go.mod h1:9SiF0WYXFUAzxOOlDDYcvV+UJAi9MJN39NHU7/AprRk=
github.com/hopeio/utils v0.0.15 h1:YgnNqsWE8eyvD77oTIVA0B+k7H8cma7LSPdf8k16fcM=
github.com/hopeio/utils v0.0.15/go.mod h1:BZVm+GkuTmBq2/Ejk+Pf3C4d1Hr7frae9Vl8VocbMcg=
github.com/hopeio/utils v0.0.20 h1:03tHAKPEd3zmJQ65X3jkkC77Z+2wiE/xfxemZuY55/Y=
Expand All @@ -162,6 +166,8 @@ github.com/hopeio/utils v0.0.27 h1:kJnoYsCbVNhlkzxosKWgPR3QdscCucLZR0rW9fZQETI=
github.com/hopeio/utils v0.0.27/go.mod h1:7LSPl8an/46iJdbJyU+UUE8M4nvuCpYlW9XER72n9tg=
github.com/hopeio/utils v0.0.28 h1:DSkNT1X5abKzUGyrdtbDEVhcBQ0tdt8wKYjoGSeXSHw=
github.com/hopeio/utils v0.0.28/go.mod h1:7LSPl8an/46iJdbJyU+UUE8M4nvuCpYlW9XER72n9tg=
github.com/hopeio/utils v0.0.30 h1:iLRlcdv0zg3SMGOX68kgwGbgsiFNb8oQALvFu1RH1dI=
github.com/hopeio/utils v0.0.30/go.mod h1:+2FqZZu/bS7Qdd39LiBwfH00sQXBxBJN7dvmnQhCM70=
github.com/hpcloud/tail v1.0.0/go.mod h1:ab1qPbhIpdTxEkNHXyeSf5vhxWSCs/tWer42PpOxQnU=
github.com/imkira/go-interpol v1.1.0 h1:KIiKr0VSG2CUW1hl1jpiyuzuJeKUUpC8iM1AIE7N1Vk=
github.com/imkira/go-interpol v1.1.0/go.mod h1:z0h2/2T3XF8kyEPpRgJ3kmNv+C43p+I/CoI+jC3w2iA=
Expand Down
3 changes: 3 additions & 0 deletions handler_http.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ func (s *Server) httpHandler() http.HandlerFunc {
//enablePrometheus := conf.EnablePrometheus
// 默认使用gin
ginServer := s.Gin.New()
// TODO: 不记录日志
gini.OpenApi(ginServer, s.ApiDocUriPrefix, s.ApiDocDir)

s.GinHandler(ginServer)
if s.EnableDebugApi {
gini.Debug(ginServer)
Expand Down
1 change: 1 addition & 0 deletions server.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ type Server struct {
EnableGrpcWeb bool
GrpcWebOptions []web.Option
EnableTelemetry, EnableDebugApi bool
ApiDocUriPrefix, ApiDocDir string
TelemetryConfig
BaseContext context.Context
// 注册 grpc 服务
Expand Down

0 comments on commit 559ea6c

Please sign in to comment.