chore: 初始开源发布

iotlcm-upstream-chan:运营商上游通道适配服务(统一 /sim/* 协议)。

- 内联原私有依赖:yunze-public → internal/pub/(10 包 18 文件),
  yunze-pb/pb → internal/pb/(9 文件);Consul 注册改用官方
  gogf/gf/contrib/registry/consul/v2(API 兼容)
- Go module:yz-svr → git.5iot.com/iotlcm-public/iotlcm-upstream-chan
- 修复 mingqian 包测试:实现重构后 `adapter.operations` 字段已移除,
  测试断言按当前实现语义重写(不改产品行为)
- 凭据与内部标识脱敏:MySQL/Redis/Consul 凭据、私网与生产 IP、
  内网域名、真实手机号、注释里的真实 token/transid
- 移除内部资产:CI 触发器、生产通道种子 SQL、真实凭据测试资源文档
- Dockerfile 改用公共基础镜像,移除写死的 registry 凭据
- 补 Apache-2.0 LICENSE,重写 README,LF 行尾 + .gitattributes
This commit is contained in:
MiFaZhan
2026-10-22 15:42:29 +08:00
commit 96b1edff45
191 changed files with 30805 additions and 0 deletions
+237
View File
@@ -0,0 +1,237 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.36.11
// protoc v5.29.3
// source: msgcall.proto
package pb
import (
reflect "reflect"
sync "sync"
unsafe "unsafe"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
)
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
type MsgReq struct {
state protoimpl.MessageState `protogen:"open.v1"`
Head *HeadReq `protobuf:"bytes,1,opt,name=head,proto3" json:"head,omitempty"`
Service string `protobuf:"bytes,2,opt,name=service,proto3" json:"service,omitempty"`
Method string `protobuf:"bytes,3,opt,name=method,proto3" json:"method,omitempty"`
Data []byte `protobuf:"bytes,4,opt,name=data,proto3" json:"data,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *MsgReq) Reset() {
*x = MsgReq{}
mi := &file_msgcall_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *MsgReq) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*MsgReq) ProtoMessage() {}
func (x *MsgReq) ProtoReflect() protoreflect.Message {
mi := &file_msgcall_proto_msgTypes[0]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use MsgReq.ProtoReflect.Descriptor instead.
func (*MsgReq) Descriptor() ([]byte, []int) {
return file_msgcall_proto_rawDescGZIP(), []int{0}
}
func (x *MsgReq) GetHead() *HeadReq {
if x != nil {
return x.Head
}
return nil
}
func (x *MsgReq) GetService() string {
if x != nil {
return x.Service
}
return ""
}
func (x *MsgReq) GetMethod() string {
if x != nil {
return x.Method
}
return ""
}
func (x *MsgReq) GetData() []byte {
if x != nil {
return x.Data
}
return nil
}
type MsgRes struct {
state protoimpl.MessageState `protogen:"open.v1"`
Head *HeadRes `protobuf:"bytes,1,opt,name=head,proto3" json:"head,omitempty"`
Service string `protobuf:"bytes,2,opt,name=service,proto3" json:"service,omitempty"`
Method string `protobuf:"bytes,3,opt,name=method,proto3" json:"method,omitempty"`
Data []byte `protobuf:"bytes,4,opt,name=data,proto3" json:"data,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *MsgRes) Reset() {
*x = MsgRes{}
mi := &file_msgcall_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *MsgRes) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*MsgRes) ProtoMessage() {}
func (x *MsgRes) ProtoReflect() protoreflect.Message {
mi := &file_msgcall_proto_msgTypes[1]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use MsgRes.ProtoReflect.Descriptor instead.
func (*MsgRes) Descriptor() ([]byte, []int) {
return file_msgcall_proto_rawDescGZIP(), []int{1}
}
func (x *MsgRes) GetHead() *HeadRes {
if x != nil {
return x.Head
}
return nil
}
func (x *MsgRes) GetService() string {
if x != nil {
return x.Service
}
return ""
}
func (x *MsgRes) GetMethod() string {
if x != nil {
return x.Method
}
return ""
}
func (x *MsgRes) GetData() []byte {
if x != nil {
return x.Data
}
return nil
}
var File_msgcall_proto protoreflect.FileDescriptor
const file_msgcall_proto_rawDesc = "" +
"\n" +
"\rmsgcall.proto\x12\tPbMsgCall\x1a\fcommon.proto\"u\n" +
"\x06MsgReq\x12%\n" +
"\x04head\x18\x01 \x01(\v2\x11.PbCommon.HeadReqR\x04head\x12\x18\n" +
"\aservice\x18\x02 \x01(\tR\aservice\x12\x16\n" +
"\x06method\x18\x03 \x01(\tR\x06method\x12\x12\n" +
"\x04data\x18\x04 \x01(\fR\x04data\"u\n" +
"\x06MsgRes\x12%\n" +
"\x04head\x18\x01 \x01(\v2\x11.PbCommon.HeadResR\x04head\x12\x18\n" +
"\aservice\x18\x02 \x01(\tR\aservice\x12\x16\n" +
"\x06method\x18\x03 \x01(\tR\x06method\x12\x12\n" +
"\x04data\x18\x04 \x01(\fR\x04data2r\n" +
"\aMsgCall\x12/\n" +
"\aOneCall\x12\x11.PbMsgCall.MsgReq\x1a\x11.PbMsgCall.MsgRes\x126\n" +
"\n" +
"StreamCall\x12\x11.PbMsgCall.MsgReq\x1a\x11.PbMsgCall.MsgRes(\x010\x01B\x05Z\x03pb/b\x06proto3"
var (
file_msgcall_proto_rawDescOnce sync.Once
file_msgcall_proto_rawDescData []byte
)
func file_msgcall_proto_rawDescGZIP() []byte {
file_msgcall_proto_rawDescOnce.Do(func() {
file_msgcall_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_msgcall_proto_rawDesc), len(file_msgcall_proto_rawDesc)))
})
return file_msgcall_proto_rawDescData
}
var file_msgcall_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
var file_msgcall_proto_goTypes = []any{
(*MsgReq)(nil), // 0: PbMsgCall.MsgReq
(*MsgRes)(nil), // 1: PbMsgCall.MsgRes
(*HeadReq)(nil), // 2: PbCommon.HeadReq
(*HeadRes)(nil), // 3: PbCommon.HeadRes
}
var file_msgcall_proto_depIdxs = []int32{
2, // 0: PbMsgCall.MsgReq.head:type_name -> PbCommon.HeadReq
3, // 1: PbMsgCall.MsgRes.head:type_name -> PbCommon.HeadRes
0, // 2: PbMsgCall.MsgCall.OneCall:input_type -> PbMsgCall.MsgReq
0, // 3: PbMsgCall.MsgCall.StreamCall:input_type -> PbMsgCall.MsgReq
1, // 4: PbMsgCall.MsgCall.OneCall:output_type -> PbMsgCall.MsgRes
1, // 5: PbMsgCall.MsgCall.StreamCall:output_type -> PbMsgCall.MsgRes
4, // [4:6] is the sub-list for method output_type
2, // [2:4] is the sub-list for method input_type
2, // [2:2] is the sub-list for extension type_name
2, // [2:2] is the sub-list for extension extendee
0, // [0:2] is the sub-list for field type_name
}
func init() { file_msgcall_proto_init() }
func file_msgcall_proto_init() {
if File_msgcall_proto != nil {
return
}
file_common_proto_init()
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: unsafe.Slice(unsafe.StringData(file_msgcall_proto_rawDesc), len(file_msgcall_proto_rawDesc)),
NumEnums: 0,
NumMessages: 2,
NumExtensions: 0,
NumServices: 1,
},
GoTypes: file_msgcall_proto_goTypes,
DependencyIndexes: file_msgcall_proto_depIdxs,
MessageInfos: file_msgcall_proto_msgTypes,
}.Build()
File_msgcall_proto = out.File
file_msgcall_proto_goTypes = nil
file_msgcall_proto_depIdxs = nil
}