From 71cddf0aca8e0ebef0145e9c65f1753820e833dd Mon Sep 17 00:00:00 2001 From: Michael Date: Tue, 15 Dec 2020 21:45:11 +0000 Subject: [PATCH] moved protobuf to client package Signed-off-by: Michael --- client/client.go | 2 +- {pb => client/pb}/response.pb.go | 5 +++-- client/status.go | 2 +- 3 files changed, 5 insertions(+), 4 deletions(-) rename {pb => client/pb}/response.pb.go (98%) diff --git a/client/client.go b/client/client.go index 2141375..5955b9d 100644 --- a/client/client.go +++ b/client/client.go @@ -7,7 +7,7 @@ import ( "strconv" "time" - "git.0cd.xyz/michael/mcstatus/pb" + "git.0cd.xyz/michael/mcstatus/client/pb" "github.com/golang/protobuf/jsonpb" ) diff --git a/pb/response.pb.go b/client/pb/response.pb.go similarity index 98% rename from pb/response.pb.go rename to client/pb/response.pb.go index 08baaef..398deff 100644 --- a/pb/response.pb.go +++ b/client/pb/response.pb.go @@ -403,9 +403,10 @@ var file_response_proto_rawDesc = []byte{ 0x12, 0x12, 0x0a, 0x04, 0x74, 0x65, 0x78, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x74, 0x65, 0x78, 0x74, 0x1a, 0x1b, 0x0a, 0x05, 0x45, 0x78, 0x74, 0x72, 0x61, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x65, 0x78, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x74, 0x65, 0x78, - 0x74, 0x42, 0x21, 0x5a, 0x1f, 0x67, 0x69, 0x74, 0x2e, 0x30, 0x63, 0x64, 0x2e, 0x78, 0x79, 0x7a, + 0x74, 0x42, 0x28, 0x5a, 0x26, 0x67, 0x69, 0x74, 0x2e, 0x30, 0x63, 0x64, 0x2e, 0x78, 0x79, 0x7a, 0x2f, 0x6d, 0x69, 0x63, 0x68, 0x61, 0x65, 0x6c, 0x2f, 0x6d, 0x63, 0x73, 0x74, 0x61, 0x74, 0x75, - 0x73, 0x2f, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x73, 0x2f, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x2f, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x33, } var ( diff --git a/client/status.go b/client/status.go index f331ce9..e568934 100644 --- a/client/status.go +++ b/client/status.go @@ -3,7 +3,7 @@ package client import ( "time" - "git.0cd.xyz/michael/mcstatus/pb" + "git.0cd.xyz/michael/mcstatus/client/pb" ) // GetStatus gets minecraft server status