Skip to content

Commit

Permalink
refactor(agent): update unimplemented agent with transport packages
Browse files Browse the repository at this point in the history
- Replace "http" package with "transhttp" for HTTP-related functions
- Replace "grpc" package with "transgrpc" for gRPC-related functions
- Update function signatures to use new transport packages
  • Loading branch information
godcong committed Dec 24, 2024
1 parent af422b3 commit 17faefc
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions agent/unimplemented.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
package agent

import (
"github.com/go-kratos/kratos/v2/transport/http"
transgrpc "github.com/go-kratos/kratos/v2/transport/grpc"
transhttp "github.com/go-kratos/kratos/v2/transport/http"
"google.golang.org/grpc"
)

Expand All @@ -18,15 +19,15 @@ func (u unimplementedAgent) URI() string {
return ""
}

func (u unimplementedAgent) HTTPServer() *http.Server {
func (u unimplementedAgent) HTTPServer() *transhttp.Server {
return nil
}

func (u unimplementedAgent) Route() *http.Router {
func (u unimplementedAgent) Route() *transhttp.Router {
return nil
}

func (u unimplementedAgent) Server() *grpc.Server {
func (u unimplementedAgent) Server() *transgrpc.Server {
return nil
}

Expand Down

0 comments on commit 17faefc

Please sign in to comment.