cloudwu / sproto

Yet another protocol library like google protocol buffers , but simple and fast.
MIT License
942 stars 253 forks source link

能否在sproto里面提供命名空间的概念 #81

Closed zhangshiqian1214 closed 5 years ago

zhangshiqian1214 commented 5 years ago

如:


.login {
   .PlayerInfo {
      nickname 0 : string
  }

  weixinLogin 100 {
    request {
     account 0 : string
   }
   response {
    info 0 : PlayerInfo
  }
 }
}

login.PlayerInfo的结构体是能用的,不过方法login.weixinLogin却不能被解析, 能否稍作修改

lvzixun commented 5 years ago

你可以看下sprotodump,;)

kuzhu notifications@github.com于2018年12月15日 周六下午11:49写道:

如:

.login {

.PlayerInfo {

  nickname 0 : string

}

weixinLogin 100 {

request {

 account 0 : string

}

response {

info 0 : PlayerInfo

}

}

}

login.PlayerInfo的结构体是能用的,不过方法login.weixinLogin却不能被解析, 能否稍作修改

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/cloudwu/sproto/issues/81, or mute the thread https://github.com/notifications/unsubscribe-auth/ABOVG49z8k2vjbFQ-KSxfCv8Fo0n6F78ks5u5RodgaJpZM4ZUyZZ .

zhangshiqian1214 commented 5 years ago

你可以看下sprotodump,;) kuzhu notifications@github.com于2018年12月15日 周六下午11:49写道: 如: .login { .PlayerInfo { nickname 0 : string } weixinLogin 100 { request { account 0 : string } response { info 0 : PlayerInfo } } } login.PlayerInfo的结构体是能用的,不过方法login.weixinLogin却不能被解析, 能否稍作修改 — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub <#81>, or mute the thread https://github.com/notifications/unsubscribe-auth/ABOVG49z8k2vjbFQ-KSxfCv8Fo0n6F78ks5u5RodgaJpZM4ZUyZZ .

我看过sprotodump, 能否在官方提供这种实现

cloudwu commented 5 years ago

暂不考虑。

这个可以自己解析文本实现,并不需要修改 sproto ,例如 sprotodump 。