From 303cddc59576fc5ac1538daaab82a28311736c9a Mon Sep 17 00:00:00 2001 From: ringsaturn Date: Sun, 10 Mar 2024 19:36:09 +0800 Subject: [PATCH] mv pb dir --- Makefile | 2 +- internal/handler/api.go | 2 +- internal/handler/engine.go | 2 +- internal/handler/engine_test.go | 2 +- internal/handler/redis_server.go | 4 +- internal/handler/web.go | 2 +- {proto => tzf}/v1/api.pb.go | 255 +++++++++++++++--------------- {proto => tzf}/v1/api.proto | 4 +- {proto => tzf}/v1/api_grpc.pb.go | 12 +- {proto => tzf}/v1/api_hertz.pb.go | 8 +- 10 files changed, 146 insertions(+), 147 deletions(-) rename {proto => tzf}/v1/api.pb.go (52%) rename {proto => tzf}/v1/api.proto (95%) rename {proto => tzf}/v1/api_grpc.pb.go (95%) rename {proto => tzf}/v1/api_hertz.pb.go (90%) diff --git a/Makefile b/Makefile index 22c9de6..aa83713 100644 --- a/Makefile +++ b/Makefile @@ -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: diff --git a/internal/handler/api.go b/internal/handler/api.go index f53f8e8..6a1c822 100644 --- a/internal/handler/api.go +++ b/internal/handler/api.go @@ -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) { diff --git a/internal/handler/engine.go b/internal/handler/engine.go index 09906cd..5f9d0b9 100644 --- a/internal/handler/engine.go +++ b/internal/handler/engine.go @@ -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" diff --git a/internal/handler/engine_test.go b/internal/handler/engine_test.go index a4ce872..be492db 100644 --- a/internal/handler/engine_test.go +++ b/internal/handler/engine_test.go @@ -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" diff --git a/internal/handler/redis_server.go b/internal/handler/redis_server.go index fb70c81..4107078 100644 --- a/internal/handler/redis_server.go +++ b/internal/handler/redis_server.go @@ -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])) diff --git a/internal/handler/web.go b/internal/handler/web.go index 3024275..a3a29f4 100644 --- a/internal/handler/web.go +++ b/internal/handler/web.go @@ -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 { diff --git a/proto/v1/api.pb.go b/tzf/v1/api.pb.go similarity index 52% rename from proto/v1/api.pb.go rename to tzf/v1/api.pb.go index 500c3a2..fa94cc2 100644 --- a/proto/v1/api.pb.go +++ b/tzf/v1/api.pb.go @@ -2,7 +2,7 @@ // versions: // protoc-gen-go v1.30.0 // protoc (unknown) -// source: proto/v1/api.proto +// source: tzf/v1/api.proto package v1 @@ -35,7 +35,7 @@ type GetTimezoneRequest struct { func (x *GetTimezoneRequest) Reset() { *x = GetTimezoneRequest{} if protoimpl.UnsafeEnabled { - mi := &file_proto_v1_api_proto_msgTypes[0] + mi := &file_tzf_v1_api_proto_msgTypes[0] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -48,7 +48,7 @@ func (x *GetTimezoneRequest) String() string { func (*GetTimezoneRequest) ProtoMessage() {} func (x *GetTimezoneRequest) ProtoReflect() protoreflect.Message { - mi := &file_proto_v1_api_proto_msgTypes[0] + mi := &file_tzf_v1_api_proto_msgTypes[0] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -61,7 +61,7 @@ func (x *GetTimezoneRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use GetTimezoneRequest.ProtoReflect.Descriptor instead. func (*GetTimezoneRequest) Descriptor() ([]byte, []int) { - return file_proto_v1_api_proto_rawDescGZIP(), []int{0} + return file_tzf_v1_api_proto_rawDescGZIP(), []int{0} } func (x *GetTimezoneRequest) GetLongitude() float64 { @@ -91,7 +91,7 @@ type GetTimezonesRequest struct { func (x *GetTimezonesRequest) Reset() { *x = GetTimezonesRequest{} if protoimpl.UnsafeEnabled { - mi := &file_proto_v1_api_proto_msgTypes[1] + mi := &file_tzf_v1_api_proto_msgTypes[1] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -104,7 +104,7 @@ func (x *GetTimezonesRequest) String() string { func (*GetTimezonesRequest) ProtoMessage() {} func (x *GetTimezonesRequest) ProtoReflect() protoreflect.Message { - mi := &file_proto_v1_api_proto_msgTypes[1] + mi := &file_tzf_v1_api_proto_msgTypes[1] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -117,7 +117,7 @@ func (x *GetTimezonesRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use GetTimezonesRequest.ProtoReflect.Descriptor instead. func (*GetTimezonesRequest) Descriptor() ([]byte, []int) { - return file_proto_v1_api_proto_rawDescGZIP(), []int{1} + return file_tzf_v1_api_proto_rawDescGZIP(), []int{1} } func (x *GetTimezonesRequest) GetLongitude() float64 { @@ -147,7 +147,7 @@ type GetTimezoneResponse struct { func (x *GetTimezoneResponse) Reset() { *x = GetTimezoneResponse{} if protoimpl.UnsafeEnabled { - mi := &file_proto_v1_api_proto_msgTypes[2] + mi := &file_tzf_v1_api_proto_msgTypes[2] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -160,7 +160,7 @@ func (x *GetTimezoneResponse) String() string { func (*GetTimezoneResponse) ProtoMessage() {} func (x *GetTimezoneResponse) ProtoReflect() protoreflect.Message { - mi := &file_proto_v1_api_proto_msgTypes[2] + mi := &file_tzf_v1_api_proto_msgTypes[2] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -173,7 +173,7 @@ func (x *GetTimezoneResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use GetTimezoneResponse.ProtoReflect.Descriptor instead. func (*GetTimezoneResponse) Descriptor() ([]byte, []int) { - return file_proto_v1_api_proto_rawDescGZIP(), []int{2} + return file_tzf_v1_api_proto_rawDescGZIP(), []int{2} } func (x *GetTimezoneResponse) GetTimezone() string { @@ -208,7 +208,7 @@ type GetTimezonesResponse struct { func (x *GetTimezonesResponse) Reset() { *x = GetTimezonesResponse{} if protoimpl.UnsafeEnabled { - mi := &file_proto_v1_api_proto_msgTypes[3] + mi := &file_tzf_v1_api_proto_msgTypes[3] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -221,7 +221,7 @@ func (x *GetTimezonesResponse) String() string { func (*GetTimezonesResponse) ProtoMessage() {} func (x *GetTimezonesResponse) ProtoReflect() protoreflect.Message { - mi := &file_proto_v1_api_proto_msgTypes[3] + mi := &file_tzf_v1_api_proto_msgTypes[3] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -234,7 +234,7 @@ func (x *GetTimezonesResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use GetTimezonesResponse.ProtoReflect.Descriptor instead. func (*GetTimezonesResponse) Descriptor() ([]byte, []int) { - return file_proto_v1_api_proto_rawDescGZIP(), []int{3} + return file_tzf_v1_api_proto_rawDescGZIP(), []int{3} } func (x *GetTimezonesResponse) GetTimezones() []*GetTimezoneResponse { @@ -253,7 +253,7 @@ type GetAllTimezonesRequest struct { func (x *GetAllTimezonesRequest) Reset() { *x = GetAllTimezonesRequest{} if protoimpl.UnsafeEnabled { - mi := &file_proto_v1_api_proto_msgTypes[4] + mi := &file_tzf_v1_api_proto_msgTypes[4] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -266,7 +266,7 @@ func (x *GetAllTimezonesRequest) String() string { func (*GetAllTimezonesRequest) ProtoMessage() {} func (x *GetAllTimezonesRequest) ProtoReflect() protoreflect.Message { - mi := &file_proto_v1_api_proto_msgTypes[4] + mi := &file_tzf_v1_api_proto_msgTypes[4] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -279,7 +279,7 @@ func (x *GetAllTimezonesRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use GetAllTimezonesRequest.ProtoReflect.Descriptor instead. func (*GetAllTimezonesRequest) Descriptor() ([]byte, []int) { - return file_proto_v1_api_proto_rawDescGZIP(), []int{4} + return file_tzf_v1_api_proto_rawDescGZIP(), []int{4} } type GetAllTimezonesResponse struct { @@ -293,7 +293,7 @@ type GetAllTimezonesResponse struct { func (x *GetAllTimezonesResponse) Reset() { *x = GetAllTimezonesResponse{} if protoimpl.UnsafeEnabled { - mi := &file_proto_v1_api_proto_msgTypes[5] + mi := &file_tzf_v1_api_proto_msgTypes[5] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -306,7 +306,7 @@ func (x *GetAllTimezonesResponse) String() string { func (*GetAllTimezonesResponse) ProtoMessage() {} func (x *GetAllTimezonesResponse) ProtoReflect() protoreflect.Message { - mi := &file_proto_v1_api_proto_msgTypes[5] + mi := &file_tzf_v1_api_proto_msgTypes[5] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -319,7 +319,7 @@ func (x *GetAllTimezonesResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use GetAllTimezonesResponse.ProtoReflect.Descriptor instead. func (*GetAllTimezonesResponse) Descriptor() ([]byte, []int) { - return file_proto_v1_api_proto_rawDescGZIP(), []int{5} + return file_tzf_v1_api_proto_rawDescGZIP(), []int{5} } func (x *GetAllTimezonesResponse) GetTimezones() []*GetTimezoneResponse { @@ -329,110 +329,109 @@ func (x *GetAllTimezonesResponse) GetTimezones() []*GetTimezoneResponse { return nil } -var File_proto_v1_api_proto protoreflect.FileDescriptor - -var file_proto_v1_api_proto_rawDesc = []byte{ - 0x0a, 0x12, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x76, 0x31, 0x2f, 0x61, 0x70, 0x69, 0x2e, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x08, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x76, 0x31, 0x1a, 0x1c, - 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, - 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x17, 0x67, 0x6f, - 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x2e, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, - 0x69, 0x2f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x62, 0x65, 0x68, 0x61, 0x76, 0x69, 0x6f, 0x72, - 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, - 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x58, 0x0a, 0x12, 0x47, 0x65, 0x74, 0x54, 0x69, 0x6d, - 0x65, 0x7a, 0x6f, 0x6e, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x21, 0x0a, 0x09, - 0x6c, 0x6f, 0x6e, 0x67, 0x69, 0x74, 0x75, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x01, 0x42, - 0x03, 0xe0, 0x41, 0x02, 0x52, 0x09, 0x6c, 0x6f, 0x6e, 0x67, 0x69, 0x74, 0x75, 0x64, 0x65, 0x12, - 0x1f, 0x0a, 0x08, 0x6c, 0x61, 0x74, 0x69, 0x74, 0x75, 0x64, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, - 0x01, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x08, 0x6c, 0x61, 0x74, 0x69, 0x74, 0x75, 0x64, 0x65, - 0x22, 0x59, 0x0a, 0x13, 0x47, 0x65, 0x74, 0x54, 0x69, 0x6d, 0x65, 0x7a, 0x6f, 0x6e, 0x65, 0x73, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x21, 0x0a, 0x09, 0x6c, 0x6f, 0x6e, 0x67, 0x69, - 0x74, 0x75, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x01, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, - 0x09, 0x6c, 0x6f, 0x6e, 0x67, 0x69, 0x74, 0x75, 0x64, 0x65, 0x12, 0x1f, 0x0a, 0x08, 0x6c, 0x61, - 0x74, 0x69, 0x74, 0x75, 0x64, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x01, 0x42, 0x03, 0xe0, 0x41, - 0x02, 0x52, 0x08, 0x6c, 0x61, 0x74, 0x69, 0x74, 0x75, 0x64, 0x65, 0x22, 0x88, 0x01, 0x0a, 0x13, - 0x47, 0x65, 0x74, 0x54, 0x69, 0x6d, 0x65, 0x7a, 0x6f, 0x6e, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x74, 0x69, 0x6d, 0x65, 0x7a, 0x6f, 0x6e, 0x65, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x74, 0x69, 0x6d, 0x65, 0x7a, 0x6f, 0x6e, 0x65, 0x12, - 0x22, 0x0a, 0x0c, 0x61, 0x62, 0x62, 0x72, 0x65, 0x76, 0x69, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, - 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x61, 0x62, 0x62, 0x72, 0x65, 0x76, 0x69, 0x61, 0x74, - 0x69, 0x6f, 0x6e, 0x12, 0x31, 0x0a, 0x06, 0x6f, 0x66, 0x66, 0x73, 0x65, 0x74, 0x18, 0x03, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x06, - 0x6f, 0x66, 0x66, 0x73, 0x65, 0x74, 0x22, 0x53, 0x0a, 0x14, 0x47, 0x65, 0x74, 0x54, 0x69, 0x6d, - 0x65, 0x7a, 0x6f, 0x6e, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3b, - 0x0a, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x7a, 0x6f, 0x6e, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, - 0x0b, 0x32, 0x1d, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, - 0x54, 0x69, 0x6d, 0x65, 0x7a, 0x6f, 0x6e, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x52, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x7a, 0x6f, 0x6e, 0x65, 0x73, 0x22, 0x18, 0x0a, 0x16, 0x47, - 0x65, 0x74, 0x41, 0x6c, 0x6c, 0x54, 0x69, 0x6d, 0x65, 0x7a, 0x6f, 0x6e, 0x65, 0x73, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x56, 0x0a, 0x17, 0x47, 0x65, 0x74, 0x41, 0x6c, 0x6c, 0x54, - 0x69, 0x6d, 0x65, 0x7a, 0x6f, 0x6e, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x12, 0x3b, 0x0a, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x7a, 0x6f, 0x6e, 0x65, 0x73, 0x18, 0x01, 0x20, - 0x03, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x76, 0x31, 0x2e, 0x47, - 0x65, 0x74, 0x54, 0x69, 0x6d, 0x65, 0x7a, 0x6f, 0x6e, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x52, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x7a, 0x6f, 0x6e, 0x65, 0x73, 0x32, 0xd2, 0x02, - 0x0a, 0x0a, 0x54, 0x5a, 0x46, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x5e, 0x0a, 0x0b, - 0x47, 0x65, 0x74, 0x54, 0x69, 0x6d, 0x65, 0x7a, 0x6f, 0x6e, 0x65, 0x12, 0x1c, 0x2e, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x54, 0x69, 0x6d, 0x65, 0x7a, 0x6f, - 0x6e, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1d, 0x2e, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x54, 0x69, 0x6d, 0x65, 0x7a, 0x6f, 0x6e, 0x65, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x12, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x0c, - 0x12, 0x0a, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x74, 0x7a, 0x12, 0x62, 0x0a, 0x0c, - 0x47, 0x65, 0x74, 0x54, 0x69, 0x6d, 0x65, 0x7a, 0x6f, 0x6e, 0x65, 0x73, 0x12, 0x1d, 0x2e, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x54, 0x69, 0x6d, 0x65, 0x7a, - 0x6f, 0x6e, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1e, 0x2e, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x54, 0x69, 0x6d, 0x65, 0x7a, 0x6f, +var File_tzf_v1_api_proto protoreflect.FileDescriptor + +var file_tzf_v1_api_proto_rawDesc = []byte{ + 0x0a, 0x10, 0x74, 0x7a, 0x66, 0x2f, 0x76, 0x31, 0x2f, 0x61, 0x70, 0x69, 0x2e, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x12, 0x06, 0x74, 0x7a, 0x66, 0x2e, 0x76, 0x31, 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67, + 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x17, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, + 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x66, 0x69, + 0x65, 0x6c, 0x64, 0x5f, 0x62, 0x65, 0x68, 0x61, 0x76, 0x69, 0x6f, 0x72, 0x2e, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x1a, 0x1e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x62, 0x75, 0x66, 0x2f, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x22, 0x58, 0x0a, 0x12, 0x47, 0x65, 0x74, 0x54, 0x69, 0x6d, 0x65, 0x7a, 0x6f, 0x6e, + 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x21, 0x0a, 0x09, 0x6c, 0x6f, 0x6e, 0x67, + 0x69, 0x74, 0x75, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x01, 0x42, 0x03, 0xe0, 0x41, 0x02, + 0x52, 0x09, 0x6c, 0x6f, 0x6e, 0x67, 0x69, 0x74, 0x75, 0x64, 0x65, 0x12, 0x1f, 0x0a, 0x08, 0x6c, + 0x61, 0x74, 0x69, 0x74, 0x75, 0x64, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x01, 0x42, 0x03, 0xe0, + 0x41, 0x02, 0x52, 0x08, 0x6c, 0x61, 0x74, 0x69, 0x74, 0x75, 0x64, 0x65, 0x22, 0x59, 0x0a, 0x13, + 0x47, 0x65, 0x74, 0x54, 0x69, 0x6d, 0x65, 0x7a, 0x6f, 0x6e, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x12, 0x21, 0x0a, 0x09, 0x6c, 0x6f, 0x6e, 0x67, 0x69, 0x74, 0x75, 0x64, 0x65, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x01, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x09, 0x6c, 0x6f, 0x6e, + 0x67, 0x69, 0x74, 0x75, 0x64, 0x65, 0x12, 0x1f, 0x0a, 0x08, 0x6c, 0x61, 0x74, 0x69, 0x74, 0x75, + 0x64, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x01, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x08, 0x6c, + 0x61, 0x74, 0x69, 0x74, 0x75, 0x64, 0x65, 0x22, 0x88, 0x01, 0x0a, 0x13, 0x47, 0x65, 0x74, 0x54, + 0x69, 0x6d, 0x65, 0x7a, 0x6f, 0x6e, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, + 0x1a, 0x0a, 0x08, 0x74, 0x69, 0x6d, 0x65, 0x7a, 0x6f, 0x6e, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x08, 0x74, 0x69, 0x6d, 0x65, 0x7a, 0x6f, 0x6e, 0x65, 0x12, 0x22, 0x0a, 0x0c, 0x61, + 0x62, 0x62, 0x72, 0x65, 0x76, 0x69, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x0c, 0x61, 0x62, 0x62, 0x72, 0x65, 0x76, 0x69, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, + 0x31, 0x0a, 0x06, 0x6f, 0x66, 0x66, 0x73, 0x65, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x19, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, + 0x66, 0x2e, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x06, 0x6f, 0x66, 0x66, 0x73, + 0x65, 0x74, 0x22, 0x51, 0x0a, 0x14, 0x47, 0x65, 0x74, 0x54, 0x69, 0x6d, 0x65, 0x7a, 0x6f, 0x6e, + 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x39, 0x0a, 0x09, 0x74, 0x69, + 0x6d, 0x65, 0x7a, 0x6f, 0x6e, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1b, 0x2e, + 0x74, 0x7a, 0x66, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x54, 0x69, 0x6d, 0x65, 0x7a, 0x6f, + 0x6e, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x52, 0x09, 0x74, 0x69, 0x6d, 0x65, + 0x7a, 0x6f, 0x6e, 0x65, 0x73, 0x22, 0x18, 0x0a, 0x16, 0x47, 0x65, 0x74, 0x41, 0x6c, 0x6c, 0x54, + 0x69, 0x6d, 0x65, 0x7a, 0x6f, 0x6e, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, + 0x54, 0x0a, 0x17, 0x47, 0x65, 0x74, 0x41, 0x6c, 0x6c, 0x54, 0x69, 0x6d, 0x65, 0x7a, 0x6f, 0x6e, + 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x39, 0x0a, 0x09, 0x74, 0x69, + 0x6d, 0x65, 0x7a, 0x6f, 0x6e, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1b, 0x2e, + 0x74, 0x7a, 0x66, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x54, 0x69, 0x6d, 0x65, 0x7a, 0x6f, + 0x6e, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x52, 0x09, 0x74, 0x69, 0x6d, 0x65, + 0x7a, 0x6f, 0x6e, 0x65, 0x73, 0x32, 0xc6, 0x02, 0x0a, 0x0a, 0x54, 0x5a, 0x46, 0x53, 0x65, 0x72, + 0x76, 0x69, 0x63, 0x65, 0x12, 0x5a, 0x0a, 0x0b, 0x47, 0x65, 0x74, 0x54, 0x69, 0x6d, 0x65, 0x7a, + 0x6f, 0x6e, 0x65, 0x12, 0x1a, 0x2e, 0x74, 0x7a, 0x66, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, + 0x54, 0x69, 0x6d, 0x65, 0x7a, 0x6f, 0x6e, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, + 0x1b, 0x2e, 0x74, 0x7a, 0x66, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x54, 0x69, 0x6d, 0x65, + 0x7a, 0x6f, 0x6e, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x12, 0x82, 0xd3, + 0xe4, 0x93, 0x02, 0x0c, 0x12, 0x0a, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x74, 0x7a, + 0x12, 0x5e, 0x0a, 0x0c, 0x47, 0x65, 0x74, 0x54, 0x69, 0x6d, 0x65, 0x7a, 0x6f, 0x6e, 0x65, 0x73, + 0x12, 0x1b, 0x2e, 0x74, 0x7a, 0x66, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x54, 0x69, 0x6d, + 0x65, 0x7a, 0x6f, 0x6e, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1c, 0x2e, + 0x74, 0x7a, 0x66, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x54, 0x69, 0x6d, 0x65, 0x7a, 0x6f, 0x6e, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x13, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x0d, 0x12, 0x0b, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x74, 0x7a, 0x73, - 0x12, 0x6f, 0x0a, 0x0f, 0x47, 0x65, 0x74, 0x41, 0x6c, 0x6c, 0x54, 0x69, 0x6d, 0x65, 0x7a, 0x6f, - 0x6e, 0x65, 0x73, 0x12, 0x20, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x76, 0x31, 0x2e, 0x47, - 0x65, 0x74, 0x41, 0x6c, 0x6c, 0x54, 0x69, 0x6d, 0x65, 0x7a, 0x6f, 0x6e, 0x65, 0x73, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x21, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x76, 0x31, - 0x2e, 0x47, 0x65, 0x74, 0x41, 0x6c, 0x6c, 0x54, 0x69, 0x6d, 0x65, 0x7a, 0x6f, 0x6e, 0x65, 0x73, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x17, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x11, - 0x12, 0x0f, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x74, 0x7a, 0x73, 0x2f, 0x61, 0x6c, - 0x6c, 0x1a, 0x0f, 0xca, 0x41, 0x0c, 0x30, 0x2e, 0x30, 0x2e, 0x30, 0x2e, 0x30, 0x3a, 0x38, 0x30, - 0x38, 0x30, 0x42, 0x2e, 0x5a, 0x2c, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, - 0x2f, 0x72, 0x69, 0x6e, 0x67, 0x73, 0x61, 0x74, 0x75, 0x72, 0x6e, 0x2f, 0x74, 0x7a, 0x66, 0x2d, - 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x76, 0x31, 0x3b, - 0x76, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x12, 0x6b, 0x0a, 0x0f, 0x47, 0x65, 0x74, 0x41, 0x6c, 0x6c, 0x54, 0x69, 0x6d, 0x65, 0x7a, 0x6f, + 0x6e, 0x65, 0x73, 0x12, 0x1e, 0x2e, 0x74, 0x7a, 0x66, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, + 0x41, 0x6c, 0x6c, 0x54, 0x69, 0x6d, 0x65, 0x7a, 0x6f, 0x6e, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x1a, 0x1f, 0x2e, 0x74, 0x7a, 0x66, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, + 0x41, 0x6c, 0x6c, 0x54, 0x69, 0x6d, 0x65, 0x7a, 0x6f, 0x6e, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x17, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x11, 0x12, 0x0f, 0x2f, 0x61, + 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x74, 0x7a, 0x73, 0x2f, 0x61, 0x6c, 0x6c, 0x1a, 0x0f, 0xca, + 0x41, 0x0c, 0x30, 0x2e, 0x30, 0x2e, 0x30, 0x2e, 0x30, 0x3a, 0x38, 0x30, 0x38, 0x30, 0x42, 0x2c, + 0x5a, 0x2a, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x72, 0x69, 0x6e, + 0x67, 0x73, 0x61, 0x74, 0x75, 0x72, 0x6e, 0x2f, 0x74, 0x7a, 0x66, 0x2d, 0x73, 0x65, 0x72, 0x76, + 0x65, 0x72, 0x2f, 0x74, 0x7a, 0x66, 0x2f, 0x76, 0x31, 0x3b, 0x76, 0x31, 0x62, 0x06, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x33, } var ( - file_proto_v1_api_proto_rawDescOnce sync.Once - file_proto_v1_api_proto_rawDescData = file_proto_v1_api_proto_rawDesc + file_tzf_v1_api_proto_rawDescOnce sync.Once + file_tzf_v1_api_proto_rawDescData = file_tzf_v1_api_proto_rawDesc ) -func file_proto_v1_api_proto_rawDescGZIP() []byte { - file_proto_v1_api_proto_rawDescOnce.Do(func() { - file_proto_v1_api_proto_rawDescData = protoimpl.X.CompressGZIP(file_proto_v1_api_proto_rawDescData) +func file_tzf_v1_api_proto_rawDescGZIP() []byte { + file_tzf_v1_api_proto_rawDescOnce.Do(func() { + file_tzf_v1_api_proto_rawDescData = protoimpl.X.CompressGZIP(file_tzf_v1_api_proto_rawDescData) }) - return file_proto_v1_api_proto_rawDescData + return file_tzf_v1_api_proto_rawDescData } -var file_proto_v1_api_proto_msgTypes = make([]protoimpl.MessageInfo, 6) -var file_proto_v1_api_proto_goTypes = []interface{}{ - (*GetTimezoneRequest)(nil), // 0: proto.v1.GetTimezoneRequest - (*GetTimezonesRequest)(nil), // 1: proto.v1.GetTimezonesRequest - (*GetTimezoneResponse)(nil), // 2: proto.v1.GetTimezoneResponse - (*GetTimezonesResponse)(nil), // 3: proto.v1.GetTimezonesResponse - (*GetAllTimezonesRequest)(nil), // 4: proto.v1.GetAllTimezonesRequest - (*GetAllTimezonesResponse)(nil), // 5: proto.v1.GetAllTimezonesResponse +var file_tzf_v1_api_proto_msgTypes = make([]protoimpl.MessageInfo, 6) +var file_tzf_v1_api_proto_goTypes = []interface{}{ + (*GetTimezoneRequest)(nil), // 0: tzf.v1.GetTimezoneRequest + (*GetTimezonesRequest)(nil), // 1: tzf.v1.GetTimezonesRequest + (*GetTimezoneResponse)(nil), // 2: tzf.v1.GetTimezoneResponse + (*GetTimezonesResponse)(nil), // 3: tzf.v1.GetTimezonesResponse + (*GetAllTimezonesRequest)(nil), // 4: tzf.v1.GetAllTimezonesRequest + (*GetAllTimezonesResponse)(nil), // 5: tzf.v1.GetAllTimezonesResponse (*durationpb.Duration)(nil), // 6: google.protobuf.Duration } -var file_proto_v1_api_proto_depIdxs = []int32{ - 6, // 0: proto.v1.GetTimezoneResponse.offset:type_name -> google.protobuf.Duration - 2, // 1: proto.v1.GetTimezonesResponse.timezones:type_name -> proto.v1.GetTimezoneResponse - 2, // 2: proto.v1.GetAllTimezonesResponse.timezones:type_name -> proto.v1.GetTimezoneResponse - 0, // 3: proto.v1.TZFService.GetTimezone:input_type -> proto.v1.GetTimezoneRequest - 1, // 4: proto.v1.TZFService.GetTimezones:input_type -> proto.v1.GetTimezonesRequest - 4, // 5: proto.v1.TZFService.GetAllTimezones:input_type -> proto.v1.GetAllTimezonesRequest - 2, // 6: proto.v1.TZFService.GetTimezone:output_type -> proto.v1.GetTimezoneResponse - 3, // 7: proto.v1.TZFService.GetTimezones:output_type -> proto.v1.GetTimezonesResponse - 5, // 8: proto.v1.TZFService.GetAllTimezones:output_type -> proto.v1.GetAllTimezonesResponse +var file_tzf_v1_api_proto_depIdxs = []int32{ + 6, // 0: tzf.v1.GetTimezoneResponse.offset:type_name -> google.protobuf.Duration + 2, // 1: tzf.v1.GetTimezonesResponse.timezones:type_name -> tzf.v1.GetTimezoneResponse + 2, // 2: tzf.v1.GetAllTimezonesResponse.timezones:type_name -> tzf.v1.GetTimezoneResponse + 0, // 3: tzf.v1.TZFService.GetTimezone:input_type -> tzf.v1.GetTimezoneRequest + 1, // 4: tzf.v1.TZFService.GetTimezones:input_type -> tzf.v1.GetTimezonesRequest + 4, // 5: tzf.v1.TZFService.GetAllTimezones:input_type -> tzf.v1.GetAllTimezonesRequest + 2, // 6: tzf.v1.TZFService.GetTimezone:output_type -> tzf.v1.GetTimezoneResponse + 3, // 7: tzf.v1.TZFService.GetTimezones:output_type -> tzf.v1.GetTimezonesResponse + 5, // 8: tzf.v1.TZFService.GetAllTimezones:output_type -> tzf.v1.GetAllTimezonesResponse 6, // [6:9] is the sub-list for method output_type 3, // [3:6] is the sub-list for method input_type 3, // [3:3] is the sub-list for extension type_name @@ -440,13 +439,13 @@ var file_proto_v1_api_proto_depIdxs = []int32{ 0, // [0:3] is the sub-list for field type_name } -func init() { file_proto_v1_api_proto_init() } -func file_proto_v1_api_proto_init() { - if File_proto_v1_api_proto != nil { +func init() { file_tzf_v1_api_proto_init() } +func file_tzf_v1_api_proto_init() { + if File_tzf_v1_api_proto != nil { return } if !protoimpl.UnsafeEnabled { - file_proto_v1_api_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + file_tzf_v1_api_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*GetTimezoneRequest); i { case 0: return &v.state @@ -458,7 +457,7 @@ func file_proto_v1_api_proto_init() { return nil } } - file_proto_v1_api_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + file_tzf_v1_api_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*GetTimezonesRequest); i { case 0: return &v.state @@ -470,7 +469,7 @@ func file_proto_v1_api_proto_init() { return nil } } - file_proto_v1_api_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + file_tzf_v1_api_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*GetTimezoneResponse); i { case 0: return &v.state @@ -482,7 +481,7 @@ func file_proto_v1_api_proto_init() { return nil } } - file_proto_v1_api_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + file_tzf_v1_api_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*GetTimezonesResponse); i { case 0: return &v.state @@ -494,7 +493,7 @@ func file_proto_v1_api_proto_init() { return nil } } - file_proto_v1_api_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + file_tzf_v1_api_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*GetAllTimezonesRequest); i { case 0: return &v.state @@ -506,7 +505,7 @@ func file_proto_v1_api_proto_init() { return nil } } - file_proto_v1_api_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + file_tzf_v1_api_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*GetAllTimezonesResponse); i { case 0: return &v.state @@ -523,18 +522,18 @@ func file_proto_v1_api_proto_init() { out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_proto_v1_api_proto_rawDesc, + RawDescriptor: file_tzf_v1_api_proto_rawDesc, NumEnums: 0, NumMessages: 6, NumExtensions: 0, NumServices: 1, }, - GoTypes: file_proto_v1_api_proto_goTypes, - DependencyIndexes: file_proto_v1_api_proto_depIdxs, - MessageInfos: file_proto_v1_api_proto_msgTypes, + GoTypes: file_tzf_v1_api_proto_goTypes, + DependencyIndexes: file_tzf_v1_api_proto_depIdxs, + MessageInfos: file_tzf_v1_api_proto_msgTypes, }.Build() - File_proto_v1_api_proto = out.File - file_proto_v1_api_proto_rawDesc = nil - file_proto_v1_api_proto_goTypes = nil - file_proto_v1_api_proto_depIdxs = nil + File_tzf_v1_api_proto = out.File + file_tzf_v1_api_proto_rawDesc = nil + file_tzf_v1_api_proto_goTypes = nil + file_tzf_v1_api_proto_depIdxs = nil } diff --git a/proto/v1/api.proto b/tzf/v1/api.proto similarity index 95% rename from proto/v1/api.proto rename to tzf/v1/api.proto index b944183..0197562 100644 --- a/proto/v1/api.proto +++ b/tzf/v1/api.proto @@ -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"; diff --git a/proto/v1/api_grpc.pb.go b/tzf/v1/api_grpc.pb.go similarity index 95% rename from proto/v1/api_grpc.pb.go rename to tzf/v1/api_grpc.pb.go index 08c1f22..1151eb1 100644 --- a/proto/v1/api_grpc.pb.go +++ b/tzf/v1/api_grpc.pb.go @@ -2,7 +2,7 @@ // versions: // - protoc-gen-go-grpc v1.3.0 // - protoc (unknown) -// source: proto/v1/api.proto +// source: tzf/v1/api.proto package v1 @@ -19,9 +19,9 @@ import ( const _ = grpc.SupportPackageIsVersion7 const ( - TZFService_GetTimezone_FullMethodName = "/proto.v1.TZFService/GetTimezone" - TZFService_GetTimezones_FullMethodName = "/proto.v1.TZFService/GetTimezones" - TZFService_GetAllTimezones_FullMethodName = "/proto.v1.TZFService/GetAllTimezones" + TZFService_GetTimezone_FullMethodName = "/tzf.v1.TZFService/GetTimezone" + TZFService_GetTimezones_FullMethodName = "/tzf.v1.TZFService/GetTimezones" + TZFService_GetAllTimezones_FullMethodName = "/tzf.v1.TZFService/GetAllTimezones" ) // TZFServiceClient is the client API for TZFService service. @@ -162,7 +162,7 @@ func _TZFService_GetAllTimezones_Handler(srv interface{}, ctx context.Context, d // It's only intended for direct use with grpc.RegisterService, // and not to be introspected or modified (even as a copy) var TZFService_ServiceDesc = grpc.ServiceDesc{ - ServiceName: "proto.v1.TZFService", + ServiceName: "tzf.v1.TZFService", HandlerType: (*TZFServiceServer)(nil), Methods: []grpc.MethodDesc{ { @@ -179,5 +179,5 @@ var TZFService_ServiceDesc = grpc.ServiceDesc{ }, }, Streams: []grpc.StreamDesc{}, - Metadata: "proto/v1/api.proto", + Metadata: "tzf/v1/api.proto", } diff --git a/proto/v1/api_hertz.pb.go b/tzf/v1/api_hertz.pb.go similarity index 90% rename from proto/v1/api_hertz.pb.go rename to tzf/v1/api_hertz.pb.go index 836e5e7..8fa12df 100644 --- a/proto/v1/api_hertz.pb.go +++ b/tzf/v1/api_hertz.pb.go @@ -2,7 +2,7 @@ // versions: // - protoc-gen-go-hertz v0.3.0 // - protoc (unknown) -// source: proto/v1/api.proto +// source: tzf/v1/api.proto package v1 @@ -22,9 +22,9 @@ var _ = new(app.Handler) var _ = new(http.Handler) var _ = new(xhertz.Error) -const OperationTZFServiceGetAllTimezones = "/proto.v1.TZFService/GetAllTimezones" -const OperationTZFServiceGetTimezone = "/proto.v1.TZFService/GetTimezone" -const OperationTZFServiceGetTimezones = "/proto.v1.TZFService/GetTimezones" +const OperationTZFServiceGetAllTimezones = "/tzf.v1.TZFService/GetAllTimezones" +const OperationTZFServiceGetTimezone = "/tzf.v1.TZFService/GetTimezone" +const OperationTZFServiceGetTimezones = "/tzf.v1.TZFService/GetTimezones" type TZFServiceHTTPServer interface { GetAllTimezones(context.Context, *GetAllTimezonesRequest) (*GetAllTimezonesResponse, error)