liverpc.pb.go 8.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // source: liverpc.proto
  3. package liverpc // import "go-common/library/net/rpc/liverpc"
  4. import proto "github.com/golang/protobuf/proto"
  5. import fmt "fmt"
  6. import math "math"
  7. // Reference imports to suppress errors if they are not otherwise used.
  8. var _ = proto.Marshal
  9. var _ = fmt.Errorf
  10. var _ = math.Inf
  11. // This is a compile-time assertion to ensure that this generated file
  12. // is compatible with the proto package it is being compiled against.
  13. // A compilation error at this line likely means your copy of the
  14. // proto package needs to be updated.
  15. const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
  16. type Header struct {
  17. // APP_NAME.xxxxx , when separated by dot,
  18. // the first part is always app_name, the rest is undefined
  19. Caller string `protobuf:"bytes,1,opt,name=caller,proto3" json:"caller,omitempty"`
  20. Uid int64 `protobuf:"varint,2,opt,name=uid,proto3" json:"uid,omitempty"`
  21. Platform string `protobuf:"bytes,3,opt,name=platform,proto3" json:"platform,omitempty"`
  22. Src string `protobuf:"bytes,4,opt,name=src,proto3" json:"src,omitempty"`
  23. TraceId string `protobuf:"bytes,5,opt,name=trace_id,json=traceId,proto3" json:"trace_id,omitempty"`
  24. UserIp string `protobuf:"bytes,7,opt,name=user_ip,json=userIp,proto3" json:"user_ip,omitempty"`
  25. SourceGroup string `protobuf:"bytes,8,opt,name=source_group,json=sourceGroup,proto3" json:"source_group,omitempty"`
  26. Buvid string `protobuf:"bytes,9,opt,name=buvid,proto3" json:"buvid,omitempty"`
  27. // session data, format is http query
  28. // such as access_token=abc&SESS_DATA=def
  29. Sessdata2 string `protobuf:"bytes,10,opt,name=sessdata2,proto3" json:"sessdata2,omitempty"`
  30. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  31. XXX_unrecognized []byte `json:"-"`
  32. XXX_sizecache int32 `json:"-"`
  33. }
  34. func (m *Header) Reset() { *m = Header{} }
  35. func (m *Header) String() string { return proto.CompactTextString(m) }
  36. func (*Header) ProtoMessage() {}
  37. func (*Header) Descriptor() ([]byte, []int) {
  38. return fileDescriptor_liverpc_376c41dd15148bd6, []int{0}
  39. }
  40. func (m *Header) XXX_Unmarshal(b []byte) error {
  41. return xxx_messageInfo_Header.Unmarshal(m, b)
  42. }
  43. func (m *Header) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  44. return xxx_messageInfo_Header.Marshal(b, m, deterministic)
  45. }
  46. func (dst *Header) XXX_Merge(src proto.Message) {
  47. xxx_messageInfo_Header.Merge(dst, src)
  48. }
  49. func (m *Header) XXX_Size() int {
  50. return xxx_messageInfo_Header.Size(m)
  51. }
  52. func (m *Header) XXX_DiscardUnknown() {
  53. xxx_messageInfo_Header.DiscardUnknown(m)
  54. }
  55. var xxx_messageInfo_Header proto.InternalMessageInfo
  56. func (m *Header) GetCaller() string {
  57. if m != nil {
  58. return m.Caller
  59. }
  60. return ""
  61. }
  62. func (m *Header) GetUid() int64 {
  63. if m != nil {
  64. return m.Uid
  65. }
  66. return 0
  67. }
  68. func (m *Header) GetPlatform() string {
  69. if m != nil {
  70. return m.Platform
  71. }
  72. return ""
  73. }
  74. func (m *Header) GetSrc() string {
  75. if m != nil {
  76. return m.Src
  77. }
  78. return ""
  79. }
  80. func (m *Header) GetTraceId() string {
  81. if m != nil {
  82. return m.TraceId
  83. }
  84. return ""
  85. }
  86. func (m *Header) GetUserIp() string {
  87. if m != nil {
  88. return m.UserIp
  89. }
  90. return ""
  91. }
  92. func (m *Header) GetSourceGroup() string {
  93. if m != nil {
  94. return m.SourceGroup
  95. }
  96. return ""
  97. }
  98. func (m *Header) GetBuvid() string {
  99. if m != nil {
  100. return m.Buvid
  101. }
  102. return ""
  103. }
  104. func (m *Header) GetSessdata2() string {
  105. if m != nil {
  106. return m.Sessdata2
  107. }
  108. return ""
  109. }
  110. // http is inside the protocol body
  111. // {"body":..., "header":..., "http":...}
  112. // this is used when a proxy forward a http request to a rpc request
  113. type HTTP struct {
  114. IsHttps int32 `protobuf:"varint,1,opt,name=is_https,json=isHttps,proto3" json:"is_https,omitempty"`
  115. Body string `protobuf:"bytes,2,opt,name=body,proto3" json:"body,omitempty"`
  116. Cookie map[string]string `protobuf:"bytes,3,rep,name=cookie,proto3" json:"cookie,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
  117. Header map[string]string `protobuf:"bytes,4,rep,name=header,proto3" json:"header,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
  118. Uri string `protobuf:"bytes,5,opt,name=uri,proto3" json:"uri,omitempty"`
  119. Method string `protobuf:"bytes,6,opt,name=method,proto3" json:"method,omitempty"`
  120. Protocol string `protobuf:"bytes,7,opt,name=protocol,proto3" json:"protocol,omitempty"`
  121. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  122. XXX_unrecognized []byte `json:"-"`
  123. XXX_sizecache int32 `json:"-"`
  124. }
  125. func (m *HTTP) Reset() { *m = HTTP{} }
  126. func (m *HTTP) String() string { return proto.CompactTextString(m) }
  127. func (*HTTP) ProtoMessage() {}
  128. func (*HTTP) Descriptor() ([]byte, []int) {
  129. return fileDescriptor_liverpc_376c41dd15148bd6, []int{1}
  130. }
  131. func (m *HTTP) XXX_Unmarshal(b []byte) error {
  132. return xxx_messageInfo_HTTP.Unmarshal(m, b)
  133. }
  134. func (m *HTTP) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  135. return xxx_messageInfo_HTTP.Marshal(b, m, deterministic)
  136. }
  137. func (dst *HTTP) XXX_Merge(src proto.Message) {
  138. xxx_messageInfo_HTTP.Merge(dst, src)
  139. }
  140. func (m *HTTP) XXX_Size() int {
  141. return xxx_messageInfo_HTTP.Size(m)
  142. }
  143. func (m *HTTP) XXX_DiscardUnknown() {
  144. xxx_messageInfo_HTTP.DiscardUnknown(m)
  145. }
  146. var xxx_messageInfo_HTTP proto.InternalMessageInfo
  147. func (m *HTTP) GetIsHttps() int32 {
  148. if m != nil {
  149. return m.IsHttps
  150. }
  151. return 0
  152. }
  153. func (m *HTTP) GetBody() string {
  154. if m != nil {
  155. return m.Body
  156. }
  157. return ""
  158. }
  159. func (m *HTTP) GetCookie() map[string]string {
  160. if m != nil {
  161. return m.Cookie
  162. }
  163. return nil
  164. }
  165. func (m *HTTP) GetHeader() map[string]string {
  166. if m != nil {
  167. return m.Header
  168. }
  169. return nil
  170. }
  171. func (m *HTTP) GetUri() string {
  172. if m != nil {
  173. return m.Uri
  174. }
  175. return ""
  176. }
  177. func (m *HTTP) GetMethod() string {
  178. if m != nil {
  179. return m.Method
  180. }
  181. return ""
  182. }
  183. func (m *HTTP) GetProtocol() string {
  184. if m != nil {
  185. return m.Protocol
  186. }
  187. return ""
  188. }
  189. func init() {
  190. proto.RegisterType((*Header)(nil), "liverpc.Header")
  191. proto.RegisterType((*HTTP)(nil), "liverpc.HTTP")
  192. proto.RegisterMapType((map[string]string)(nil), "liverpc.HTTP.CookieEntry")
  193. proto.RegisterMapType((map[string]string)(nil), "liverpc.HTTP.HeaderEntry")
  194. }
  195. func init() { proto.RegisterFile("liverpc.proto", fileDescriptor_liverpc_376c41dd15148bd6) }
  196. var fileDescriptor_liverpc_376c41dd15148bd6 = []byte{
  197. // 386 bytes of a gzipped FileDescriptorProto
  198. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x91, 0xb1, 0xce, 0xd3, 0x30,
  199. 0x10, 0xc7, 0x95, 0x26, 0x4d, 0x1a, 0x17, 0x24, 0x64, 0x21, 0xf0, 0xf7, 0x89, 0xa1, 0x2d, 0x4b,
  200. 0x17, 0x1a, 0x51, 0x16, 0x60, 0x04, 0x21, 0xda, 0x0d, 0x45, 0x9d, 0x58, 0x22, 0xc7, 0x36, 0xad,
  201. 0xd5, 0xa4, 0xb6, 0x6c, 0xa7, 0x52, 0x9e, 0x94, 0x87, 0xe0, 0x25, 0xd0, 0xd9, 0xa6, 0x74, 0x60,
  202. 0x61, 0xbb, 0xdf, 0xdd, 0xfd, 0xed, 0xbb, 0xff, 0xa1, 0xa7, 0x9d, 0xbc, 0x0a, 0xa3, 0xd9, 0x46,
  203. 0x1b, 0xe5, 0x14, 0x2e, 0x22, 0xae, 0x7e, 0x25, 0x28, 0xdf, 0x09, 0xca, 0x85, 0xc1, 0x2f, 0x50,
  204. 0xce, 0x68, 0xd7, 0x09, 0x43, 0x92, 0x45, 0xb2, 0x2e, 0xeb, 0x48, 0xf8, 0x19, 0x4a, 0x07, 0xc9,
  205. 0xc9, 0x64, 0x91, 0xac, 0xd3, 0x1a, 0x42, 0xfc, 0x88, 0x66, 0xba, 0xa3, 0xee, 0x87, 0x32, 0x3d,
  206. 0x49, 0x7d, 0xef, 0x8d, 0xa1, 0xdb, 0x1a, 0x46, 0x32, 0x9f, 0x86, 0x10, 0x3f, 0xa0, 0x99, 0x33,
  207. 0x94, 0x89, 0x46, 0x72, 0x32, 0xf5, 0xe9, 0xc2, 0xf3, 0x9e, 0xe3, 0x97, 0xa8, 0x18, 0xac, 0x30,
  208. 0x8d, 0xd4, 0xa4, 0x08, 0x7f, 0x02, 0xee, 0x35, 0x5e, 0xa2, 0x27, 0x56, 0x0d, 0x86, 0x89, 0xe6,
  209. 0x68, 0xd4, 0xa0, 0xc9, 0xcc, 0x57, 0xe7, 0x21, 0xf7, 0x15, 0x52, 0xf8, 0x39, 0x9a, 0xb6, 0xc3,
  210. 0x55, 0x72, 0x52, 0xfa, 0x5a, 0x00, 0xfc, 0x0a, 0x95, 0x56, 0x58, 0xcb, 0xa9, 0xa3, 0x5b, 0x82,
  211. 0x7c, 0xe5, 0x6f, 0x62, 0xf5, 0x73, 0x82, 0xb2, 0xdd, 0xe1, 0xf0, 0x0d, 0x66, 0x92, 0xb6, 0x39,
  212. 0x39, 0xa7, 0xad, 0xdf, 0x76, 0x5a, 0x17, 0xd2, 0xee, 0x00, 0x31, 0x46, 0x59, 0xab, 0xf8, 0xe8,
  213. 0xf7, 0x2d, 0x6b, 0x1f, 0xe3, 0xb7, 0x28, 0x67, 0x4a, 0x9d, 0xa5, 0x20, 0xe9, 0x22, 0x5d, 0xcf,
  214. 0xb7, 0x0f, 0x9b, 0x3f, 0x76, 0xc2, 0x6b, 0x9b, 0xcf, 0xbe, 0xf6, 0xe5, 0xe2, 0xcc, 0x58, 0xc7,
  215. 0x46, 0x90, 0x9c, 0xbc, 0xaf, 0x24, 0xfb, 0x97, 0x24, 0x78, 0x1e, 0x25, 0xa1, 0xd1, 0x1b, 0x6d,
  216. 0x64, 0xf4, 0x08, 0x42, 0x38, 0x49, 0x2f, 0xdc, 0x49, 0x71, 0x92, 0x07, 0x7b, 0x02, 0xf9, 0x03,
  217. 0xc0, 0x1d, 0x99, 0xea, 0xa2, 0x71, 0x37, 0x7e, 0xfc, 0x80, 0xe6, 0x77, 0xf3, 0xc0, 0xa3, 0x67,
  218. 0x31, 0xc6, 0x93, 0x42, 0x08, 0xc6, 0x5d, 0x69, 0x37, 0x88, 0xb8, 0x61, 0x80, 0x8f, 0x93, 0xf7,
  219. 0x09, 0x48, 0xef, 0xe6, 0xfa, 0x1f, 0xe9, 0xa7, 0xd7, 0xdf, 0x97, 0x47, 0xf5, 0x86, 0xa9, 0xbe,
  220. 0x57, 0x97, 0xaa, 0x93, 0xad, 0xa1, 0x66, 0xac, 0x2e, 0xc2, 0x55, 0x46, 0xb3, 0x2a, 0x6e, 0xde,
  221. 0xe6, 0x7e, 0xc8, 0x77, 0xbf, 0x03, 0x00, 0x00, 0xff, 0xff, 0xfe, 0x68, 0x55, 0x93, 0x8d, 0x02,
  222. 0x00, 0x00,
  223. }