lnd.xprv/lnrpc/rpc.pb.go
2016-01-14 23:55:45 -08:00

343 lines
13 KiB
Go

// 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
TCPListenRequest
TCPListenResponse
LNConnectRequest
LnConnectResponse
LnChatRequest
LnChatResponse
*/
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
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 {
}
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 TCPListenRequest struct {
Hostport string `protobuf:"bytes,1,opt,name=hostport" json:"hostport,omitempty"`
}
func (m *TCPListenRequest) Reset() { *m = TCPListenRequest{} }
func (m *TCPListenRequest) String() string { return proto.CompactTextString(m) }
func (*TCPListenRequest) ProtoMessage() {}
func (*TCPListenRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{4} }
type TCPListenResponse struct {
}
func (m *TCPListenResponse) Reset() { *m = TCPListenResponse{} }
func (m *TCPListenResponse) String() string { return proto.CompactTextString(m) }
func (*TCPListenResponse) ProtoMessage() {}
func (*TCPListenResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{5} }
type LNConnectRequest struct {
IdAtHost string `protobuf:"bytes,1,opt,name=idAtHost" json:"idAtHost,omitempty"`
}
func (m *LNConnectRequest) Reset() { *m = LNConnectRequest{} }
func (m *LNConnectRequest) String() string { return proto.CompactTextString(m) }
func (*LNConnectRequest) ProtoMessage() {}
func (*LNConnectRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{6} }
type LnConnectResponse struct {
LnID []byte `protobuf:"bytes,1,opt,name=lnID,proto3" json:"lnID,omitempty"`
}
func (m *LnConnectResponse) Reset() { *m = LnConnectResponse{} }
func (m *LnConnectResponse) String() string { return proto.CompactTextString(m) }
func (*LnConnectResponse) ProtoMessage() {}
func (*LnConnectResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{7} }
type LnChatRequest struct {
DestID []byte `protobuf:"bytes,1,opt,name=destID,proto3" json:"destID,omitempty"`
Msg string `protobuf:"bytes,2,opt,name=msg" json:"msg,omitempty"`
}
func (m *LnChatRequest) Reset() { *m = LnChatRequest{} }
func (m *LnChatRequest) String() string { return proto.CompactTextString(m) }
func (*LnChatRequest) ProtoMessage() {}
func (*LnChatRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{8} }
type LnChatResponse struct {
}
func (m *LnChatResponse) Reset() { *m = LnChatResponse{} }
func (m *LnChatResponse) String() string { return proto.CompactTextString(m) }
func (*LnChatResponse) ProtoMessage() {}
func (*LnChatResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{9} }
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((*TCPListenRequest)(nil), "lnrpc.TCPListenRequest")
proto.RegisterType((*TCPListenResponse)(nil), "lnrpc.TCPListenResponse")
proto.RegisterType((*LNConnectRequest)(nil), "lnrpc.LNConnectRequest")
proto.RegisterType((*LnConnectResponse)(nil), "lnrpc.LnConnectResponse")
proto.RegisterType((*LnChatRequest)(nil), "lnrpc.LnChatRequest")
proto.RegisterType((*LnChatResponse)(nil), "lnrpc.LnChatResponse")
}
// Reference imports to suppress errors if they are not otherwise used.
var _ context.Context
var _ grpc.ClientConn
// 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)
TCPListen(ctx context.Context, in *TCPListenRequest, opts ...grpc.CallOption) (*TCPListenResponse, error)
LNConnect(ctx context.Context, in *LNConnectRequest, opts ...grpc.CallOption) (*LnConnectResponse, error)
LNChat(ctx context.Context, in *LnChatRequest, opts ...grpc.CallOption) (*LnChatResponse, 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) TCPListen(ctx context.Context, in *TCPListenRequest, opts ...grpc.CallOption) (*TCPListenResponse, error) {
out := new(TCPListenResponse)
err := grpc.Invoke(ctx, "/lnrpc.Lightning/TCPListen", in, out, c.cc, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *lightningClient) LNConnect(ctx context.Context, in *LNConnectRequest, opts ...grpc.CallOption) (*LnConnectResponse, error) {
out := new(LnConnectResponse)
err := grpc.Invoke(ctx, "/lnrpc.Lightning/LNConnect", in, out, c.cc, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *lightningClient) LNChat(ctx context.Context, in *LnChatRequest, opts ...grpc.CallOption) (*LnChatResponse, error) {
out := new(LnChatResponse)
err := grpc.Invoke(ctx, "/lnrpc.Lightning/LNChat", 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)
TCPListen(context.Context, *TCPListenRequest) (*TCPListenResponse, error)
LNConnect(context.Context, *LNConnectRequest) (*LnConnectResponse, error)
LNChat(context.Context, *LnChatRequest) (*LnChatResponse, 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) (interface{}, error) {
in := new(SendManyRequest)
if err := dec(in); err != nil {
return nil, err
}
out, err := srv.(LightningServer).SendMany(ctx, in)
if err != nil {
return nil, err
}
return out, nil
}
func _Lightning_NewAddress_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error) (interface{}, error) {
in := new(NewAddressRequest)
if err := dec(in); err != nil {
return nil, err
}
out, err := srv.(LightningServer).NewAddress(ctx, in)
if err != nil {
return nil, err
}
return out, nil
}
func _Lightning_TCPListen_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error) (interface{}, error) {
in := new(TCPListenRequest)
if err := dec(in); err != nil {
return nil, err
}
out, err := srv.(LightningServer).TCPListen(ctx, in)
if err != nil {
return nil, err
}
return out, nil
}
func _Lightning_LNConnect_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error) (interface{}, error) {
in := new(LNConnectRequest)
if err := dec(in); err != nil {
return nil, err
}
out, err := srv.(LightningServer).LNConnect(ctx, in)
if err != nil {
return nil, err
}
return out, nil
}
func _Lightning_LNChat_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error) (interface{}, error) {
in := new(LnChatRequest)
if err := dec(in); err != nil {
return nil, err
}
out, err := srv.(LightningServer).LNChat(ctx, in)
if err != nil {
return nil, err
}
return out, nil
}
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: "TCPListen",
Handler: _Lightning_TCPListen_Handler,
},
{
MethodName: "LNConnect",
Handler: _Lightning_LNConnect_Handler,
},
{
MethodName: "LNChat",
Handler: _Lightning_LNChat_Handler,
},
},
Streams: []grpc.StreamDesc{},
}
var fileDescriptor0 = []byte{
// 376 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0x6c, 0x92, 0x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