feat: add summary

This commit is contained in:
Tylone-zx
2024-07-14 14:37:40 +08:00
committed by Vaala Cat
parent 1ef81d9d48
commit e619fbf327
44 changed files with 1851 additions and 374 deletions

View File

@@ -1,7 +1,7 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.33.0
// protoc v5.26.0
// protoc-gen-go v1.34.2
// protoc v5.27.1
// source: api_client.proto
package pb
@@ -844,6 +844,108 @@ func (x *StartFRPCResponse) GetStatus() *Status {
return nil
}
type GetProxyByCIDRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
ClientId *string `protobuf:"bytes,1,opt,name=client_id,json=clientId,proto3,oneof" json:"client_id,omitempty"`
}
func (x *GetProxyByCIDRequest) Reset() {
*x = GetProxyByCIDRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_api_client_proto_msgTypes[16]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *GetProxyByCIDRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*GetProxyByCIDRequest) ProtoMessage() {}
func (x *GetProxyByCIDRequest) ProtoReflect() protoreflect.Message {
mi := &file_api_client_proto_msgTypes[16]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use GetProxyByCIDRequest.ProtoReflect.Descriptor instead.
func (*GetProxyByCIDRequest) Descriptor() ([]byte, []int) {
return file_api_client_proto_rawDescGZIP(), []int{16}
}
func (x *GetProxyByCIDRequest) GetClientId() string {
if x != nil && x.ClientId != nil {
return *x.ClientId
}
return ""
}
type GetProxyByCIDResponse struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Status *Status `protobuf:"bytes,1,opt,name=status,proto3,oneof" json:"status,omitempty"`
ProxyInfos []*ProxyInfo `protobuf:"bytes,2,rep,name=proxy_infos,json=proxyInfos,proto3" json:"proxy_infos,omitempty"`
}
func (x *GetProxyByCIDResponse) Reset() {
*x = GetProxyByCIDResponse{}
if protoimpl.UnsafeEnabled {
mi := &file_api_client_proto_msgTypes[17]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *GetProxyByCIDResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*GetProxyByCIDResponse) ProtoMessage() {}
func (x *GetProxyByCIDResponse) ProtoReflect() protoreflect.Message {
mi := &file_api_client_proto_msgTypes[17]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use GetProxyByCIDResponse.ProtoReflect.Descriptor instead.
func (*GetProxyByCIDResponse) Descriptor() ([]byte, []int) {
return file_api_client_proto_rawDescGZIP(), []int{17}
}
func (x *GetProxyByCIDResponse) GetStatus() *Status {
if x != nil {
return x.Status
}
return nil
}
func (x *GetProxyByCIDResponse) GetProxyInfos() []*ProxyInfo {
if x != nil {
return x.ProxyInfos
}
return nil
}
var File_api_client_proto protoreflect.FileDescriptor
var file_api_client_proto_rawDesc = []byte{
@@ -947,8 +1049,21 @@ var file_api_client_proto_rawDesc = []byte{
0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2b, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18,
0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0e, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x53,
0x74, 0x61, 0x74, 0x75, 0x73, 0x48, 0x00, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x88,
0x01, 0x01, 0x42, 0x09, 0x0a, 0x07, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x42, 0x07, 0x5a,
0x05, 0x2e, 0x2e, 0x2f, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
0x01, 0x01, 0x42, 0x09, 0x0a, 0x07, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x22, 0x46, 0x0a,
0x14, 0x47, 0x65, 0x74, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x42, 0x79, 0x43, 0x49, 0x44, 0x52, 0x65,
0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x20, 0x0a, 0x09, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x5f,
0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x08, 0x63, 0x6c, 0x69, 0x65,
0x6e, 0x74, 0x49, 0x64, 0x88, 0x01, 0x01, 0x42, 0x0c, 0x0a, 0x0a, 0x5f, 0x63, 0x6c, 0x69, 0x65,
0x6e, 0x74, 0x5f, 0x69, 0x64, 0x22, 0x83, 0x01, 0x0a, 0x15, 0x47, 0x65, 0x74, 0x50, 0x72, 0x6f,
0x78, 0x79, 0x42, 0x79, 0x43, 0x49, 0x44, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12,
0x2b, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32,
0x0e, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x48,
0x00, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x88, 0x01, 0x01, 0x12, 0x32, 0x0a, 0x0b,
0x70, 0x72, 0x6f, 0x78, 0x79, 0x5f, 0x69, 0x6e, 0x66, 0x6f, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28,
0x0b, 0x32, 0x11, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x50, 0x72, 0x6f, 0x78, 0x79,
0x49, 0x6e, 0x66, 0x6f, 0x52, 0x0a, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x49, 0x6e, 0x66, 0x6f, 0x73,
0x42, 0x09, 0x0a, 0x07, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x42, 0x07, 0x5a, 0x05, 0x2e,
0x2e, 0x2f, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
}
var (
@@ -963,43 +1078,48 @@ func file_api_client_proto_rawDescGZIP() []byte {
return file_api_client_proto_rawDescData
}
var file_api_client_proto_msgTypes = make([]protoimpl.MessageInfo, 16)
var file_api_client_proto_goTypes = []interface{}{
(*InitClientRequest)(nil), // 0: api_client.InitClientRequest
(*InitClientResponse)(nil), // 1: api_client.InitClientResponse
(*ListClientsRequest)(nil), // 2: api_client.ListClientsRequest
(*ListClientsResponse)(nil), // 3: api_client.ListClientsResponse
(*GetClientRequest)(nil), // 4: api_client.GetClientRequest
(*GetClientResponse)(nil), // 5: api_client.GetClientResponse
(*DeleteClientRequest)(nil), // 6: api_client.DeleteClientRequest
(*DeleteClientResponse)(nil), // 7: api_client.DeleteClientResponse
(*UpdateFRPCRequest)(nil), // 8: api_client.UpdateFRPCRequest
(*UpdateFRPCResponse)(nil), // 9: api_client.UpdateFRPCResponse
(*RemoveFRPCRequest)(nil), // 10: api_client.RemoveFRPCRequest
(*RemoveFRPCResponse)(nil), // 11: api_client.RemoveFRPCResponse
(*StopFRPCRequest)(nil), // 12: api_client.StopFRPCRequest
(*StopFRPCResponse)(nil), // 13: api_client.StopFRPCResponse
(*StartFRPCRequest)(nil), // 14: api_client.StartFRPCRequest
(*StartFRPCResponse)(nil), // 15: api_client.StartFRPCResponse
(*Status)(nil), // 16: common.Status
(*Client)(nil), // 17: common.Client
var file_api_client_proto_msgTypes = make([]protoimpl.MessageInfo, 18)
var file_api_client_proto_goTypes = []any{
(*InitClientRequest)(nil), // 0: api_client.InitClientRequest
(*InitClientResponse)(nil), // 1: api_client.InitClientResponse
(*ListClientsRequest)(nil), // 2: api_client.ListClientsRequest
(*ListClientsResponse)(nil), // 3: api_client.ListClientsResponse
(*GetClientRequest)(nil), // 4: api_client.GetClientRequest
(*GetClientResponse)(nil), // 5: api_client.GetClientResponse
(*DeleteClientRequest)(nil), // 6: api_client.DeleteClientRequest
(*DeleteClientResponse)(nil), // 7: api_client.DeleteClientResponse
(*UpdateFRPCRequest)(nil), // 8: api_client.UpdateFRPCRequest
(*UpdateFRPCResponse)(nil), // 9: api_client.UpdateFRPCResponse
(*RemoveFRPCRequest)(nil), // 10: api_client.RemoveFRPCRequest
(*RemoveFRPCResponse)(nil), // 11: api_client.RemoveFRPCResponse
(*StopFRPCRequest)(nil), // 12: api_client.StopFRPCRequest
(*StopFRPCResponse)(nil), // 13: api_client.StopFRPCResponse
(*StartFRPCRequest)(nil), // 14: api_client.StartFRPCRequest
(*StartFRPCResponse)(nil), // 15: api_client.StartFRPCResponse
(*GetProxyByCIDRequest)(nil), // 16: api_client.GetProxyByCIDRequest
(*GetProxyByCIDResponse)(nil), // 17: api_client.GetProxyByCIDResponse
(*Status)(nil), // 18: common.Status
(*Client)(nil), // 19: common.Client
(*ProxyInfo)(nil), // 20: common.ProxyInfo
}
var file_api_client_proto_depIdxs = []int32{
16, // 0: api_client.InitClientResponse.status:type_name -> common.Status
16, // 1: api_client.ListClientsResponse.status:type_name -> common.Status
17, // 2: api_client.ListClientsResponse.clients:type_name -> common.Client
16, // 3: api_client.GetClientResponse.status:type_name -> common.Status
17, // 4: api_client.GetClientResponse.client:type_name -> common.Client
16, // 5: api_client.DeleteClientResponse.status:type_name -> common.Status
16, // 6: api_client.UpdateFRPCResponse.status:type_name -> common.Status
16, // 7: api_client.RemoveFRPCResponse.status:type_name -> common.Status
16, // 8: api_client.StopFRPCResponse.status:type_name -> common.Status
16, // 9: api_client.StartFRPCResponse.status:type_name -> common.Status
10, // [10:10] is the sub-list for method output_type
10, // [10:10] is the sub-list for method input_type
10, // [10:10] is the sub-list for extension type_name
10, // [10:10] is the sub-list for extension extendee
0, // [0:10] is the sub-list for field type_name
18, // 0: api_client.InitClientResponse.status:type_name -> common.Status
18, // 1: api_client.ListClientsResponse.status:type_name -> common.Status
19, // 2: api_client.ListClientsResponse.clients:type_name -> common.Client
18, // 3: api_client.GetClientResponse.status:type_name -> common.Status
19, // 4: api_client.GetClientResponse.client:type_name -> common.Client
18, // 5: api_client.DeleteClientResponse.status:type_name -> common.Status
18, // 6: api_client.UpdateFRPCResponse.status:type_name -> common.Status
18, // 7: api_client.RemoveFRPCResponse.status:type_name -> common.Status
18, // 8: api_client.StopFRPCResponse.status:type_name -> common.Status
18, // 9: api_client.StartFRPCResponse.status:type_name -> common.Status
18, // 10: api_client.GetProxyByCIDResponse.status:type_name -> common.Status
20, // 11: api_client.GetProxyByCIDResponse.proxy_infos:type_name -> common.ProxyInfo
12, // [12:12] is the sub-list for method output_type
12, // [12:12] is the sub-list for method input_type
12, // [12:12] is the sub-list for extension type_name
12, // [12:12] is the sub-list for extension extendee
0, // [0:12] is the sub-list for field type_name
}
func init() { file_api_client_proto_init() }
@@ -1009,7 +1129,7 @@ func file_api_client_proto_init() {
}
file_common_proto_init()
if !protoimpl.UnsafeEnabled {
file_api_client_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
file_api_client_proto_msgTypes[0].Exporter = func(v any, i int) any {
switch v := v.(*InitClientRequest); i {
case 0:
return &v.state
@@ -1021,7 +1141,7 @@ func file_api_client_proto_init() {
return nil
}
}
file_api_client_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
file_api_client_proto_msgTypes[1].Exporter = func(v any, i int) any {
switch v := v.(*InitClientResponse); i {
case 0:
return &v.state
@@ -1033,7 +1153,7 @@ func file_api_client_proto_init() {
return nil
}
}
file_api_client_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
file_api_client_proto_msgTypes[2].Exporter = func(v any, i int) any {
switch v := v.(*ListClientsRequest); i {
case 0:
return &v.state
@@ -1045,7 +1165,7 @@ func file_api_client_proto_init() {
return nil
}
}
file_api_client_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
file_api_client_proto_msgTypes[3].Exporter = func(v any, i int) any {
switch v := v.(*ListClientsResponse); i {
case 0:
return &v.state
@@ -1057,7 +1177,7 @@ func file_api_client_proto_init() {
return nil
}
}
file_api_client_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
file_api_client_proto_msgTypes[4].Exporter = func(v any, i int) any {
switch v := v.(*GetClientRequest); i {
case 0:
return &v.state
@@ -1069,7 +1189,7 @@ func file_api_client_proto_init() {
return nil
}
}
file_api_client_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
file_api_client_proto_msgTypes[5].Exporter = func(v any, i int) any {
switch v := v.(*GetClientResponse); i {
case 0:
return &v.state
@@ -1081,7 +1201,7 @@ func file_api_client_proto_init() {
return nil
}
}
file_api_client_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
file_api_client_proto_msgTypes[6].Exporter = func(v any, i int) any {
switch v := v.(*DeleteClientRequest); i {
case 0:
return &v.state
@@ -1093,7 +1213,7 @@ func file_api_client_proto_init() {
return nil
}
}
file_api_client_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
file_api_client_proto_msgTypes[7].Exporter = func(v any, i int) any {
switch v := v.(*DeleteClientResponse); i {
case 0:
return &v.state
@@ -1105,7 +1225,7 @@ func file_api_client_proto_init() {
return nil
}
}
file_api_client_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} {
file_api_client_proto_msgTypes[8].Exporter = func(v any, i int) any {
switch v := v.(*UpdateFRPCRequest); i {
case 0:
return &v.state
@@ -1117,7 +1237,7 @@ func file_api_client_proto_init() {
return nil
}
}
file_api_client_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} {
file_api_client_proto_msgTypes[9].Exporter = func(v any, i int) any {
switch v := v.(*UpdateFRPCResponse); i {
case 0:
return &v.state
@@ -1129,7 +1249,7 @@ func file_api_client_proto_init() {
return nil
}
}
file_api_client_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} {
file_api_client_proto_msgTypes[10].Exporter = func(v any, i int) any {
switch v := v.(*RemoveFRPCRequest); i {
case 0:
return &v.state
@@ -1141,7 +1261,7 @@ func file_api_client_proto_init() {
return nil
}
}
file_api_client_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} {
file_api_client_proto_msgTypes[11].Exporter = func(v any, i int) any {
switch v := v.(*RemoveFRPCResponse); i {
case 0:
return &v.state
@@ -1153,7 +1273,7 @@ func file_api_client_proto_init() {
return nil
}
}
file_api_client_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} {
file_api_client_proto_msgTypes[12].Exporter = func(v any, i int) any {
switch v := v.(*StopFRPCRequest); i {
case 0:
return &v.state
@@ -1165,7 +1285,7 @@ func file_api_client_proto_init() {
return nil
}
}
file_api_client_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} {
file_api_client_proto_msgTypes[13].Exporter = func(v any, i int) any {
switch v := v.(*StopFRPCResponse); i {
case 0:
return &v.state
@@ -1177,7 +1297,7 @@ func file_api_client_proto_init() {
return nil
}
}
file_api_client_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} {
file_api_client_proto_msgTypes[14].Exporter = func(v any, i int) any {
switch v := v.(*StartFRPCRequest); i {
case 0:
return &v.state
@@ -1189,7 +1309,7 @@ func file_api_client_proto_init() {
return nil
}
}
file_api_client_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} {
file_api_client_proto_msgTypes[15].Exporter = func(v any, i int) any {
switch v := v.(*StartFRPCResponse); i {
case 0:
return &v.state
@@ -1201,30 +1321,56 @@ func file_api_client_proto_init() {
return nil
}
}
file_api_client_proto_msgTypes[16].Exporter = func(v any, i int) any {
switch v := v.(*GetProxyByCIDRequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_api_client_proto_msgTypes[17].Exporter = func(v any, i int) any {
switch v := v.(*GetProxyByCIDResponse); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
}
file_api_client_proto_msgTypes[0].OneofWrappers = []interface{}{}
file_api_client_proto_msgTypes[1].OneofWrappers = []interface{}{}
file_api_client_proto_msgTypes[2].OneofWrappers = []interface{}{}
file_api_client_proto_msgTypes[3].OneofWrappers = []interface{}{}
file_api_client_proto_msgTypes[4].OneofWrappers = []interface{}{}
file_api_client_proto_msgTypes[5].OneofWrappers = []interface{}{}
file_api_client_proto_msgTypes[6].OneofWrappers = []interface{}{}
file_api_client_proto_msgTypes[7].OneofWrappers = []interface{}{}
file_api_client_proto_msgTypes[8].OneofWrappers = []interface{}{}
file_api_client_proto_msgTypes[9].OneofWrappers = []interface{}{}
file_api_client_proto_msgTypes[10].OneofWrappers = []interface{}{}
file_api_client_proto_msgTypes[11].OneofWrappers = []interface{}{}
file_api_client_proto_msgTypes[12].OneofWrappers = []interface{}{}
file_api_client_proto_msgTypes[13].OneofWrappers = []interface{}{}
file_api_client_proto_msgTypes[14].OneofWrappers = []interface{}{}
file_api_client_proto_msgTypes[15].OneofWrappers = []interface{}{}
file_api_client_proto_msgTypes[0].OneofWrappers = []any{}
file_api_client_proto_msgTypes[1].OneofWrappers = []any{}
file_api_client_proto_msgTypes[2].OneofWrappers = []any{}
file_api_client_proto_msgTypes[3].OneofWrappers = []any{}
file_api_client_proto_msgTypes[4].OneofWrappers = []any{}
file_api_client_proto_msgTypes[5].OneofWrappers = []any{}
file_api_client_proto_msgTypes[6].OneofWrappers = []any{}
file_api_client_proto_msgTypes[7].OneofWrappers = []any{}
file_api_client_proto_msgTypes[8].OneofWrappers = []any{}
file_api_client_proto_msgTypes[9].OneofWrappers = []any{}
file_api_client_proto_msgTypes[10].OneofWrappers = []any{}
file_api_client_proto_msgTypes[11].OneofWrappers = []any{}
file_api_client_proto_msgTypes[12].OneofWrappers = []any{}
file_api_client_proto_msgTypes[13].OneofWrappers = []any{}
file_api_client_proto_msgTypes[14].OneofWrappers = []any{}
file_api_client_proto_msgTypes[15].OneofWrappers = []any{}
file_api_client_proto_msgTypes[16].OneofWrappers = []any{}
file_api_client_proto_msgTypes[17].OneofWrappers = []any{}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_api_client_proto_rawDesc,
NumEnums: 0,
NumMessages: 16,
NumMessages: 18,
NumExtensions: 0,
NumServices: 0,
},