github.com/btccom/go-micro/v2@v2.9.3/api/proto/api.pb.go (about)

     1  // Code generated by protoc-gen-go. DO NOT EDIT.
     2  // source: api/proto/api.proto
     3  
     4  package go_api
     5  
     6  import (
     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.
    13  var _ = proto.Marshal
    14  var _ = fmt.Errorf
    15  var _ = 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.
    21  const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
    22  
    23  type Pair struct {
    24  	Key                  string   `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
    25  	Values               []string `protobuf:"bytes,2,rep,name=values,proto3" json:"values,omitempty"`
    26  	XXX_NoUnkeyedLiteral struct{} `json:"-"`
    27  	XXX_unrecognized     []byte   `json:"-"`
    28  	XXX_sizecache        int32    `json:"-"`
    29  }
    30  
    31  func (m *Pair) Reset()         { *m = Pair{} }
    32  func (m *Pair) String() string { return proto.CompactTextString(m) }
    33  func (*Pair) ProtoMessage()    {}
    34  func (*Pair) Descriptor() ([]byte, []int) {
    35  	return fileDescriptor_2df576b66d12087a, []int{0}
    36  }
    37  
    38  func (m *Pair) XXX_Unmarshal(b []byte) error {
    39  	return xxx_messageInfo_Pair.Unmarshal(m, b)
    40  }
    41  func (m *Pair) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
    42  	return xxx_messageInfo_Pair.Marshal(b, m, deterministic)
    43  }
    44  func (m *Pair) XXX_Merge(src proto.Message) {
    45  	xxx_messageInfo_Pair.Merge(m, src)
    46  }
    47  func (m *Pair) XXX_Size() int {
    48  	return xxx_messageInfo_Pair.Size(m)
    49  }
    50  func (m *Pair) XXX_DiscardUnknown() {
    51  	xxx_messageInfo_Pair.DiscardUnknown(m)
    52  }
    53  
    54  var xxx_messageInfo_Pair proto.InternalMessageInfo
    55  
    56  func (m *Pair) GetKey() string {
    57  	if m != nil {
    58  		return m.Key
    59  	}
    60  	return ""
    61  }
    62  
    63  func (m *Pair) GetValues() []string {
    64  	if m != nil {
    65  		return m.Values
    66  	}
    67  	return nil
    68  }
    69  
    70  // A HTTP request as RPC
    71  // Forward by the api handler
    72  type Request struct {
    73  	Method               string           `protobuf:"bytes,1,opt,name=method,proto3" json:"method,omitempty"`
    74  	Path                 string           `protobuf:"bytes,2,opt,name=path,proto3" json:"path,omitempty"`
    75  	Header               map[string]*Pair `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"`
    76  	Get                  map[string]*Pair `protobuf:"bytes,4,rep,name=get,proto3" json:"get,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
    77  	Post                 map[string]*Pair `protobuf:"bytes,5,rep,name=post,proto3" json:"post,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
    78  	Body                 string           `protobuf:"bytes,6,opt,name=body,proto3" json:"body,omitempty"`
    79  	Url                  string           `protobuf:"bytes,7,opt,name=url,proto3" json:"url,omitempty"`
    80  	XXX_NoUnkeyedLiteral struct{}         `json:"-"`
    81  	XXX_unrecognized     []byte           `json:"-"`
    82  	XXX_sizecache        int32            `json:"-"`
    83  }
    84  
    85  func (m *Request) Reset()         { *m = Request{} }
    86  func (m *Request) String() string { return proto.CompactTextString(m) }
    87  func (*Request) ProtoMessage()    {}
    88  func (*Request) Descriptor() ([]byte, []int) {
    89  	return fileDescriptor_2df576b66d12087a, []int{1}
    90  }
    91  
    92  func (m *Request) XXX_Unmarshal(b []byte) error {
    93  	return xxx_messageInfo_Request.Unmarshal(m, b)
    94  }
    95  func (m *Request) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
    96  	return xxx_messageInfo_Request.Marshal(b, m, deterministic)
    97  }
    98  func (m *Request) XXX_Merge(src proto.Message) {
    99  	xxx_messageInfo_Request.Merge(m, src)
   100  }
   101  func (m *Request) XXX_Size() int {
   102  	return xxx_messageInfo_Request.Size(m)
   103  }
   104  func (m *Request) XXX_DiscardUnknown() {
   105  	xxx_messageInfo_Request.DiscardUnknown(m)
   106  }
   107  
   108  var xxx_messageInfo_Request proto.InternalMessageInfo
   109  
   110  func (m *Request) GetMethod() string {
   111  	if m != nil {
   112  		return m.Method
   113  	}
   114  	return ""
   115  }
   116  
   117  func (m *Request) GetPath() string {
   118  	if m != nil {
   119  		return m.Path
   120  	}
   121  	return ""
   122  }
   123  
   124  func (m *Request) GetHeader() map[string]*Pair {
   125  	if m != nil {
   126  		return m.Header
   127  	}
   128  	return nil
   129  }
   130  
   131  func (m *Request) GetGet() map[string]*Pair {
   132  	if m != nil {
   133  		return m.Get
   134  	}
   135  	return nil
   136  }
   137  
   138  func (m *Request) GetPost() map[string]*Pair {
   139  	if m != nil {
   140  		return m.Post
   141  	}
   142  	return nil
   143  }
   144  
   145  func (m *Request) GetBody() string {
   146  	if m != nil {
   147  		return m.Body
   148  	}
   149  	return ""
   150  }
   151  
   152  func (m *Request) GetUrl() string {
   153  	if m != nil {
   154  		return m.Url
   155  	}
   156  	return ""
   157  }
   158  
   159  // A HTTP response as RPC
   160  // Expected response for the api handler
   161  type Response struct {
   162  	StatusCode           int32            `protobuf:"varint,1,opt,name=statusCode,proto3" json:"statusCode,omitempty"`
   163  	Header               map[string]*Pair `protobuf:"bytes,2,rep,name=header,proto3" json:"header,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
   164  	Body                 string           `protobuf:"bytes,3,opt,name=body,proto3" json:"body,omitempty"`
   165  	XXX_NoUnkeyedLiteral struct{}         `json:"-"`
   166  	XXX_unrecognized     []byte           `json:"-"`
   167  	XXX_sizecache        int32            `json:"-"`
   168  }
   169  
   170  func (m *Response) Reset()         { *m = Response{} }
   171  func (m *Response) String() string { return proto.CompactTextString(m) }
   172  func (*Response) ProtoMessage()    {}
   173  func (*Response) Descriptor() ([]byte, []int) {
   174  	return fileDescriptor_2df576b66d12087a, []int{2}
   175  }
   176  
   177  func (m *Response) XXX_Unmarshal(b []byte) error {
   178  	return xxx_messageInfo_Response.Unmarshal(m, b)
   179  }
   180  func (m *Response) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   181  	return xxx_messageInfo_Response.Marshal(b, m, deterministic)
   182  }
   183  func (m *Response) XXX_Merge(src proto.Message) {
   184  	xxx_messageInfo_Response.Merge(m, src)
   185  }
   186  func (m *Response) XXX_Size() int {
   187  	return xxx_messageInfo_Response.Size(m)
   188  }
   189  func (m *Response) XXX_DiscardUnknown() {
   190  	xxx_messageInfo_Response.DiscardUnknown(m)
   191  }
   192  
   193  var xxx_messageInfo_Response proto.InternalMessageInfo
   194  
   195  func (m *Response) GetStatusCode() int32 {
   196  	if m != nil {
   197  		return m.StatusCode
   198  	}
   199  	return 0
   200  }
   201  
   202  func (m *Response) GetHeader() map[string]*Pair {
   203  	if m != nil {
   204  		return m.Header
   205  	}
   206  	return nil
   207  }
   208  
   209  func (m *Response) GetBody() string {
   210  	if m != nil {
   211  		return m.Body
   212  	}
   213  	return ""
   214  }
   215  
   216  // A HTTP event as RPC
   217  // Forwarded by the event handler
   218  type Event struct {
   219  	// e.g login
   220  	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
   221  	// uuid
   222  	Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"`
   223  	// unix timestamp of event
   224  	Timestamp int64 `protobuf:"varint,3,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
   225  	// event headers
   226  	Header map[string]*Pair `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"`
   227  	// the event data
   228  	Data                 string   `protobuf:"bytes,5,opt,name=data,proto3" json:"data,omitempty"`
   229  	XXX_NoUnkeyedLiteral struct{} `json:"-"`
   230  	XXX_unrecognized     []byte   `json:"-"`
   231  	XXX_sizecache        int32    `json:"-"`
   232  }
   233  
   234  func (m *Event) Reset()         { *m = Event{} }
   235  func (m *Event) String() string { return proto.CompactTextString(m) }
   236  func (*Event) ProtoMessage()    {}
   237  func (*Event) Descriptor() ([]byte, []int) {
   238  	return fileDescriptor_2df576b66d12087a, []int{3}
   239  }
   240  
   241  func (m *Event) XXX_Unmarshal(b []byte) error {
   242  	return xxx_messageInfo_Event.Unmarshal(m, b)
   243  }
   244  func (m *Event) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   245  	return xxx_messageInfo_Event.Marshal(b, m, deterministic)
   246  }
   247  func (m *Event) XXX_Merge(src proto.Message) {
   248  	xxx_messageInfo_Event.Merge(m, src)
   249  }
   250  func (m *Event) XXX_Size() int {
   251  	return xxx_messageInfo_Event.Size(m)
   252  }
   253  func (m *Event) XXX_DiscardUnknown() {
   254  	xxx_messageInfo_Event.DiscardUnknown(m)
   255  }
   256  
   257  var xxx_messageInfo_Event proto.InternalMessageInfo
   258  
   259  func (m *Event) GetName() string {
   260  	if m != nil {
   261  		return m.Name
   262  	}
   263  	return ""
   264  }
   265  
   266  func (m *Event) GetId() string {
   267  	if m != nil {
   268  		return m.Id
   269  	}
   270  	return ""
   271  }
   272  
   273  func (m *Event) GetTimestamp() int64 {
   274  	if m != nil {
   275  		return m.Timestamp
   276  	}
   277  	return 0
   278  }
   279  
   280  func (m *Event) GetHeader() map[string]*Pair {
   281  	if m != nil {
   282  		return m.Header
   283  	}
   284  	return nil
   285  }
   286  
   287  func (m *Event) GetData() string {
   288  	if m != nil {
   289  		return m.Data
   290  	}
   291  	return ""
   292  }
   293  
   294  func init() {
   295  	proto.RegisterType((*Pair)(nil), "go.api.Pair")
   296  	proto.RegisterType((*Request)(nil), "go.api.Request")
   297  	proto.RegisterMapType((map[string]*Pair)(nil), "go.api.Request.GetEntry")
   298  	proto.RegisterMapType((map[string]*Pair)(nil), "go.api.Request.HeaderEntry")
   299  	proto.RegisterMapType((map[string]*Pair)(nil), "go.api.Request.PostEntry")
   300  	proto.RegisterType((*Response)(nil), "go.api.Response")
   301  	proto.RegisterMapType((map[string]*Pair)(nil), "go.api.Response.HeaderEntry")
   302  	proto.RegisterType((*Event)(nil), "go.api.Event")
   303  	proto.RegisterMapType((map[string]*Pair)(nil), "go.api.Event.HeaderEntry")
   304  }
   305  
   306  func init() { proto.RegisterFile("api/proto/api.proto", fileDescriptor_2df576b66d12087a) }
   307  
   308  var fileDescriptor_2df576b66d12087a = []byte{
   309  	// 393 bytes of a gzipped FileDescriptorProto
   310  	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x53, 0xcd, 0xce, 0xd3, 0x30,
   311  	0x10, 0x54, 0xe2, 0x24, 0x6d, 0xb6, 0x08, 0x21, 0x23, 0x21, 0x53, 0x2a, 0x54, 0xe5, 0x54, 0x21,
   312  	0x91, 0x42, 0xcb, 0x01, 0x71, 0x85, 0xaa, 0x1c, 0x2b, 0xbf, 0x81, 0xab, 0x58, 0x6d, 0x44, 0x13,
   313  	0x9b, 0xd8, 0xa9, 0xd4, 0x87, 0xe3, 0xc0, 0x63, 0xf0, 0x36, 0xc8, 0x1b, 0xf7, 0xe7, 0xab, 0xfa,
   314  	0x5d, 0xbe, 0xaf, 0xb7, 0x89, 0x3d, 0x3b, 0x3b, 0x3b, 0xeb, 0xc0, 0x6b, 0xa1, 0xcb, 0xa9, 0x6e,
   315  	0x94, 0x55, 0x53, 0xa1, 0xcb, 0x1c, 0x11, 0x4d, 0x36, 0x2a, 0x17, 0xba, 0xcc, 0x3e, 0x41, 0xb4,
   316  	0x12, 0x65, 0x43, 0x5f, 0x01, 0xf9, 0x25, 0x0f, 0x2c, 0x18, 0x07, 0x93, 0x94, 0x3b, 0x48, 0xdf,
   317  	0x40, 0xb2, 0x17, 0xbb, 0x56, 0x1a, 0x16, 0x8e, 0xc9, 0x24, 0xe5, 0xfe, 0x2b, 0xfb, 0x4b, 0xa0,
   318  	0xc7, 0xe5, 0xef, 0x56, 0x1a, 0xeb, 0x38, 0x95, 0xb4, 0x5b, 0x55, 0xf8, 0x42, 0xff, 0x45, 0x29,
   319  	0x44, 0x5a, 0xd8, 0x2d, 0x0b, 0xf1, 0x14, 0x31, 0x9d, 0x43, 0xb2, 0x95, 0xa2, 0x90, 0x0d, 0x23,
   320  	0x63, 0x32, 0x19, 0xcc, 0xde, 0xe5, 0x9d, 0x85, 0xdc, 0x8b, 0xe5, 0x3f, 0xf1, 0x76, 0x51, 0xdb,
   321  	0xe6, 0xc0, 0x3d, 0x95, 0x7e, 0x00, 0xb2, 0x91, 0x96, 0x45, 0x58, 0xc1, 0xae, 0x2b, 0x96, 0xd2,
   322  	0x76, 0x74, 0x47, 0xa2, 0x1f, 0x21, 0xd2, 0xca, 0x58, 0x16, 0x23, 0xf9, 0xed, 0x35, 0x79, 0xa5,
   323  	0x8c, 0x67, 0x23, 0xcd, 0x79, 0x5c, 0xab, 0xe2, 0xc0, 0x92, 0xce, 0xa3, 0xc3, 0x2e, 0x85, 0xb6,
   324  	0xd9, 0xb1, 0x5e, 0x97, 0x42, 0xdb, 0xec, 0x86, 0x4b, 0x18, 0x5c, 0xf8, 0xba, 0x11, 0x53, 0x06,
   325  	0x31, 0x06, 0x83, 0xb3, 0x0e, 0x66, 0x2f, 0x8e, 0x6d, 0x5d, 0xaa, 0xbc, 0xbb, 0xfa, 0x16, 0x7e,
   326  	0x0d, 0x86, 0x3f, 0xa0, 0x7f, 0xb4, 0xfb, 0x0c, 0x95, 0x05, 0xa4, 0xa7, 0x39, 0x9e, 0x2e, 0x93,
   327  	0xfd, 0x09, 0xa0, 0xcf, 0xa5, 0xd1, 0xaa, 0x36, 0x92, 0xbe, 0x07, 0x30, 0x56, 0xd8, 0xd6, 0x7c,
   328  	0x57, 0x85, 0x44, 0xb5, 0x98, 0x5f, 0x9c, 0xd0, 0x2f, 0xa7, 0xc5, 0x85, 0x98, 0xec, 0xe8, 0x9c,
   329  	0x6c, 0xa7, 0x70, 0x73, 0x73, 0xc7, 0x78, 0xc9, 0x39, 0xde, 0xbb, 0x85, 0x99, 0xfd, 0x0b, 0x20,
   330  	0x5e, 0xec, 0x65, 0x8d, 0x5b, 0xac, 0x45, 0x25, 0xbd, 0x08, 0x62, 0xfa, 0x12, 0xc2, 0xb2, 0xf0,
   331  	0x6f, 0x2f, 0x2c, 0x0b, 0x3a, 0x82, 0xd4, 0x96, 0x95, 0x34, 0x56, 0x54, 0x1a, 0xfd, 0x10, 0x7e,
   332  	0x3e, 0xa0, 0x9f, 0x4f, 0xe3, 0x45, 0x0f, 0x1f, 0x0e, 0x36, 0x78, 0x6c, 0xb6, 0x42, 0x58, 0xc1,
   333  	0xe2, 0xae, 0xa9, 0xc3, 0x77, 0x9b, 0x6d, 0x9d, 0xe0, 0x0f, 0x3a, 0xff, 0x1f, 0x00, 0x00, 0xff,
   334  	0xff, 0xd4, 0x6d, 0x70, 0x51, 0xb7, 0x03, 0x00, 0x00,
   335  }