306 lines
11 KiB
Go
306 lines
11 KiB
Go
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
// source: spec.proto
|
|
|
|
package redisCache
|
|
|
|
import proto "github.com/golang/protobuf/proto"
|
|
import fmt "fmt"
|
|
import math "math"
|
|
|
|
// Reference imports to suppress errors if they are not otherwise used.
|
|
var _ = proto.Marshal
|
|
var _ = fmt.Errorf
|
|
var _ = math.Inf
|
|
|
|
// This is a compile-time assertion to ensure that this generated file
|
|
// is compatible with the proto package it is being compiled against.
|
|
// A compilation error at this line likely means your copy of the
|
|
// proto package needs to be updated.
|
|
const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
|
|
|
|
type Request struct {
|
|
Method string `protobuf:"bytes,1,opt,name=Method,proto3" json:"Method,omitempty"`
|
|
URL map[string]string `protobuf:"bytes,2,rep,name=URL,proto3" json:"URL,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
|
|
Header map[string]string `protobuf:"bytes,3,rep,name=Header,proto3" json:"Header,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
|
|
Host string `protobuf:"bytes,4,opt,name=Host,proto3" json:"Host,omitempty"`
|
|
Form map[string]string `protobuf:"bytes,5,rep,name=Form,proto3" json:"Form,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
|
|
PostForm map[string]string `protobuf:"bytes,6,rep,name=PostForm,proto3" json:"PostForm,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *Request) Reset() { *m = Request{} }
|
|
func (m *Request) String() string { return proto.CompactTextString(m) }
|
|
func (*Request) ProtoMessage() {}
|
|
func (*Request) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_spec_ce9436f0047fa204, []int{0}
|
|
}
|
|
func (m *Request) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_Request.Unmarshal(m, b)
|
|
}
|
|
func (m *Request) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_Request.Marshal(b, m, deterministic)
|
|
}
|
|
func (dst *Request) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_Request.Merge(dst, src)
|
|
}
|
|
func (m *Request) XXX_Size() int {
|
|
return xxx_messageInfo_Request.Size(m)
|
|
}
|
|
func (m *Request) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_Request.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_Request proto.InternalMessageInfo
|
|
|
|
func (m *Request) GetMethod() string {
|
|
if m != nil {
|
|
return m.Method
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *Request) GetURL() map[string]string {
|
|
if m != nil {
|
|
return m.URL
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *Request) GetHeader() map[string]string {
|
|
if m != nil {
|
|
return m.Header
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *Request) GetHost() string {
|
|
if m != nil {
|
|
return m.Host
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *Request) GetForm() map[string]string {
|
|
if m != nil {
|
|
return m.Form
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *Request) GetPostForm() map[string]string {
|
|
if m != nil {
|
|
return m.PostForm
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type Response struct {
|
|
Status string `protobuf:"bytes,7,opt,name=Status,proto3" json:"Status,omitempty"`
|
|
StatusCode int32 `protobuf:"varint,8,opt,name=StatusCode,proto3" json:"StatusCode,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *Response) Reset() { *m = Response{} }
|
|
func (m *Response) String() string { return proto.CompactTextString(m) }
|
|
func (*Response) ProtoMessage() {}
|
|
func (*Response) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_spec_ce9436f0047fa204, []int{1}
|
|
}
|
|
func (m *Response) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_Response.Unmarshal(m, b)
|
|
}
|
|
func (m *Response) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_Response.Marshal(b, m, deterministic)
|
|
}
|
|
func (dst *Response) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_Response.Merge(dst, src)
|
|
}
|
|
func (m *Response) XXX_Size() int {
|
|
return xxx_messageInfo_Response.Size(m)
|
|
}
|
|
func (m *Response) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_Response.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_Response proto.InternalMessageInfo
|
|
|
|
func (m *Response) GetStatus() string {
|
|
if m != nil {
|
|
return m.Status
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *Response) GetStatusCode() int32 {
|
|
if m != nil {
|
|
return m.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type UniqueRequest struct {
|
|
Req *Request `protobuf:"bytes,10,opt,name=Req,proto3" json:"Req,omitempty"`
|
|
Resp *Response `protobuf:"bytes,11,opt,name=Resp,proto3" json:"Resp,omitempty"`
|
|
Trigger string `protobuf:"bytes,12,opt,name=Trigger,proto3" json:"Trigger,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *UniqueRequest) Reset() { *m = UniqueRequest{} }
|
|
func (m *UniqueRequest) String() string { return proto.CompactTextString(m) }
|
|
func (*UniqueRequest) ProtoMessage() {}
|
|
func (*UniqueRequest) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_spec_ce9436f0047fa204, []int{2}
|
|
}
|
|
func (m *UniqueRequest) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_UniqueRequest.Unmarshal(m, b)
|
|
}
|
|
func (m *UniqueRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_UniqueRequest.Marshal(b, m, deterministic)
|
|
}
|
|
func (dst *UniqueRequest) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_UniqueRequest.Merge(dst, src)
|
|
}
|
|
func (m *UniqueRequest) XXX_Size() int {
|
|
return xxx_messageInfo_UniqueRequest.Size(m)
|
|
}
|
|
func (m *UniqueRequest) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_UniqueRequest.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_UniqueRequest proto.InternalMessageInfo
|
|
|
|
func (m *UniqueRequest) GetReq() *Request {
|
|
if m != nil {
|
|
return m.Req
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *UniqueRequest) GetResp() *Response {
|
|
if m != nil {
|
|
return m.Resp
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *UniqueRequest) GetTrigger() string {
|
|
if m != nil {
|
|
return m.Trigger
|
|
}
|
|
return ""
|
|
}
|
|
|
|
// We need this because we don't store the ReqUID in the above Message (UniqueRequest)
|
|
// and we don't store the UID there because the key in Redis is the ReqUID -- including it in the value would be
|
|
// unnecessary duplication
|
|
// but we need it here because we want to display to the user the ReqResponses for a given ReqUID
|
|
type RecordedEntry struct {
|
|
ReqUID string `protobuf:"bytes,13,opt,name=ReqUID,proto3" json:"ReqUID,omitempty"`
|
|
Req *Request `protobuf:"bytes,14,opt,name=Req,proto3" json:"Req,omitempty"`
|
|
Resp *Response `protobuf:"bytes,15,opt,name=Resp,proto3" json:"Resp,omitempty"`
|
|
Trigger string `protobuf:"bytes,16,opt,name=Trigger,proto3" json:"Trigger,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *RecordedEntry) Reset() { *m = RecordedEntry{} }
|
|
func (m *RecordedEntry) String() string { return proto.CompactTextString(m) }
|
|
func (*RecordedEntry) ProtoMessage() {}
|
|
func (*RecordedEntry) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_spec_ce9436f0047fa204, []int{3}
|
|
}
|
|
func (m *RecordedEntry) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_RecordedEntry.Unmarshal(m, b)
|
|
}
|
|
func (m *RecordedEntry) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_RecordedEntry.Marshal(b, m, deterministic)
|
|
}
|
|
func (dst *RecordedEntry) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_RecordedEntry.Merge(dst, src)
|
|
}
|
|
func (m *RecordedEntry) XXX_Size() int {
|
|
return xxx_messageInfo_RecordedEntry.Size(m)
|
|
}
|
|
func (m *RecordedEntry) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_RecordedEntry.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_RecordedEntry proto.InternalMessageInfo
|
|
|
|
func (m *RecordedEntry) GetReqUID() string {
|
|
if m != nil {
|
|
return m.ReqUID
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *RecordedEntry) GetReq() *Request {
|
|
if m != nil {
|
|
return m.Req
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *RecordedEntry) GetResp() *Response {
|
|
if m != nil {
|
|
return m.Resp
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *RecordedEntry) GetTrigger() string {
|
|
if m != nil {
|
|
return m.Trigger
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func init() {
|
|
proto.RegisterType((*Request)(nil), "redisCache.Request")
|
|
proto.RegisterMapType((map[string]string)(nil), "redisCache.Request.FormEntry")
|
|
proto.RegisterMapType((map[string]string)(nil), "redisCache.Request.HeaderEntry")
|
|
proto.RegisterMapType((map[string]string)(nil), "redisCache.Request.PostFormEntry")
|
|
proto.RegisterMapType((map[string]string)(nil), "redisCache.Request.URLEntry")
|
|
proto.RegisterType((*Response)(nil), "redisCache.Response")
|
|
proto.RegisterType((*UniqueRequest)(nil), "redisCache.UniqueRequest")
|
|
proto.RegisterType((*RecordedEntry)(nil), "redisCache.RecordedEntry")
|
|
}
|
|
|
|
func init() { proto.RegisterFile("spec.proto", fileDescriptor_spec_ce9436f0047fa204) }
|
|
|
|
var fileDescriptor_spec_ce9436f0047fa204 = []byte{
|
|
// 392 bytes of a gzipped FileDescriptorProto
|
|
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x93, 0x5f, 0xab, 0xd3, 0x30,
|
|
0x18, 0xc6, 0xe9, 0xda, 0x75, 0xdd, 0x5b, 0xab, 0x23, 0x8e, 0x11, 0x86, 0x7f, 0x6a, 0x41, 0xe8,
|
|
0x55, 0xc1, 0x09, 0xce, 0x3f, 0x78, 0xe3, 0x54, 0x26, 0x4c, 0x90, 0x68, 0x3f, 0x40, 0x5d, 0x5f,
|
|
0xb6, 0xa1, 0x2e, 0x6b, 0x92, 0x0a, 0x3b, 0x1f, 0xe3, 0x7c, 0xdb, 0x73, 0x77, 0x68, 0xd2, 0xee,
|
|
0x6c, 0xd0, 0x8b, 0xd3, 0xbb, 0xf7, 0x4d, 0x9e, 0xdf, 0x9b, 0xe7, 0x49, 0x5a, 0x00, 0x79, 0xc0,
|
|
0x75, 0x72, 0x10, 0x5c, 0x71, 0x02, 0x02, 0xf3, 0x9d, 0x5c, 0x64, 0xeb, 0x2d, 0x46, 0x37, 0x36,
|
|
0x0c, 0x18, 0x16, 0x25, 0x4a, 0x45, 0x26, 0xe0, 0x7e, 0x47, 0xb5, 0xe5, 0x39, 0xb5, 0x42, 0x2b,
|
|
0x1e, 0xb2, 0xba, 0x23, 0x09,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