1// Code generated by protoc-gen-go. DO NOT EDIT. 2// source: helper/forwarding/types.proto 3 4package forwarding 5 6import ( 7 fmt "fmt" 8 proto "github.com/golang/protobuf/proto" 9 math "math" 10) 11 12// Reference imports to suppress errors if they are not otherwise used. 13var _ = proto.Marshal 14var _ = fmt.Errorf 15var _ = math.Inf 16 17// This is a compile-time assertion to ensure that this generated file 18// is compatible with the proto package it is being compiled against. 19// A compilation error at this line likely means your copy of the 20// proto package needs to be updated. 21const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package 22 23type Request struct { 24 // Not used right now but reserving in case it turns out that streaming 25 // makes things more economical on the gRPC side 26 //uint64 id = 1; 27 Method string `protobuf:"bytes,2,opt,name=method,proto3" json:"method,omitempty"` 28 Url *URL `protobuf:"bytes,3,opt,name=url,proto3" json:"url,omitempty"` 29 HeaderEntries map[string]*HeaderEntry `protobuf:"bytes,4,rep,name=header_entries,json=headerEntries,proto3" json:"header_entries,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` 30 Body []byte `protobuf:"bytes,5,opt,name=body,proto3" json:"body,omitempty"` 31 Host string `protobuf:"bytes,6,opt,name=host,proto3" json:"host,omitempty"` 32 RemoteAddr string `protobuf:"bytes,7,opt,name=remote_addr,json=remoteAddr,proto3" json:"remote_addr,omitempty"` 33 PeerCertificates [][]byte `protobuf:"bytes,8,rep,name=peer_certificates,json=peerCertificates,proto3" json:"peer_certificates,omitempty"` 34 XXX_NoUnkeyedLiteral struct{} `json:"-"` 35 XXX_unrecognized []byte `json:"-"` 36 XXX_sizecache int32 `json:"-"` 37} 38 39func (m *Request) Reset() { *m = Request{} } 40func (m *Request) String() string { return proto.CompactTextString(m) } 41func (*Request) ProtoMessage() {} 42func (*Request) Descriptor() ([]byte, []int) { 43 return fileDescriptor_e38697de88a2f47c, []int{0} 44} 45 46func (m *Request) XXX_Unmarshal(b []byte) error { 47 return xxx_messageInfo_Request.Unmarshal(m, b) 48} 49func (m *Request) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 50 return xxx_messageInfo_Request.Marshal(b, m, deterministic) 51} 52func (m *Request) XXX_Merge(src proto.Message) { 53 xxx_messageInfo_Request.Merge(m, src) 54} 55func (m *Request) XXX_Size() int { 56 return xxx_messageInfo_Request.Size(m) 57} 58func (m *Request) XXX_DiscardUnknown() { 59 xxx_messageInfo_Request.DiscardUnknown(m) 60} 61 62var xxx_messageInfo_Request proto.InternalMessageInfo 63 64func (m *Request) GetMethod() string { 65 if m != nil { 66 return m.Method 67 } 68 return "" 69} 70 71func (m *Request) GetUrl() *URL { 72 if m != nil { 73 return m.Url 74 } 75 return nil 76} 77 78func (m *Request) GetHeaderEntries() map[string]*HeaderEntry { 79 if m != nil { 80 return m.HeaderEntries 81 } 82 return nil 83} 84 85func (m *Request) GetBody() []byte { 86 if m != nil { 87 return m.Body 88 } 89 return nil 90} 91 92func (m *Request) GetHost() string { 93 if m != nil { 94 return m.Host 95 } 96 return "" 97} 98 99func (m *Request) GetRemoteAddr() string { 100 if m != nil { 101 return m.RemoteAddr 102 } 103 return "" 104} 105 106func (m *Request) GetPeerCertificates() [][]byte { 107 if m != nil { 108 return m.PeerCertificates 109 } 110 return nil 111} 112 113type URL struct { 114 Scheme string `protobuf:"bytes,1,opt,name=scheme,proto3" json:"scheme,omitempty"` 115 Opaque string `protobuf:"bytes,2,opt,name=opaque,proto3" json:"opaque,omitempty"` 116 // This isn't needed now but might be in the future, so we'll skip the 117 // number to keep the ordering in net/url 118 //UserInfo user = 3; 119 Host string `protobuf:"bytes,4,opt,name=host,proto3" json:"host,omitempty"` 120 Path string `protobuf:"bytes,5,opt,name=path,proto3" json:"path,omitempty"` 121 RawPath string `protobuf:"bytes,6,opt,name=raw_path,json=rawPath,proto3" json:"raw_path,omitempty"` 122 // This also isn't needed right now, but we'll reserve the number 123 //bool force_query = 7; 124 RawQuery string `protobuf:"bytes,8,opt,name=raw_query,json=rawQuery,proto3" json:"raw_query,omitempty"` 125 Fragment string `protobuf:"bytes,9,opt,name=fragment,proto3" json:"fragment,omitempty"` 126 XXX_NoUnkeyedLiteral struct{} `json:"-"` 127 XXX_unrecognized []byte `json:"-"` 128 XXX_sizecache int32 `json:"-"` 129} 130 131func (m *URL) Reset() { *m = URL{} } 132func (m *URL) String() string { return proto.CompactTextString(m) } 133func (*URL) ProtoMessage() {} 134func (*URL) Descriptor() ([]byte, []int) { 135 return fileDescriptor_e38697de88a2f47c, []int{1} 136} 137 138func (m *URL) XXX_Unmarshal(b []byte) error { 139 return xxx_messageInfo_URL.Unmarshal(m, b) 140} 141func (m *URL) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 142 return xxx_messageInfo_URL.Marshal(b, m, deterministic) 143} 144func (m *URL) XXX_Merge(src proto.Message) { 145 xxx_messageInfo_URL.Merge(m, src) 146} 147func (m *URL) XXX_Size() int { 148 return xxx_messageInfo_URL.Size(m) 149} 150func (m *URL) XXX_DiscardUnknown() { 151 xxx_messageInfo_URL.DiscardUnknown(m) 152} 153 154var xxx_messageInfo_URL proto.InternalMessageInfo 155 156func (m *URL) GetScheme() string { 157 if m != nil { 158 return m.Scheme 159 } 160 return "" 161} 162 163func (m *URL) GetOpaque() string { 164 if m != nil { 165 return m.Opaque 166 } 167 return "" 168} 169 170func (m *URL) GetHost() string { 171 if m != nil { 172 return m.Host 173 } 174 return "" 175} 176 177func (m *URL) GetPath() string { 178 if m != nil { 179 return m.Path 180 } 181 return "" 182} 183 184func (m *URL) GetRawPath() string { 185 if m != nil { 186 return m.RawPath 187 } 188 return "" 189} 190 191func (m *URL) GetRawQuery() string { 192 if m != nil { 193 return m.RawQuery 194 } 195 return "" 196} 197 198func (m *URL) GetFragment() string { 199 if m != nil { 200 return m.Fragment 201 } 202 return "" 203} 204 205type HeaderEntry struct { 206 Values []string `protobuf:"bytes,1,rep,name=values,proto3" json:"values,omitempty"` 207 XXX_NoUnkeyedLiteral struct{} `json:"-"` 208 XXX_unrecognized []byte `json:"-"` 209 XXX_sizecache int32 `json:"-"` 210} 211 212func (m *HeaderEntry) Reset() { *m = HeaderEntry{} } 213func (m *HeaderEntry) String() string { return proto.CompactTextString(m) } 214func (*HeaderEntry) ProtoMessage() {} 215func (*HeaderEntry) Descriptor() ([]byte, []int) { 216 return fileDescriptor_e38697de88a2f47c, []int{2} 217} 218 219func (m *HeaderEntry) XXX_Unmarshal(b []byte) error { 220 return xxx_messageInfo_HeaderEntry.Unmarshal(m, b) 221} 222func (m *HeaderEntry) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 223 return xxx_messageInfo_HeaderEntry.Marshal(b, m, deterministic) 224} 225func (m *HeaderEntry) XXX_Merge(src proto.Message) { 226 xxx_messageInfo_HeaderEntry.Merge(m, src) 227} 228func (m *HeaderEntry) XXX_Size() int { 229 return xxx_messageInfo_HeaderEntry.Size(m) 230} 231func (m *HeaderEntry) XXX_DiscardUnknown() { 232 xxx_messageInfo_HeaderEntry.DiscardUnknown(m) 233} 234 235var xxx_messageInfo_HeaderEntry proto.InternalMessageInfo 236 237func (m *HeaderEntry) GetValues() []string { 238 if m != nil { 239 return m.Values 240 } 241 return nil 242} 243 244type Response struct { 245 // Not used right now but reserving in case it turns out that streaming 246 // makes things more economical on the gRPC side 247 //uint64 id = 1; 248 StatusCode uint32 `protobuf:"varint,2,opt,name=status_code,json=statusCode,proto3" json:"status_code,omitempty"` 249 Body []byte `protobuf:"bytes,3,opt,name=body,proto3" json:"body,omitempty"` 250 // Added in 0.6.2 to ensure that the content-type is set appropriately, as 251 // well as any other information 252 HeaderEntries map[string]*HeaderEntry `protobuf:"bytes,4,rep,name=header_entries,json=headerEntries,proto3" json:"header_entries,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` 253 LastRemoteWal uint64 `protobuf:"varint,5,opt,name=last_remote_wal,json=lastRemoteWal,proto3" json:"last_remote_wal,omitempty"` 254 XXX_NoUnkeyedLiteral struct{} `json:"-"` 255 XXX_unrecognized []byte `json:"-"` 256 XXX_sizecache int32 `json:"-"` 257} 258 259func (m *Response) Reset() { *m = Response{} } 260func (m *Response) String() string { return proto.CompactTextString(m) } 261func (*Response) ProtoMessage() {} 262func (*Response) Descriptor() ([]byte, []int) { 263 return fileDescriptor_e38697de88a2f47c, []int{3} 264} 265 266func (m *Response) XXX_Unmarshal(b []byte) error { 267 return xxx_messageInfo_Response.Unmarshal(m, b) 268} 269func (m *Response) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 270 return xxx_messageInfo_Response.Marshal(b, m, deterministic) 271} 272func (m *Response) XXX_Merge(src proto.Message) { 273 xxx_messageInfo_Response.Merge(m, src) 274} 275func (m *Response) XXX_Size() int { 276 return xxx_messageInfo_Response.Size(m) 277} 278func (m *Response) XXX_DiscardUnknown() { 279 xxx_messageInfo_Response.DiscardUnknown(m) 280} 281 282var xxx_messageInfo_Response proto.InternalMessageInfo 283 284func (m *Response) GetStatusCode() uint32 { 285 if m != nil { 286 return m.StatusCode 287 } 288 return 0 289} 290 291func (m *Response) GetBody() []byte { 292 if m != nil { 293 return m.Body 294 } 295 return nil 296} 297 298func (m *Response) GetHeaderEntries() map[string]*HeaderEntry { 299 if m != nil { 300 return m.HeaderEntries 301 } 302 return nil 303} 304 305func (m *Response) GetLastRemoteWal() uint64 { 306 if m != nil { 307 return m.LastRemoteWal 308 } 309 return 0 310} 311 312func init() { 313 proto.RegisterType((*Request)(nil), "forwarding.Request") 314 proto.RegisterMapType((map[string]*HeaderEntry)(nil), "forwarding.Request.HeaderEntriesEntry") 315 proto.RegisterType((*URL)(nil), "forwarding.URL") 316 proto.RegisterType((*HeaderEntry)(nil), "forwarding.HeaderEntry") 317 proto.RegisterType((*Response)(nil), "forwarding.Response") 318 proto.RegisterMapType((map[string]*HeaderEntry)(nil), "forwarding.Response.HeaderEntriesEntry") 319} 320 321func init() { proto.RegisterFile("helper/forwarding/types.proto", fileDescriptor_e38697de88a2f47c) } 322 323var fileDescriptor_e38697de88a2f47c = []byte{ 324 // 497 bytes of a gzipped FileDescriptorProto 325 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x53, 0xc1, 0x6e, 0xd3, 0x40, 326 0x10, 0x95, 0xe3, 0xb4, 0x49, 0x26, 0x0d, 0x2d, 0x7b, 0x80, 0xa5, 0x08, 0x61, 0x22, 0x51, 0x22, 327 0x01, 0x8e, 0x14, 0x2e, 0x88, 0x1b, 0x54, 0x48, 0x1c, 0x0a, 0x82, 0x95, 0x2a, 0x04, 0x17, 0x6b, 328 0xe3, 0x9d, 0x64, 0x2d, 0xec, 0xac, 0xb3, 0xbb, 0x6e, 0xe4, 0xdf, 0xe0, 0x4f, 0xf8, 0x27, 0x3e, 329 0x04, 0xed, 0xda, 0x34, 0x46, 0x15, 0x12, 0x17, 0x4e, 0x99, 0xf7, 0xde, 0x64, 0x3c, 0x6f, 0x66, 330 0x16, 0x1e, 0x48, 0xcc, 0x4b, 0xd4, 0xf3, 0x95, 0xd2, 0x3b, 0xae, 0x45, 0xb6, 0x59, 0xcf, 0x6d, 331 0x5d, 0xa2, 0x89, 0x4b, 0xad, 0xac, 0x22, 0xb0, 0xe7, 0xa7, 0x3f, 0x7b, 0x30, 0x60, 0xb8, 0xad, 332 0xd0, 0x58, 0x72, 0x07, 0x0e, 0x0b, 0xb4, 0x52, 0x09, 0xda, 0x8b, 0x82, 0xd9, 0x88, 0xb5, 0x88, 333 0x3c, 0x82, 0xb0, 0xd2, 0x39, 0x0d, 0xa3, 0x60, 0x36, 0x5e, 0x1c, 0xc7, 0xfb, 0x7f, 0xc7, 0x97, 334 0xec, 0x82, 0x39, 0x8d, 0xbc, 0x87, 0x5b, 0x12, 0xb9, 0x40, 0x9d, 0xe0, 0xc6, 0xea, 0x0c, 0x0d, 335 0xed, 0x47, 0xe1, 0x6c, 0xbc, 0x38, 0xeb, 0x66, 0xb7, 0xdf, 0x89, 0xdf, 0xf9, 0xcc, 0xb7, 0x4d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