// Code generated by protoc-gen-go. DO NOT EDIT. // source: server.proto package rpc // import "github.com/lightninglabs/loop/rpc" import proto "github.com/golang/protobuf/proto" import fmt "fmt" import math "math" import _ "google.golang.org/genproto/googleapis/api/annotations" import ( context "golang.org/x/net/context" grpc "google.golang.org/grpc" ) // 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 ServerUnchargeSwapRequest struct { ReceiverKey []byte `protobuf:"bytes,1,opt,name=receiver_key,json=receiverKey,proto3" json:"receiver_key,omitempty"` SwapHash []byte `protobuf:"bytes,2,opt,name=swap_hash,json=swapHash,proto3" json:"swap_hash,omitempty"` Amt uint64 `protobuf:"varint,3,opt,name=amt,proto3" json:"amt,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *ServerUnchargeSwapRequest) Reset() { *m = ServerUnchargeSwapRequest{} } func (m *ServerUnchargeSwapRequest) String() string { return proto.CompactTextString(m) } func (*ServerUnchargeSwapRequest) ProtoMessage() {} func (*ServerUnchargeSwapRequest) Descriptor() ([]byte, []int) { return fileDescriptor_server_1e67d8b2f65fb149, []int{0} } func (m *ServerUnchargeSwapRequest) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_ServerUnchargeSwapRequest.Unmarshal(m, b) } func (m *ServerUnchargeSwapRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_ServerUnchargeSwapRequest.Marshal(b, m, deterministic) } func (dst *ServerUnchargeSwapRequest) XXX_Merge(src proto.Message) { xxx_messageInfo_ServerUnchargeSwapRequest.Merge(dst, src) } func (m *ServerUnchargeSwapRequest) XXX_Size() int { return xxx_messageInfo_ServerUnchargeSwapRequest.Size(m) } func (m *ServerUnchargeSwapRequest) XXX_DiscardUnknown() { xxx_messageInfo_ServerUnchargeSwapRequest.DiscardUnknown(m) } var xxx_messageInfo_ServerUnchargeSwapRequest proto.InternalMessageInfo func (m *ServerUnchargeSwapRequest) GetReceiverKey() []byte { if m != nil { return m.ReceiverKey } return nil } func (m *ServerUnchargeSwapRequest) GetSwapHash() []byte { if m != nil { return m.SwapHash } return nil } func (m *ServerUnchargeSwapRequest) GetAmt() uint64 { if m != nil { return m.Amt } return 0 } type ServerUnchargeSwapResponse struct { SwapInvoice string `protobuf:"bytes,1,opt,name=swap_invoice,json=swapInvoice,proto3" json:"swap_invoice,omitempty"` PrepayInvoice string `protobuf:"bytes,2,opt,name=prepay_invoice,json=prepayInvoice,proto3" json:"prepay_invoice,omitempty"` SenderKey []byte `protobuf:"bytes,3,opt,name=sender_key,json=senderKey,proto3" json:"sender_key,omitempty"` Expiry int32 `protobuf:"varint,4,opt,name=expiry,proto3" json:"expiry,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *ServerUnchargeSwapResponse) Reset() { *m = ServerUnchargeSwapResponse{} } func (m *ServerUnchargeSwapResponse) String() string { return proto.CompactTextString(m) } func (*ServerUnchargeSwapResponse) ProtoMessage() {} func (*ServerUnchargeSwapResponse) Descriptor() ([]byte, []int) { return fileDescriptor_server_1e67d8b2f65fb149, []int{1} } func (m *ServerUnchargeSwapResponse) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_ServerUnchargeSwapResponse.Unmarshal(m, b) } func (m *ServerUnchargeSwapResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_ServerUnchargeSwapResponse.Marshal(b, m, deterministic) } func (dst *ServerUnchargeSwapResponse) XXX_Merge(src proto.Message) { xxx_messageInfo_ServerUnchargeSwapResponse.Merge(dst, src) } func (m *ServerUnchargeSwapResponse) XXX_Size() int { return xxx_messageInfo_ServerUnchargeSwapResponse.Size(m) } func (m *ServerUnchargeSwapResponse) XXX_DiscardUnknown() { xxx_messageInfo_ServerUnchargeSwapResponse.DiscardUnknown(m) } var xxx_messageInfo_ServerUnchargeSwapResponse proto.InternalMessageInfo func (m *ServerUnchargeSwapResponse) GetSwapInvoice() string { if m != nil { return m.SwapInvoice } return "" } func (m *ServerUnchargeSwapResponse) GetPrepayInvoice() string { if m != nil { return m.PrepayInvoice } return "" } func (m *ServerUnchargeSwapResponse) GetSenderKey() []byte { if m != nil { return m.SenderKey } return nil } func (m *ServerUnchargeSwapResponse) GetExpiry() int32 { if m != nil { return m.Expiry } return 0 } type ServerUnchargeQuoteRequest struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *ServerUnchargeQuoteRequest) Reset() { *m = ServerUnchargeQuoteRequest{} } func (m *ServerUnchargeQuoteRequest) String() string { return proto.CompactTextString(m) } func (*ServerUnchargeQuoteRequest) ProtoMessage() {} func (*ServerUnchargeQuoteRequest) Descriptor() ([]byte, []int) { return fileDescriptor_server_1e67d8b2f65fb149, []int{2} } func (m *ServerUnchargeQuoteRequest) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_ServerUnchargeQuoteRequest.Unmarshal(m, b) } func (m *ServerUnchargeQuoteRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_ServerUnchargeQuoteRequest.Marshal(b, m, deterministic) } func (dst *ServerUnchargeQuoteRequest) XXX_Merge(src proto.Message) { xxx_messageInfo_ServerUnchargeQuoteRequest.Merge(dst, src) } func (m *ServerUnchargeQuoteRequest) XXX_Size() int { return xxx_messageInfo_ServerUnchargeQuoteRequest.Size(m) } func (m *ServerUnchargeQuoteRequest) XXX_DiscardUnknown() { xxx_messageInfo_ServerUnchargeQuoteRequest.DiscardUnknown(m) } var xxx_messageInfo_ServerUnchargeQuoteRequest proto.InternalMessageInfo type ServerUnchargeQuoteResponse struct { SwapPaymentDest string `protobuf:"bytes,1,opt,name=swap_payment_dest,json=swapPaymentDest,proto3" json:"swap_payment_dest,omitempty"` SwapFeeBase int64 `protobuf:"varint,2,opt,name=swap_fee_base,json=swapFeeBase,proto3" json:"swap_fee_base,omitempty"` SwapFeeRate int64 `protobuf:"varint,3,opt,name=swap_fee_rate,json=swapFeeRate,proto3" json:"swap_fee_rate,omitempty"` PrepayAmt uint64 `protobuf:"varint,4,opt,name=prepay_amt,json=prepayAmt,proto3" json:"prepay_amt,omitempty"` MinSwapAmount uint64 `protobuf:"varint,5,opt,name=min_swap_amount,json=minSwapAmount,proto3" json:"min_swap_amount,omitempty"` MaxSwapAmount uint64 `protobuf:"varint,6,opt,name=max_swap_amount,json=maxSwapAmount,proto3" json:"max_swap_amount,omitempty"` CltvDelta int32 `protobuf:"varint,7,opt,name=cltv_delta,json=cltvDelta,proto3" json:"cltv_delta,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *ServerUnchargeQuoteResponse) Reset() { *m = ServerUnchargeQuoteResponse{} } func (m *ServerUnchargeQuoteResponse) String() string { return proto.CompactTextString(m) } func (*ServerUnchargeQuoteResponse) ProtoMessage() {} func (*ServerUnchargeQuoteResponse) Descriptor() ([]byte, []int) { return fileDescriptor_server_1e67d8b2f65fb149, []int{3} } func (m *ServerUnchargeQuoteResponse) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_ServerUnchargeQuoteResponse.Unmarshal(m, b) } func (m *ServerUnchargeQuoteResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_ServerUnchargeQuoteResponse.Marshal(b, m, deterministic) } func (dst *ServerUnchargeQuoteResponse) XXX_Merge(src proto.Message) { xxx_messageInfo_ServerUnchargeQuoteResponse.Merge(dst, src) } func (m *ServerUnchargeQuoteResponse) XXX_Size() int { return xxx_messageInfo_ServerUnchargeQuoteResponse.Size(m) } func (m *ServerUnchargeQuoteResponse) XXX_DiscardUnknown() { xxx_messageInfo_ServerUnchargeQuoteResponse.DiscardUnknown(m) } var xxx_messageInfo_ServerUnchargeQuoteResponse proto.InternalMessageInfo func (m *ServerUnchargeQuoteResponse) GetSwapPaymentDest() string { if m != nil { return m.SwapPaymentDest } return "" } func (m *ServerUnchargeQuoteResponse) GetSwapFeeBase() int64 { if m != nil { return m.SwapFeeBase } return 0 } func (m *ServerUnchargeQuoteResponse) GetSwapFeeRate() int64 { if m != nil { return m.SwapFeeRate } return 0 } func (m *ServerUnchargeQuoteResponse) GetPrepayAmt() uint64 { if m != nil { return m.PrepayAmt } return 0 } func (m *ServerUnchargeQuoteResponse) GetMinSwapAmount() uint64 { if m != nil { return m.MinSwapAmount } return 0 } func (m *ServerUnchargeQuoteResponse) GetMaxSwapAmount() uint64 { if m != nil { return m.MaxSwapAmount } return 0 } func (m *ServerUnchargeQuoteResponse) GetCltvDelta() int32 { if m != nil { return m.CltvDelta } return 0 } func init() { proto.RegisterType((*ServerUnchargeSwapRequest)(nil), "rpc.ServerUnchargeSwapRequest") proto.RegisterType((*ServerUnchargeSwapResponse)(nil), "rpc.ServerUnchargeSwapResponse") proto.RegisterType((*ServerUnchargeQuoteRequest)(nil), "rpc.ServerUnchargeQuoteRequest") proto.RegisterType((*ServerUnchargeQuoteResponse)(nil), "rpc.ServerUnchargeQuoteResponse") } // Reference imports to suppress errors if they are not otherwise used. var _ context.Context var _ grpc.ClientConn // This is a compile-time assertion to ensure that this generated file // is compatible with the grpc package it is being compiled against. const _ = grpc.SupportPackageIsVersion4 // SwapServerClient is the client API for SwapServer service. // // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. type SwapServerClient interface { NewUnchargeSwap(ctx context.Context, in *ServerUnchargeSwapRequest, opts ...grpc.CallOption) (*ServerUnchargeSwapResponse, error) UnchargeQuote(ctx context.Context, in *ServerUnchargeQuoteRequest, opts ...grpc.CallOption) (*ServerUnchargeQuoteResponse, error) } type swapServerClient struct { cc *grpc.ClientConn } func NewSwapServerClient(cc *grpc.ClientConn) SwapServerClient { return &swapServerClient{cc} } func (c *swapServerClient) NewUnchargeSwap(ctx context.Context, in *ServerUnchargeSwapRequest, opts ...grpc.CallOption) (*ServerUnchargeSwapResponse, error) { out := new(ServerUnchargeSwapResponse) err := c.cc.Invoke(ctx, "/rpc.SwapServer/NewUnchargeSwap", in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *swapServerClient) UnchargeQuote(ctx context.Context, in *ServerUnchargeQuoteRequest, opts ...grpc.CallOption) (*ServerUnchargeQuoteResponse, error) { out := new(ServerUnchargeQuoteResponse) err := c.cc.Invoke(ctx, "/rpc.SwapServer/UnchargeQuote", in, out, opts...) if err != nil { return nil, err } return out, nil } // SwapServerServer is the server API for SwapServer service. type SwapServerServer interface { NewUnchargeSwap(context.Context, *ServerUnchargeSwapRequest) (*ServerUnchargeSwapResponse, error) UnchargeQuote(context.Context, *ServerUnchargeQuoteRequest) (*ServerUnchargeQuoteResponse, error) } func RegisterSwapServerServer(s *grpc.Server, srv SwapServerServer) { s.RegisterService(&_SwapServer_serviceDesc, srv) } func _SwapServer_NewUnchargeSwap_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(ServerUnchargeSwapRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(SwapServerServer).NewUnchargeSwap(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/rpc.SwapServer/NewUnchargeSwap", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(SwapServerServer).NewUnchargeSwap(ctx, req.(*ServerUnchargeSwapRequest)) } return interceptor(ctx, in, info, handler) } func _SwapServer_UnchargeQuote_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(ServerUnchargeQuoteRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(SwapServerServer).UnchargeQuote(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/rpc.SwapServer/UnchargeQuote", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(SwapServerServer).UnchargeQuote(ctx, req.(*ServerUnchargeQuoteRequest)) } return interceptor(ctx, in, info, handler) } var _SwapServer_serviceDesc = grpc.ServiceDesc{ ServiceName: "rpc.SwapServer", HandlerType: (*SwapServerServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "NewUnchargeSwap", Handler: _SwapServer_NewUnchargeSwap_Handler, }, { MethodName: "UnchargeQuote", Handler: _SwapServer_UnchargeQuote_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "server.proto", } func init() { proto.RegisterFile("server.proto", fileDescriptor_server_1e67d8b2f65fb149) } var fileDescriptor_server_1e67d8b2f65fb149 = []byte{ // 468 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x74, 0x93, 0xcf, 0x8e, 0xd3, 0x30, 0x10, 0xc6, 0x95, 0xb6, 0x5b, 0xe8, 0x6c, 0x4b, 0x21, 0x07, 0x14, 0xba, 0xbb, 0xd0, 0x0d, 0x02, 0x55, 0x1c, 0x1a, 0x09, 0x9e, 0x60, 0x57, 0x2b, 0x04, 0x42, 0x42, 0x90, 0x15, 0x17, 0x2e, 0xd1, 0x34, 0x1d, 0x12, 0x8b, 0xc4, 0x36, 0xb6, 0xfb, 0x27, 0x0f, 0x83, 0x78, 0x09, 0x1e, 0x10, 0xd9, 0xce, 0x42, 0x8b, 0xda, 0x5b, 0xf2, 0xcd, 0xcf, 0x33, 0xdf, 0x7c, 0x4e, 0x60, 0xa8, 0x49, 0xad, 0x49, 0xcd, 0xa5, 0x12, 0x46, 0x84, 0x5d, 0x25, 0xf3, 0xc9, 0x79, 0x21, 0x44, 0x51, 0x51, 0x82, 0x92, 0x25, 0xc8, 0xb9, 0x30, 0x68,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