// Code generated by protoc-gen-go. // source: rpc.proto // DO NOT EDIT! /* Package lnrpc is a generated protocol buffer package. It is generated from these files: rpc.proto It has these top-level messages: SendManyRequest SendManyResponse NewAddressRequest NewAddressResponse ConnectPeerRequest ConnectPeerResponse */ package lnrpc import proto "github.com/golang/protobuf/proto" import fmt "fmt" import math "math" 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. const _ = proto.ProtoPackageIsVersion1 type NewAddressRequest_AddressType int32 const ( NewAddressRequest_WITNESS_PUBKEY_HASH NewAddressRequest_AddressType = 0 NewAddressRequest_NESTED_PUBKEY_HASH NewAddressRequest_AddressType = 1 NewAddressRequest_PUBKEY_HASH NewAddressRequest_AddressType = 2 ) var NewAddressRequest_AddressType_name = map[int32]string{ 0: "WITNESS_PUBKEY_HASH", 1: "NESTED_PUBKEY_HASH", 2: "PUBKEY_HASH", } var NewAddressRequest_AddressType_value = map[string]int32{ "WITNESS_PUBKEY_HASH": 0, "NESTED_PUBKEY_HASH": 1, "PUBKEY_HASH": 2, } func (x NewAddressRequest_AddressType) String() string { return proto.EnumName(NewAddressRequest_AddressType_name, int32(x)) } func (NewAddressRequest_AddressType) EnumDescriptor() ([]byte, []int) { return fileDescriptor0, []int{2, 0} } type SendManyRequest struct { AddrToAmount map[string]int64 `protobuf:"bytes,1,rep,name=AddrToAmount" json:"AddrToAmount,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"varint,2,opt,name=value"` } func (m *SendManyRequest) Reset() { *m = SendManyRequest{} } func (m *SendManyRequest) String() string { return proto.CompactTextString(m) } func (*SendManyRequest) ProtoMessage() {} func (*SendManyRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} } func (m *SendManyRequest) GetAddrToAmount() map[string]int64 { if m != nil { return m.AddrToAmount } return nil } type SendManyResponse struct { Txid string `protobuf:"bytes,1,opt,name=txid" json:"txid,omitempty"` } func (m *SendManyResponse) Reset() { *m = SendManyResponse{} } func (m *SendManyResponse) String() string { return proto.CompactTextString(m) } func (*SendManyResponse) ProtoMessage() {} func (*SendManyResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} } type NewAddressRequest struct { Type NewAddressRequest_AddressType `protobuf:"varint,1,opt,name=type,enum=lnrpc.NewAddressRequest_AddressType" json:"type,omitempty"` } func (m *NewAddressRequest) Reset() { *m = NewAddressRequest{} } func (m *NewAddressRequest) String() string { return proto.CompactTextString(m) } func (*NewAddressRequest) ProtoMessage() {} func (*NewAddressRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{2} } type NewAddressResponse struct { Address string `protobuf:"bytes,1,opt,name=address" json:"address,omitempty"` } func (m *NewAddressResponse) Reset() { *m = NewAddressResponse{} } func (m *NewAddressResponse) String() string { return proto.CompactTextString(m) } func (*NewAddressResponse) ProtoMessage() {} func (*NewAddressResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{3} } type ConnectPeerRequest struct { IdAtHost string `protobuf:"bytes,1,opt,name=idAtHost" json:"idAtHost,omitempty"` } func (m *ConnectPeerRequest) Reset() { *m = ConnectPeerRequest{} } func (m *ConnectPeerRequest) String() string { return proto.CompactTextString(m) } func (*ConnectPeerRequest) ProtoMessage() {} func (*ConnectPeerRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{4} } type ConnectPeerResponse struct { LnID []byte `protobuf:"bytes,1,opt,name=lnID,proto3" json:"lnID,omitempty"` } func (m *ConnectPeerResponse) Reset() { *m = ConnectPeerResponse{} } func (m *ConnectPeerResponse) String() string { return proto.CompactTextString(m) } func (*ConnectPeerResponse) ProtoMessage() {} func (*ConnectPeerResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{5} } func init() { proto.RegisterType((*SendManyRequest)(nil), "lnrpc.SendManyRequest") proto.RegisterType((*SendManyResponse)(nil), "lnrpc.SendManyResponse") proto.RegisterType((*NewAddressRequest)(nil), "lnrpc.NewAddressRequest") proto.RegisterType((*NewAddressResponse)(nil), "lnrpc.NewAddressResponse") proto.RegisterType((*ConnectPeerRequest)(nil), "lnrpc.ConnectPeerRequest") proto.RegisterType((*ConnectPeerResponse)(nil), "lnrpc.ConnectPeerResponse") proto.RegisterEnum("lnrpc.NewAddressRequest_AddressType", NewAddressRequest_AddressType_name, NewAddressRequest_AddressType_value) } // 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.SupportPackageIsVersion2 // Client API for Lightning service type LightningClient interface { SendMany(ctx context.Context, in *SendManyRequest, opts ...grpc.CallOption) (*SendManyResponse, error) NewAddress(ctx context.Context, in *NewAddressRequest, opts ...grpc.CallOption) (*NewAddressResponse, error) ConnectPeer(ctx context.Context, in *ConnectPeerRequest, opts ...grpc.CallOption) (*ConnectPeerResponse, error) } type lightningClient struct { cc *grpc.ClientConn } func NewLightningClient(cc *grpc.ClientConn) LightningClient { return &lightningClient{cc} } func (c *lightningClient) SendMany(ctx context.Context, in *SendManyRequest, opts ...grpc.CallOption) (*SendManyResponse, error) { out := new(SendManyResponse) err := grpc.Invoke(ctx, "/lnrpc.Lightning/SendMany", in, out, c.cc, opts...) if err != nil { return nil, err } return out, nil } func (c *lightningClient) NewAddress(ctx context.Context, in *NewAddressRequest, opts ...grpc.CallOption) (*NewAddressResponse, error) { out := new(NewAddressResponse) err := grpc.Invoke(ctx, "/lnrpc.Lightning/NewAddress", in, out, c.cc, opts...) if err != nil { return nil, err } return out, nil } func (c *lightningClient) ConnectPeer(ctx context.Context, in *ConnectPeerRequest, opts ...grpc.CallOption) (*ConnectPeerResponse, error) { out := new(ConnectPeerResponse) err := grpc.Invoke(ctx, "/lnrpc.Lightning/ConnectPeer", in, out, c.cc, opts...) if err != nil { return nil, err } return out, nil } // Server API for Lightning service type LightningServer interface { SendMany(context.Context, *SendManyRequest) (*SendManyResponse, error) NewAddress(context.Context, *NewAddressRequest) (*NewAddressResponse, error) ConnectPeer(context.Context, *ConnectPeerRequest) (*ConnectPeerResponse, error) } func RegisterLightningServer(s *grpc.Server, srv LightningServer) { s.RegisterService(&_Lightning_serviceDesc, srv) } func _Lightning_SendMany_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(SendManyRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(LightningServer).SendMany(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/lnrpc.Lightning/SendMany", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(LightningServer).SendMany(ctx, req.(*SendManyRequest)) } return interceptor(ctx, in, info, handler) } func _Lightning_NewAddress_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(NewAddressRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(LightningServer).NewAddress(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/lnrpc.Lightning/NewAddress", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(LightningServer).NewAddress(ctx, req.(*NewAddressRequest)) } return interceptor(ctx, in, info, handler) } func _Lightning_ConnectPeer_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(ConnectPeerRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(LightningServer).ConnectPeer(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/lnrpc.Lightning/ConnectPeer", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(LightningServer).ConnectPeer(ctx, req.(*ConnectPeerRequest)) } return interceptor(ctx, in, info, handler) } var _Lightning_serviceDesc = grpc.ServiceDesc{ ServiceName: "lnrpc.Lightning", HandlerType: (*LightningServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "SendMany", Handler: _Lightning_SendMany_Handler, }, { MethodName: "NewAddress", Handler: _Lightning_NewAddress_Handler, }, { MethodName: "ConnectPeer", Handler: _Lightning_ConnectPeer_Handler, }, }, Streams: []grpc.StreamDesc{}, } var fileDescriptor0 = []byte{ // 365 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0x74, 0x92, 0xcf, 0x4e, 0xea, 0x40, 0x14, 0xc6, 0x6f, 0xe1, 0x72, 0x2f, 0x9c, 0xa2, 0xc0, 0x21, 0x01, 0xec, 0x8a, 0xd4, 0x3f, 0x61, 0xd5, 0x45, 0xd9, 0x18, 0x4d, 0x4c, 0xaa, 0x34, 0x81, 0xa8, 0x48, 0x6c, 0x8d, 0x71, 0x45, 0x90, 0x4e, 0xb0, 0x11, 0xa7, 0xb5, 0x1d, 0xd4, 0xbe, 0x80, 0xcf, 0xe0, 0x6b, 0xf9, 0x46, 0x8e, 0x65, 0x1a, 0x8a, 0xc5, 0xe5, 0xf7, 0xcd, 0x6f, 0xbe, 0x7e, 0xe7, 0x74, 0xa0, 0x14, 0xf8, 0x53, 0xcd, 0x0f, 0x3c, 0xe6, 0x61, 0x61, 0x4e, 0xb9, 0x50, 0xdf, 0x25, 0xa8, 0x58, 0x84, 0x3a, 0x97, 0x13, 0x1a, 0x5d, 0x93, 0xe7, 0x05, 0x09, 0x19, 0x9e, 0x40, 0xd9, 0x70, 0x9c, 0xc0, 0xf6, 0x8c, 0x27, 0x6f, 0x41, 0x59, 0x4b, 0x6a, 0xe7, 0x3b, 0xb2, 0xde, 0xd1, 0xe2, 0x1b, 0xda, 0x0f, 0x5a, 0x4b, 0xa3, 0x26, 0x65, 0x41, 0xa4, 0x74, 0xa1, 0x96, 0x31, 0x51, 0x86, 0xfc, 0x23, 0x89, 0x78, 0x96, 0xd4, 0x29, 0xe1, 0x16, 0x14, 0x5e, 0x26, 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