mirror of
https://github.com/rclone/rclone.git
synced 2024-12-13 02:33:58 +01:00
e7bd392a69
This fixes an important bug with listing that affects users with more than 500 objects in a listing operation.
626 lines
24 KiB
Go
626 lines
24 KiB
Go
// Code generated by protoc-gen-gogo. DO NOT EDIT.
|
|
// source: payments.proto
|
|
|
|
package pb
|
|
|
|
import (
|
|
context "context"
|
|
fmt "fmt"
|
|
math "math"
|
|
time "time"
|
|
|
|
proto "github.com/gogo/protobuf/proto"
|
|
|
|
drpc "storj.io/drpc"
|
|
)
|
|
|
|
// Reference imports to suppress errors if they are not otherwise used.
|
|
var _ = proto.Marshal
|
|
var _ = fmt.Errorf
|
|
var _ = math.Inf
|
|
var _ = time.Kitchen
|
|
|
|
// 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.GoGoProtoPackageIsVersion2 // please upgrade the proto package
|
|
|
|
type PrepareInvoiceRecordsRequest struct {
|
|
Period time.Time `protobuf:"bytes,1,opt,name=period,proto3,stdtime" json:"period"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *PrepareInvoiceRecordsRequest) Reset() { *m = PrepareInvoiceRecordsRequest{} }
|
|
func (m *PrepareInvoiceRecordsRequest) String() string { return proto.CompactTextString(m) }
|
|
func (*PrepareInvoiceRecordsRequest) ProtoMessage() {}
|
|
func (*PrepareInvoiceRecordsRequest) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_a9566e6e864d2854, []int{0}
|
|
}
|
|
func (m *PrepareInvoiceRecordsRequest) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_PrepareInvoiceRecordsRequest.Unmarshal(m, b)
|
|
}
|
|
func (m *PrepareInvoiceRecordsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_PrepareInvoiceRecordsRequest.Marshal(b, m, deterministic)
|
|
}
|
|
func (m *PrepareInvoiceRecordsRequest) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_PrepareInvoiceRecordsRequest.Merge(m, src)
|
|
}
|
|
func (m *PrepareInvoiceRecordsRequest) XXX_Size() int {
|
|
return xxx_messageInfo_PrepareInvoiceRecordsRequest.Size(m)
|
|
}
|
|
func (m *PrepareInvoiceRecordsRequest) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_PrepareInvoiceRecordsRequest.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_PrepareInvoiceRecordsRequest proto.InternalMessageInfo
|
|
|
|
func (m *PrepareInvoiceRecordsRequest) GetPeriod() time.Time {
|
|
if m != nil {
|
|
return m.Period
|
|
}
|
|
return time.Time{}
|
|
}
|
|
|
|
type PrepareInvoiceRecordsResponse struct {
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *PrepareInvoiceRecordsResponse) Reset() { *m = PrepareInvoiceRecordsResponse{} }
|
|
func (m *PrepareInvoiceRecordsResponse) String() string { return proto.CompactTextString(m) }
|
|
func (*PrepareInvoiceRecordsResponse) ProtoMessage() {}
|
|
func (*PrepareInvoiceRecordsResponse) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_a9566e6e864d2854, []int{1}
|
|
}
|
|
func (m *PrepareInvoiceRecordsResponse) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_PrepareInvoiceRecordsResponse.Unmarshal(m, b)
|
|
}
|
|
func (m *PrepareInvoiceRecordsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_PrepareInvoiceRecordsResponse.Marshal(b, m, deterministic)
|
|
}
|
|
func (m *PrepareInvoiceRecordsResponse) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_PrepareInvoiceRecordsResponse.Merge(m, src)
|
|
}
|
|
func (m *PrepareInvoiceRecordsResponse) XXX_Size() int {
|
|
return xxx_messageInfo_PrepareInvoiceRecordsResponse.Size(m)
|
|
}
|
|
func (m *PrepareInvoiceRecordsResponse) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_PrepareInvoiceRecordsResponse.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_PrepareInvoiceRecordsResponse proto.InternalMessageInfo
|
|
|
|
type ApplyInvoiceRecordsRequest struct {
|
|
Period time.Time `protobuf:"bytes,1,opt,name=period,proto3,stdtime" json:"period"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *ApplyInvoiceRecordsRequest) Reset() { *m = ApplyInvoiceRecordsRequest{} }
|
|
func (m *ApplyInvoiceRecordsRequest) String() string { return proto.CompactTextString(m) }
|
|
func (*ApplyInvoiceRecordsRequest) ProtoMessage() {}
|
|
func (*ApplyInvoiceRecordsRequest) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_a9566e6e864d2854, []int{2}
|
|
}
|
|
func (m *ApplyInvoiceRecordsRequest) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_ApplyInvoiceRecordsRequest.Unmarshal(m, b)
|
|
}
|
|
func (m *ApplyInvoiceRecordsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_ApplyInvoiceRecordsRequest.Marshal(b, m, deterministic)
|
|
}
|
|
func (m *ApplyInvoiceRecordsRequest) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_ApplyInvoiceRecordsRequest.Merge(m, src)
|
|
}
|
|
func (m *ApplyInvoiceRecordsRequest) XXX_Size() int {
|
|
return xxx_messageInfo_ApplyInvoiceRecordsRequest.Size(m)
|
|
}
|
|
func (m *ApplyInvoiceRecordsRequest) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_ApplyInvoiceRecordsRequest.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_ApplyInvoiceRecordsRequest proto.InternalMessageInfo
|
|
|
|
func (m *ApplyInvoiceRecordsRequest) GetPeriod() time.Time {
|
|
if m != nil {
|
|
return m.Period
|
|
}
|
|
return time.Time{}
|
|
}
|
|
|
|
type ApplyInvoiceRecordsResponse struct {
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *ApplyInvoiceRecordsResponse) Reset() { *m = ApplyInvoiceRecordsResponse{} }
|
|
func (m *ApplyInvoiceRecordsResponse) String() string { return proto.CompactTextString(m) }
|
|
func (*ApplyInvoiceRecordsResponse) ProtoMessage() {}
|
|
func (*ApplyInvoiceRecordsResponse) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_a9566e6e864d2854, []int{3}
|
|
}
|
|
func (m *ApplyInvoiceRecordsResponse) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_ApplyInvoiceRecordsResponse.Unmarshal(m, b)
|
|
}
|
|
func (m *ApplyInvoiceRecordsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_ApplyInvoiceRecordsResponse.Marshal(b, m, deterministic)
|
|
}
|
|
func (m *ApplyInvoiceRecordsResponse) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_ApplyInvoiceRecordsResponse.Merge(m, src)
|
|
}
|
|
func (m *ApplyInvoiceRecordsResponse) XXX_Size() int {
|
|
return xxx_messageInfo_ApplyInvoiceRecordsResponse.Size(m)
|
|
}
|
|
func (m *ApplyInvoiceRecordsResponse) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_ApplyInvoiceRecordsResponse.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_ApplyInvoiceRecordsResponse proto.InternalMessageInfo
|
|
|
|
type ApplyInvoiceCouponsRequest struct {
|
|
Period time.Time `protobuf:"bytes,1,opt,name=period,proto3,stdtime" json:"period"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *ApplyInvoiceCouponsRequest) Reset() { *m = ApplyInvoiceCouponsRequest{} }
|
|
func (m *ApplyInvoiceCouponsRequest) String() string { return proto.CompactTextString(m) }
|
|
func (*ApplyInvoiceCouponsRequest) ProtoMessage() {}
|
|
func (*ApplyInvoiceCouponsRequest) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_a9566e6e864d2854, []int{4}
|
|
}
|
|
func (m *ApplyInvoiceCouponsRequest) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_ApplyInvoiceCouponsRequest.Unmarshal(m, b)
|
|
}
|
|
func (m *ApplyInvoiceCouponsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_ApplyInvoiceCouponsRequest.Marshal(b, m, deterministic)
|
|
}
|
|
func (m *ApplyInvoiceCouponsRequest) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_ApplyInvoiceCouponsRequest.Merge(m, src)
|
|
}
|
|
func (m *ApplyInvoiceCouponsRequest) XXX_Size() int {
|
|
return xxx_messageInfo_ApplyInvoiceCouponsRequest.Size(m)
|
|
}
|
|
func (m *ApplyInvoiceCouponsRequest) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_ApplyInvoiceCouponsRequest.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_ApplyInvoiceCouponsRequest proto.InternalMessageInfo
|
|
|
|
func (m *ApplyInvoiceCouponsRequest) GetPeriod() time.Time {
|
|
if m != nil {
|
|
return m.Period
|
|
}
|
|
return time.Time{}
|
|
}
|
|
|
|
type ApplyInvoiceCouponsResponse struct {
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *ApplyInvoiceCouponsResponse) Reset() { *m = ApplyInvoiceCouponsResponse{} }
|
|
func (m *ApplyInvoiceCouponsResponse) String() string { return proto.CompactTextString(m) }
|
|
func (*ApplyInvoiceCouponsResponse) ProtoMessage() {}
|
|
func (*ApplyInvoiceCouponsResponse) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_a9566e6e864d2854, []int{5}
|
|
}
|
|
func (m *ApplyInvoiceCouponsResponse) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_ApplyInvoiceCouponsResponse.Unmarshal(m, b)
|
|
}
|
|
func (m *ApplyInvoiceCouponsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_ApplyInvoiceCouponsResponse.Marshal(b, m, deterministic)
|
|
}
|
|
func (m *ApplyInvoiceCouponsResponse) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_ApplyInvoiceCouponsResponse.Merge(m, src)
|
|
}
|
|
func (m *ApplyInvoiceCouponsResponse) XXX_Size() int {
|
|
return xxx_messageInfo_ApplyInvoiceCouponsResponse.Size(m)
|
|
}
|
|
func (m *ApplyInvoiceCouponsResponse) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_ApplyInvoiceCouponsResponse.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_ApplyInvoiceCouponsResponse proto.InternalMessageInfo
|
|
|
|
type ApplyInvoiceCreditsRequest struct {
|
|
Period time.Time `protobuf:"bytes,1,opt,name=period,proto3,stdtime" json:"period"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *ApplyInvoiceCreditsRequest) Reset() { *m = ApplyInvoiceCreditsRequest{} }
|
|
func (m *ApplyInvoiceCreditsRequest) String() string { return proto.CompactTextString(m) }
|
|
func (*ApplyInvoiceCreditsRequest) ProtoMessage() {}
|
|
func (*ApplyInvoiceCreditsRequest) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_a9566e6e864d2854, []int{6}
|
|
}
|
|
func (m *ApplyInvoiceCreditsRequest) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_ApplyInvoiceCreditsRequest.Unmarshal(m, b)
|
|
}
|
|
func (m *ApplyInvoiceCreditsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_ApplyInvoiceCreditsRequest.Marshal(b, m, deterministic)
|
|
}
|
|
func (m *ApplyInvoiceCreditsRequest) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_ApplyInvoiceCreditsRequest.Merge(m, src)
|
|
}
|
|
func (m *ApplyInvoiceCreditsRequest) XXX_Size() int {
|
|
return xxx_messageInfo_ApplyInvoiceCreditsRequest.Size(m)
|
|
}
|
|
func (m *ApplyInvoiceCreditsRequest) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_ApplyInvoiceCreditsRequest.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_ApplyInvoiceCreditsRequest proto.InternalMessageInfo
|
|
|
|
func (m *ApplyInvoiceCreditsRequest) GetPeriod() time.Time {
|
|
if m != nil {
|
|
return m.Period
|
|
}
|
|
return time.Time{}
|
|
}
|
|
|
|
type ApplyInvoiceCreditsResponse struct {
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *ApplyInvoiceCreditsResponse) Reset() { *m = ApplyInvoiceCreditsResponse{} }
|
|
func (m *ApplyInvoiceCreditsResponse) String() string { return proto.CompactTextString(m) }
|
|
func (*ApplyInvoiceCreditsResponse) ProtoMessage() {}
|
|
func (*ApplyInvoiceCreditsResponse) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_a9566e6e864d2854, []int{7}
|
|
}
|
|
func (m *ApplyInvoiceCreditsResponse) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_ApplyInvoiceCreditsResponse.Unmarshal(m, b)
|
|
}
|
|
func (m *ApplyInvoiceCreditsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_ApplyInvoiceCreditsResponse.Marshal(b, m, deterministic)
|
|
}
|
|
func (m *ApplyInvoiceCreditsResponse) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_ApplyInvoiceCreditsResponse.Merge(m, src)
|
|
}
|
|
func (m *ApplyInvoiceCreditsResponse) XXX_Size() int {
|
|
return xxx_messageInfo_ApplyInvoiceCreditsResponse.Size(m)
|
|
}
|
|
func (m *ApplyInvoiceCreditsResponse) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_ApplyInvoiceCreditsResponse.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_ApplyInvoiceCreditsResponse proto.InternalMessageInfo
|
|
|
|
type CreateInvoicesRequest struct {
|
|
Period time.Time `protobuf:"bytes,1,opt,name=period,proto3,stdtime" json:"period"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *CreateInvoicesRequest) Reset() { *m = CreateInvoicesRequest{} }
|
|
func (m *CreateInvoicesRequest) String() string { return proto.CompactTextString(m) }
|
|
func (*CreateInvoicesRequest) ProtoMessage() {}
|
|
func (*CreateInvoicesRequest) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_a9566e6e864d2854, []int{8}
|
|
}
|
|
func (m *CreateInvoicesRequest) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_CreateInvoicesRequest.Unmarshal(m, b)
|
|
}
|
|
func (m *CreateInvoicesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_CreateInvoicesRequest.Marshal(b, m, deterministic)
|
|
}
|
|
func (m *CreateInvoicesRequest) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_CreateInvoicesRequest.Merge(m, src)
|
|
}
|
|
func (m *CreateInvoicesRequest) XXX_Size() int {
|
|
return xxx_messageInfo_CreateInvoicesRequest.Size(m)
|
|
}
|
|
func (m *CreateInvoicesRequest) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_CreateInvoicesRequest.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_CreateInvoicesRequest proto.InternalMessageInfo
|
|
|
|
func (m *CreateInvoicesRequest) GetPeriod() time.Time {
|
|
if m != nil {
|
|
return m.Period
|
|
}
|
|
return time.Time{}
|
|
}
|
|
|
|
type CreateInvoicesResponse struct {
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *CreateInvoicesResponse) Reset() { *m = CreateInvoicesResponse{} }
|
|
func (m *CreateInvoicesResponse) String() string { return proto.CompactTextString(m) }
|
|
func (*CreateInvoicesResponse) ProtoMessage() {}
|
|
func (*CreateInvoicesResponse) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_a9566e6e864d2854, []int{9}
|
|
}
|
|
func (m *CreateInvoicesResponse) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_CreateInvoicesResponse.Unmarshal(m, b)
|
|
}
|
|
func (m *CreateInvoicesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_CreateInvoicesResponse.Marshal(b, m, deterministic)
|
|
}
|
|
func (m *CreateInvoicesResponse) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_CreateInvoicesResponse.Merge(m, src)
|
|
}
|
|
func (m *CreateInvoicesResponse) XXX_Size() int {
|
|
return xxx_messageInfo_CreateInvoicesResponse.Size(m)
|
|
}
|
|
func (m *CreateInvoicesResponse) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_CreateInvoicesResponse.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_CreateInvoicesResponse proto.InternalMessageInfo
|
|
|
|
func init() {
|
|
proto.RegisterType((*PrepareInvoiceRecordsRequest)(nil), "nodestats.PrepareInvoiceRecordsRequest")
|
|
proto.RegisterType((*PrepareInvoiceRecordsResponse)(nil), "nodestats.PrepareInvoiceRecordsResponse")
|
|
proto.RegisterType((*ApplyInvoiceRecordsRequest)(nil), "nodestats.ApplyInvoiceRecordsRequest")
|
|
proto.RegisterType((*ApplyInvoiceRecordsResponse)(nil), "nodestats.ApplyInvoiceRecordsResponse")
|
|
proto.RegisterType((*ApplyInvoiceCouponsRequest)(nil), "nodestats.ApplyInvoiceCouponsRequest")
|
|
proto.RegisterType((*ApplyInvoiceCouponsResponse)(nil), "nodestats.ApplyInvoiceCouponsResponse")
|
|
proto.RegisterType((*ApplyInvoiceCreditsRequest)(nil), "nodestats.ApplyInvoiceCreditsRequest")
|
|
proto.RegisterType((*ApplyInvoiceCreditsResponse)(nil), "nodestats.ApplyInvoiceCreditsResponse")
|
|
proto.RegisterType((*CreateInvoicesRequest)(nil), "nodestats.CreateInvoicesRequest")
|
|
proto.RegisterType((*CreateInvoicesResponse)(nil), "nodestats.CreateInvoicesResponse")
|
|
}
|
|
|
|
func init() { proto.RegisterFile("payments.proto", fileDescriptor_a9566e6e864d2854) }
|
|
|
|
var fileDescriptor_a9566e6e864d2854 = []byte{
|
|
// 342 bytes of a gzipped FileDescriptorProto
|
|
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x92, 0x41, 0x4e, 0xc2, 0x40,
|
|
0x14, 0x86, 0x25, 0x26, 0x04, 0x9f, 0x09, 0x8b, 0x51, 0x0c, 0xa9, 0x92, 0x22, 0x89, 0xca, 0x6a,
|
|
0x9a, 0xe0, 0xd6, 0x8d, 0xb0, 0x72, 0x47, 0x88, 0x6c, 0x88, 0x9b, 0x42, 0x9f, 0x4d, 0x09, 0xed,
|
|
0x1b, 0x67, 0x06, 0x13, 0x6e, 0xe1, 0xb1, 0x3c, 0x85, 0x1e, 0x45, 0x03, 0xd3, 0x12, 0x8a, 0x1d,
|
|
0xd8, 0xc8, 0xb2, 0xcd, 0x9b, 0xef, 0x5b, 0xfc, 0x1f, 0x54, 0x85, 0xbf, 0x88, 0x31, 0xd1, 0x8a,
|
|
0x0b, 0x49, 0x9a, 0xd8, 0x49, 0x42, 0x01, 0x2a, 0xed, 0x6b, 0xe5, 0x40, 0x48, 0x21, 0x99, 0xdf,
|
|
0x8e, 0x1b, 0x12, 0x85, 0x33, 0xf4, 0x56, 0x5f, 0xe3, 0xf9, 0xab, 0xa7, 0xa3, 0x78, 0x79, 0x16,
|
|
0x0b, 0x73, 0xd0, 0x7a, 0x81, 0xab, 0xbe, 0x44, 0xe1, 0x4b, 0x7c, 0x4a, 0xde, 0x29, 0x9a, 0xe0,
|
|
0x00, 0x27, 0x24, 0x03, 0x35, 0xc0, 0xb7, 0x39, 0x2a, 0xcd, 0x1e, 0xa0, 0x2c, 0x50, 0x46, 0x14,
|
|
0xd4, 0x4b, 0xcd, 0x52, 0xfb, 0xb4, 0xe3, 0x70, 0x43, 0xe4, 0x19, 0x91, 0x3f, 0x67, 0xc4, 0x6e,
|
|
0xe5, 0xf3, 0xcb, 0x3d, 0xfa, 0xf8, 0x76, 0x4b, 0x83, 0xf4, 0x4d, 0xcb, 0x85, 0x86, 0x85, 0xae,
|
|
0x04, 0x25, 0x0a, 0x5b, 0x23, 0x70, 0x1e, 0x85, 0x98, 0x2d, 0x0e, 0x21, 0x6f, 0xc0, 0x65, 0x21,
|
|
0xbb, 0x58, 0xdd, 0xa3, 0xf9, 0xf2, 0xff, 0x41, 0xd4, 0x6b, 0xb6, 0x45, 0x2d, 0x31, 0x88, 0xf4,
|
|
0x81, 0xd4, 0x19, 0x3b, 0x55, 0x0f, 0xa1, 0xd6, 0x93, 0xe8, 0xeb, 0x6c, 0x90, 0x7f, 0xb2, 0xd6,
|
|
0xe1, 0x62, 0x1b, 0x6b, 0x84, 0x9d, 0x9f, 0x63, 0xa8, 0xf4, 0xd3, 0x56, 0xd9, 0x14, 0x6a, 0x85,
|
|
0x3d, 0xb0, 0x3b, 0xbe, 0xee, 0x97, 0xef, 0xea, 0xd1, 0x69, 0xef, 0x3f, 0x34, 0x62, 0x16, 0xc0,
|
|
0x59, 0xc1, 0xfc, 0xec, 0x66, 0x03, 0x60, 0x4f, 0xcf, 0xb9, 0xdd, 0x77, 0x56, 0x6c, 0x49, 0x97,
|
|
0xb6, 0x5a, 0xf2, 0x95, 0x59, 0x2d, 0x5b, 0xc1, 0xfc, 0xb1, 0x98, 0x51, 0xed, 0x96, 0x5c, 0x50,
|
|
0x76, 0x4b, 0xbe, 0x0d, 0x36, 0x84, 0x6a, 0x7e, 0x44, 0xd6, 0xdc, 0x78, 0x59, 0x98, 0x8d, 0x73,
|
|
0xbd, 0xe3, 0xc2, 0x60, 0xbb, 0xe7, 0x23, 0xa6, 0x34, 0xc9, 0x29, 0x8f, 0xc8, 0x9b, 0x50, 0x1c,
|
|
0x53, 0xe2, 0x89, 0xf1, 0xb8, 0xbc, 0xea, 0xea, 0xfe, 0x37, 0x00, 0x00, 0xff, 0xff, 0x7b, 0xde,
|
|
0x0b, 0xc5, 0xc9, 0x04, 0x00, 0x00,
|
|
}
|
|
|
|
// --- DRPC BEGIN ---
|
|
|
|
type DRPCPaymentsClient interface {
|
|
DRPCConn() drpc.Conn
|
|
|
|
PrepareInvoiceRecords(ctx context.Context, in *PrepareInvoiceRecordsRequest) (*PrepareInvoiceRecordsResponse, error)
|
|
ApplyInvoiceRecords(ctx context.Context, in *ApplyInvoiceRecordsRequest) (*ApplyInvoiceRecordsResponse, error)
|
|
ApplyInvoiceCoupons(ctx context.Context, in *ApplyInvoiceCouponsRequest) (*ApplyInvoiceCouponsResponse, error)
|
|
ApplyInvoiceCredits(ctx context.Context, in *ApplyInvoiceCreditsRequest) (*ApplyInvoiceCreditsResponse, error)
|
|
CreateInvoices(ctx context.Context, in *CreateInvoicesRequest) (*CreateInvoicesResponse, error)
|
|
}
|
|
|
|
type drpcPaymentsClient struct {
|
|
cc drpc.Conn
|
|
}
|
|
|
|
func NewDRPCPaymentsClient(cc drpc.Conn) DRPCPaymentsClient {
|
|
return &drpcPaymentsClient{cc}
|
|
}
|
|
|
|
func (c *drpcPaymentsClient) DRPCConn() drpc.Conn { return c.cc }
|
|
|
|
func (c *drpcPaymentsClient) PrepareInvoiceRecords(ctx context.Context, in *PrepareInvoiceRecordsRequest) (*PrepareInvoiceRecordsResponse, error) {
|
|
out := new(PrepareInvoiceRecordsResponse)
|
|
err := c.cc.Invoke(ctx, "/nodestats.Payments/PrepareInvoiceRecords", in, out)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *drpcPaymentsClient) ApplyInvoiceRecords(ctx context.Context, in *ApplyInvoiceRecordsRequest) (*ApplyInvoiceRecordsResponse, error) {
|
|
out := new(ApplyInvoiceRecordsResponse)
|
|
err := c.cc.Invoke(ctx, "/nodestats.Payments/ApplyInvoiceRecords", in, out)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *drpcPaymentsClient) ApplyInvoiceCoupons(ctx context.Context, in *ApplyInvoiceCouponsRequest) (*ApplyInvoiceCouponsResponse, error) {
|
|
out := new(ApplyInvoiceCouponsResponse)
|
|
err := c.cc.Invoke(ctx, "/nodestats.Payments/ApplyInvoiceCoupons", in, out)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *drpcPaymentsClient) ApplyInvoiceCredits(ctx context.Context, in *ApplyInvoiceCreditsRequest) (*ApplyInvoiceCreditsResponse, error) {
|
|
out := new(ApplyInvoiceCreditsResponse)
|
|
err := c.cc.Invoke(ctx, "/nodestats.Payments/ApplyInvoiceCredits", in, out)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *drpcPaymentsClient) CreateInvoices(ctx context.Context, in *CreateInvoicesRequest) (*CreateInvoicesResponse, error) {
|
|
out := new(CreateInvoicesResponse)
|
|
err := c.cc.Invoke(ctx, "/nodestats.Payments/CreateInvoices", in, out)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
type DRPCPaymentsServer interface {
|
|
PrepareInvoiceRecords(context.Context, *PrepareInvoiceRecordsRequest) (*PrepareInvoiceRecordsResponse, error)
|
|
ApplyInvoiceRecords(context.Context, *ApplyInvoiceRecordsRequest) (*ApplyInvoiceRecordsResponse, error)
|
|
ApplyInvoiceCoupons(context.Context, *ApplyInvoiceCouponsRequest) (*ApplyInvoiceCouponsResponse, error)
|
|
ApplyInvoiceCredits(context.Context, *ApplyInvoiceCreditsRequest) (*ApplyInvoiceCreditsResponse, error)
|
|
CreateInvoices(context.Context, *CreateInvoicesRequest) (*CreateInvoicesResponse, error)
|
|
}
|
|
|
|
type DRPCPaymentsDescription struct{}
|
|
|
|
func (DRPCPaymentsDescription) NumMethods() int { return 5 }
|
|
|
|
func (DRPCPaymentsDescription) Method(n int) (string, drpc.Receiver, interface{}, bool) {
|
|
switch n {
|
|
case 0:
|
|
return "/nodestats.Payments/PrepareInvoiceRecords",
|
|
func(srv interface{}, ctx context.Context, in1, in2 interface{}) (drpc.Message, error) {
|
|
return srv.(DRPCPaymentsServer).
|
|
PrepareInvoiceRecords(
|
|
ctx,
|
|
in1.(*PrepareInvoiceRecordsRequest),
|
|
)
|
|
}, DRPCPaymentsServer.PrepareInvoiceRecords, true
|
|
case 1:
|
|
return "/nodestats.Payments/ApplyInvoiceRecords",
|
|
func(srv interface{}, ctx context.Context, in1, in2 interface{}) (drpc.Message, error) {
|
|
return srv.(DRPCPaymentsServer).
|
|
ApplyInvoiceRecords(
|
|
ctx,
|
|
in1.(*ApplyInvoiceRecordsRequest),
|
|
)
|
|
}, DRPCPaymentsServer.ApplyInvoiceRecords, true
|
|
case 2:
|
|
return "/nodestats.Payments/ApplyInvoiceCoupons",
|
|
func(srv interface{}, ctx context.Context, in1, in2 interface{}) (drpc.Message, error) {
|
|
return srv.(DRPCPaymentsServer).
|
|
ApplyInvoiceCoupons(
|
|
ctx,
|
|
in1.(*ApplyInvoiceCouponsRequest),
|
|
)
|
|
}, DRPCPaymentsServer.ApplyInvoiceCoupons, true
|
|
case 3:
|
|
return "/nodestats.Payments/ApplyInvoiceCredits",
|
|
func(srv interface{}, ctx context.Context, in1, in2 interface{}) (drpc.Message, error) {
|
|
return srv.(DRPCPaymentsServer).
|
|
ApplyInvoiceCredits(
|
|
ctx,
|
|
in1.(*ApplyInvoiceCreditsRequest),
|
|
)
|
|
}, DRPCPaymentsServer.ApplyInvoiceCredits, true
|
|
case 4:
|
|
return "/nodestats.Payments/CreateInvoices",
|
|
func(srv interface{}, ctx context.Context, in1, in2 interface{}) (drpc.Message, error) {
|
|
return srv.(DRPCPaymentsServer).
|
|
CreateInvoices(
|
|
ctx,
|
|
in1.(*CreateInvoicesRequest),
|
|
)
|
|
}, DRPCPaymentsServer.CreateInvoices, true
|
|
default:
|
|
return "", nil, nil, false
|
|
}
|
|
}
|
|
|
|
func DRPCRegisterPayments(mux drpc.Mux, impl DRPCPaymentsServer) error {
|
|
return mux.Register(impl, DRPCPaymentsDescription{})
|
|
}
|
|
|
|
type DRPCPayments_PrepareInvoiceRecordsStream interface {
|
|
drpc.Stream
|
|
SendAndClose(*PrepareInvoiceRecordsResponse) error
|
|
}
|
|
|
|
type drpcPaymentsPrepareInvoiceRecordsStream struct {
|
|
drpc.Stream
|
|
}
|
|
|
|
func (x *drpcPaymentsPrepareInvoiceRecordsStream) SendAndClose(m *PrepareInvoiceRecordsResponse) error {
|
|
if err := x.MsgSend(m); err != nil {
|
|
return err
|
|
}
|
|
return x.CloseSend()
|
|
}
|
|
|
|
type DRPCPayments_ApplyInvoiceRecordsStream interface {
|
|
drpc.Stream
|
|
SendAndClose(*ApplyInvoiceRecordsResponse) error
|
|
}
|
|
|
|
type drpcPaymentsApplyInvoiceRecordsStream struct {
|
|
drpc.Stream
|
|
}
|
|
|
|
func (x *drpcPaymentsApplyInvoiceRecordsStream) SendAndClose(m *ApplyInvoiceRecordsResponse) error {
|
|
if err := x.MsgSend(m); err != nil {
|
|
return err
|
|
}
|
|
return x.CloseSend()
|
|
}
|
|
|
|
type DRPCPayments_ApplyInvoiceCouponsStream interface {
|
|
drpc.Stream
|
|
SendAndClose(*ApplyInvoiceCouponsResponse) error
|
|
}
|
|
|
|
type drpcPaymentsApplyInvoiceCouponsStream struct {
|
|
drpc.Stream
|
|
}
|
|
|
|
func (x *drpcPaymentsApplyInvoiceCouponsStream) SendAndClose(m *ApplyInvoiceCouponsResponse) error {
|
|
if err := x.MsgSend(m); err != nil {
|
|
return err
|
|
}
|
|
return x.CloseSend()
|
|
}
|
|
|
|
type DRPCPayments_ApplyInvoiceCreditsStream interface {
|
|
drpc.Stream
|
|
SendAndClose(*ApplyInvoiceCreditsResponse) error
|
|
}
|
|
|
|
type drpcPaymentsApplyInvoiceCreditsStream struct {
|
|
drpc.Stream
|
|
}
|
|
|
|
func (x *drpcPaymentsApplyInvoiceCreditsStream) SendAndClose(m *ApplyInvoiceCreditsResponse) error {
|
|
if err := x.MsgSend(m); err != nil {
|
|
return err
|
|
}
|
|
return x.CloseSend()
|
|
}
|
|
|
|
type DRPCPayments_CreateInvoicesStream interface {
|
|
drpc.Stream
|
|
SendAndClose(*CreateInvoicesResponse) error
|
|
}
|
|
|
|
type drpcPaymentsCreateInvoicesStream struct {
|
|
drpc.Stream
|
|
}
|
|
|
|
func (x *drpcPaymentsCreateInvoicesStream) SendAndClose(m *CreateInvoicesResponse) error {
|
|
if err := x.MsgSend(m); err != nil {
|
|
return err
|
|
}
|
|
return x.CloseSend()
|
|
}
|
|
|
|
// --- DRPC END ---
|