From a30bae8f663c9a7669a1117729122f5ea5d51b70 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E5=AD=90=E9=93=AD?= Date: Thu, 18 Jul 2024 11:29:44 +0800 Subject: [PATCH] plugin rename zltx -> ZLTX --- plugins/zltx/internal/zltx.go | 8 ++++---- plugins/zltx/internal/zltx_test.go | 2 +- plugins/zltx/main.go | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/plugins/zltx/internal/zltx.go b/plugins/zltx/internal/zltx.go index 04a46ea..a76d942 100644 --- a/plugins/zltx/internal/zltx.go +++ b/plugins/zltx/internal/zltx.go @@ -23,9 +23,9 @@ const ( queryMethod = "/recharge/query" ) -type ZltxService struct{} +type ZLTXService struct{} -func (p *ZltxService) Order(ctx context.Context, request *proto.OrderRequest) (*proto.OrderResponse, error) { +func (p *ZLTXService) Order(ctx context.Context, request *proto.OrderRequest) (*proto.OrderResponse, error) { c, err := transConfig(request.Config) if err != nil { return nil, err @@ -49,7 +49,7 @@ func (p *ZltxService) Order(ctx context.Context, request *proto.OrderRequest) (* return orderResp(request, response), nil } -func (p *ZltxService) Query(ctx context.Context, request *proto.QueryRequest) (*proto.QueryResponse, error) { +func (p *ZLTXService) Query(ctx context.Context, request *proto.QueryRequest) (*proto.QueryResponse, error) { c, err := transConfig(request.Config) if err != nil { return nil, err @@ -72,7 +72,7 @@ func (p *ZltxService) Query(ctx context.Context, request *proto.QueryRequest) (* return queryResp(request, response), nil } -func (p *ZltxService) Notify(_ context.Context, request *proto.NotifyRequest) (*proto.NotifyResponse, error) { +func (p *ZLTXService) Notify(_ context.Context, request *proto.NotifyRequest) (*proto.NotifyResponse, error) { c, err := transConfig(request.Config) if err != nil { return nil, err diff --git a/plugins/zltx/internal/zltx_test.go b/plugins/zltx/internal/zltx_test.go index d0bdc69..8975c4d 100644 --- a/plugins/zltx/internal/zltx_test.go +++ b/plugins/zltx/internal/zltx_test.go @@ -9,7 +9,7 @@ import ( "testing" ) -var zltx = &ZltxService{} +var zltx = &ZLTXService{} func config() []byte { c := &Config{ diff --git a/plugins/zltx/main.go b/plugins/zltx/main.go index 618a3ec..b4f0f56 100644 --- a/plugins/zltx/main.go +++ b/plugins/zltx/main.go @@ -9,7 +9,7 @@ import ( func main() { plugin.Serve(&plugin.ServeConfig{ HandshakeConfig: shared.HandshakeConfig(internal.Version, internal.CookieKey, internal.CookieValue), - Plugins: shared.PluginSet(shared.NewPlugin(&internal.ZltxService{}, internal.Tag)), + Plugins: shared.PluginSet(shared.NewPlugin(&internal.ZLTXService{}, internal.Tag)), GRPCServer: plugin.DefaultGRPCServer, }) }