Skip to content

Commit

Permalink
mv pb dir
Browse files Browse the repository at this point in the history
  • Loading branch information
ringsaturn committed Mar 10, 2024
1 parent 9b62861 commit 303cddc
Show file tree
Hide file tree
Showing 10 changed files with 146 additions and 147 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ install:
pb:
buf build
buf generate
protoc-go-inject-tag -input="proto/v1/*.pb.go" -remove_tag_comment
protoc-go-inject-tag -input="tzf/v1/*.pb.go" -remove_tag_comment
go fmt ./...

fmt:
Expand Down
2 changes: 1 addition & 1 deletion internal/handler/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (

"github.com/cloudwego/hertz/pkg/app"
"github.com/cloudwego/hertz/pkg/common/utils"
v1 "github.com/ringsaturn/tzf-server/proto/v1"
v1 "github.com/ringsaturn/tzf-server/tzf/v1"
)

func GetTimezoneName(ctx context.Context, in *v1.GetTimezoneRequest) (*v1.GetTimezoneResponse, error) {
Expand Down
2 changes: 1 addition & 1 deletion internal/handler/engine.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import (
"github.com/paulmach/orb/maptile"
"github.com/ringsaturn/tzf"
tzfrellite "github.com/ringsaturn/tzf-rel-lite"
v1 "github.com/ringsaturn/tzf-server/proto/v1"
v1 "github.com/ringsaturn/tzf-server/tzf/v1"
"github.com/ringsaturn/tzf/convert"
"github.com/ringsaturn/tzf/pb"
"github.com/ringsaturn/tzf/reduce"
Expand Down
2 changes: 1 addition & 1 deletion internal/handler/engine_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
"github.com/cloudwego/hertz/pkg/common/ut"
"github.com/google/go-cmp/cmp"
"github.com/ringsaturn/tzf-server/internal/handler"
v1 "github.com/ringsaturn/tzf-server/proto/v1"
v1 "github.com/ringsaturn/tzf-server/tzf/v1"
"go.uber.org/zap"
"google.golang.org/protobuf/proto"
"google.golang.org/protobuf/testing/protocmp"
Expand Down
4 changes: 2 additions & 2 deletions internal/handler/redis_server.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,9 @@ func redisDefaultCmd(conn redcon.Conn, cmd redcon.Command) {
conn.WriteError("ERR unknown command '" + string(cmd.Args[0]) + "'")
}

func redisPingCmd(conn redcon.Conn, cmd redcon.Command) { conn.WriteString("PONG") }
func redisPingCmd(conn redcon.Conn, _ redcon.Command) { conn.WriteString("PONG") }

func redisQuitCmd(conn redcon.Conn, cmd redcon.Command) { conn.WriteString("OK"); conn.Close() }
func redisQuitCmd(conn redcon.Conn, _ redcon.Command) { conn.WriteString("OK"); conn.Close() }

func RedisHandler(conn redcon.Conn, cmd redcon.Command) {
inputCmd := strings.ToLower(string(cmd.Args[0]))
Expand Down
2 changes: 1 addition & 1 deletion internal/handler/web.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (

"github.com/cloudwego/hertz/pkg/app"
"github.com/cloudwego/hertz/pkg/common/utils"
v1 "github.com/ringsaturn/tzf-server/proto/v1"
v1 "github.com/ringsaturn/tzf-server/tzf/v1"
)

type GetTimezoneInfoPageResponseItem struct {
Expand Down
255 changes: 127 additions & 128 deletions proto/v1/api.pb.go → tzf/v1/api.pb.go

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions proto/v1/api.proto → tzf/v1/api.proto
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
syntax = "proto3";

option go_package = "github.com/ringsaturn/tzf-server/proto/v1;v1";
option go_package = "github.com/ringsaturn/tzf-server/tzf/v1;v1";

package proto.v1;
package tzf.v1;

import "google/api/annotations.proto";
import "google/api/client.proto";
Expand Down
12 changes: 6 additions & 6 deletions proto/v1/api_grpc.pb.go → tzf/v1/api_grpc.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions proto/v1/api_hertz.pb.go → tzf/v1/api_hertz.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 303cddc

Please sign in to comment.