2019-06-21 02:53:09 +03:00
|
|
|
// Code generated by protoc-gen-go. DO NOT EDIT.
|
2021-04-28 16:30:59 +03:00
|
|
|
// versions:
|
|
|
|
// protoc-gen-go v1.23.0
|
|
|
|
// protoc v3.6.1
|
2019-06-21 02:53:09 +03:00
|
|
|
// source: watchtowerrpc/watchtower.proto
|
|
|
|
|
|
|
|
package watchtowerrpc
|
|
|
|
|
|
|
|
import (
|
|
|
|
context "context"
|
|
|
|
proto "github.com/golang/protobuf/proto"
|
|
|
|
grpc "google.golang.org/grpc"
|
2020-05-28 14:07:31 +03:00
|
|
|
codes "google.golang.org/grpc/codes"
|
|
|
|
status "google.golang.org/grpc/status"
|
2021-04-28 16:30:59 +03:00
|
|
|
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
|
|
|
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
|
|
|
reflect "reflect"
|
|
|
|
sync "sync"
|
2019-06-21 02:53:09 +03:00
|
|
|
)
|
|
|
|
|
2021-04-28 16:30:59 +03:00
|
|
|
const (
|
|
|
|
// Verify that this generated code is sufficiently up-to-date.
|
|
|
|
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
|
|
|
|
// Verify that runtime/protoimpl is sufficiently up-to-date.
|
|
|
|
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
|
|
|
|
)
|
2019-06-21 02:53:09 +03:00
|
|
|
|
2021-04-28 16:30:59 +03:00
|
|
|
// This is a compile-time assertion that a sufficiently up-to-date version
|
|
|
|
// of the legacy proto package is being used.
|
|
|
|
const _ = proto.ProtoPackageIsVersion4
|
2019-06-21 02:53:09 +03:00
|
|
|
|
|
|
|
type GetInfoRequest struct {
|
2021-04-28 16:30:59 +03:00
|
|
|
state protoimpl.MessageState
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
unknownFields protoimpl.UnknownFields
|
2019-06-21 02:53:09 +03:00
|
|
|
}
|
|
|
|
|
2021-04-28 16:30:59 +03:00
|
|
|
func (x *GetInfoRequest) Reset() {
|
|
|
|
*x = GetInfoRequest{}
|
|
|
|
if protoimpl.UnsafeEnabled {
|
|
|
|
mi := &file_watchtowerrpc_watchtower_proto_msgTypes[0]
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
2019-06-21 02:53:09 +03:00
|
|
|
}
|
|
|
|
|
2021-04-28 16:30:59 +03:00
|
|
|
func (x *GetInfoRequest) String() string {
|
|
|
|
return protoimpl.X.MessageStringOf(x)
|
2019-06-21 02:53:09 +03:00
|
|
|
}
|
2021-04-28 16:30:59 +03:00
|
|
|
|
|
|
|
func (*GetInfoRequest) ProtoMessage() {}
|
|
|
|
|
|
|
|
func (x *GetInfoRequest) ProtoReflect() protoreflect.Message {
|
|
|
|
mi := &file_watchtowerrpc_watchtower_proto_msgTypes[0]
|
|
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
if ms.LoadMessageInfo() == nil {
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
return ms
|
|
|
|
}
|
|
|
|
return mi.MessageOf(x)
|
2019-06-21 02:53:09 +03:00
|
|
|
}
|
|
|
|
|
2021-04-28 16:30:59 +03:00
|
|
|
// Deprecated: Use GetInfoRequest.ProtoReflect.Descriptor instead.
|
|
|
|
func (*GetInfoRequest) Descriptor() ([]byte, []int) {
|
|
|
|
return file_watchtowerrpc_watchtower_proto_rawDescGZIP(), []int{0}
|
|
|
|
}
|
2019-06-21 02:53:09 +03:00
|
|
|
|
|
|
|
type GetInfoResponse struct {
|
2021-04-28 16:30:59 +03:00
|
|
|
state protoimpl.MessageState
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
2020-05-06 17:51:14 +03:00
|
|
|
// The public key of the watchtower.
|
2019-06-21 02:53:09 +03:00
|
|
|
Pubkey []byte `protobuf:"bytes,1,opt,name=pubkey,proto3" json:"pubkey,omitempty"`
|
2020-05-06 17:51:14 +03:00
|
|
|
// The listening addresses of the watchtower.
|
2019-06-21 02:53:09 +03:00
|
|
|
Listeners []string `protobuf:"bytes,2,rep,name=listeners,proto3" json:"listeners,omitempty"`
|
2020-05-06 17:51:14 +03:00
|
|
|
// The URIs of the watchtower.
|
2021-04-28 16:30:59 +03:00
|
|
|
Uris []string `protobuf:"bytes,3,rep,name=uris,proto3" json:"uris,omitempty"`
|
2019-06-21 02:53:09 +03:00
|
|
|
}
|
|
|
|
|
2021-04-28 16:30:59 +03:00
|
|
|
func (x *GetInfoResponse) Reset() {
|
|
|
|
*x = GetInfoResponse{}
|
|
|
|
if protoimpl.UnsafeEnabled {
|
|
|
|
mi := &file_watchtowerrpc_watchtower_proto_msgTypes[1]
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
2019-06-21 02:53:09 +03:00
|
|
|
}
|
|
|
|
|
2021-04-28 16:30:59 +03:00
|
|
|
func (x *GetInfoResponse) String() string {
|
|
|
|
return protoimpl.X.MessageStringOf(x)
|
2019-06-21 02:53:09 +03:00
|
|
|
}
|
2021-04-28 16:30:59 +03:00
|
|
|
|
|
|
|
func (*GetInfoResponse) ProtoMessage() {}
|
|
|
|
|
|
|
|
func (x *GetInfoResponse) ProtoReflect() protoreflect.Message {
|
|
|
|
mi := &file_watchtowerrpc_watchtower_proto_msgTypes[1]
|
|
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
if ms.LoadMessageInfo() == nil {
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
return ms
|
|
|
|
}
|
|
|
|
return mi.MessageOf(x)
|
2019-06-21 02:53:09 +03:00
|
|
|
}
|
|
|
|
|
2021-04-28 16:30:59 +03:00
|
|
|
// Deprecated: Use GetInfoResponse.ProtoReflect.Descriptor instead.
|
|
|
|
func (*GetInfoResponse) Descriptor() ([]byte, []int) {
|
|
|
|
return file_watchtowerrpc_watchtower_proto_rawDescGZIP(), []int{1}
|
|
|
|
}
|
2019-06-21 02:53:09 +03:00
|
|
|
|
2021-04-28 16:30:59 +03:00
|
|
|
func (x *GetInfoResponse) GetPubkey() []byte {
|
|
|
|
if x != nil {
|
|
|
|
return x.Pubkey
|
2019-06-21 02:53:09 +03:00
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2021-04-28 16:30:59 +03:00
|
|
|
func (x *GetInfoResponse) GetListeners() []string {
|
|
|
|
if x != nil {
|
|
|
|
return x.Listeners
|
2019-06-21 02:53:09 +03:00
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2021-04-28 16:30:59 +03:00
|
|
|
func (x *GetInfoResponse) GetUris() []string {
|
|
|
|
if x != nil {
|
|
|
|
return x.Uris
|
2019-06-21 02:53:09 +03:00
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2021-04-28 16:30:59 +03:00
|
|
|
var File_watchtowerrpc_watchtower_proto protoreflect.FileDescriptor
|
|
|
|
|
|
|
|
var file_watchtowerrpc_watchtower_proto_rawDesc = []byte{
|
|
|
|
0x0a, 0x1e, 0x77, 0x61, 0x74, 0x63, 0x68, 0x74, 0x6f, 0x77, 0x65, 0x72, 0x72, 0x70, 0x63, 0x2f,
|
|
|
|
0x77, 0x61, 0x74, 0x63, 0x68, 0x74, 0x6f, 0x77, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
|
|
|
|
0x12, 0x0d, 0x77, 0x61, 0x74, 0x63, 0x68, 0x74, 0x6f, 0x77, 0x65, 0x72, 0x72, 0x70, 0x63, 0x22,
|
|
|
|
0x10, 0x0a, 0x0e, 0x47, 0x65, 0x74, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
|
|
|
|
0x74, 0x22, 0x5b, 0x0a, 0x0f, 0x47, 0x65, 0x74, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x73, 0x70,
|
|
|
|
0x6f, 0x6e, 0x73, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x70, 0x75, 0x62, 0x6b, 0x65, 0x79, 0x18, 0x01,
|
|
|
|
0x20, 0x01, 0x28, 0x0c, 0x52, 0x06, 0x70, 0x75, 0x62, 0x6b, 0x65, 0x79, 0x12, 0x1c, 0x0a, 0x09,
|
|
|
|
0x6c, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x65, 0x72, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52,
|
|
|
|
0x09, 0x6c, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x65, 0x72, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x75, 0x72,
|
|
|
|
0x69, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x09, 0x52, 0x04, 0x75, 0x72, 0x69, 0x73, 0x32, 0x56,
|
|
|
|
0x0a, 0x0a, 0x57, 0x61, 0x74, 0x63, 0x68, 0x74, 0x6f, 0x77, 0x65, 0x72, 0x12, 0x48, 0x0a, 0x07,
|
|
|
|
0x47, 0x65, 0x74, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x1d, 0x2e, 0x77, 0x61, 0x74, 0x63, 0x68, 0x74,
|
|
|
|
0x6f, 0x77, 0x65, 0x72, 0x72, 0x70, 0x63, 0x2e, 0x47, 0x65, 0x74, 0x49, 0x6e, 0x66, 0x6f, 0x52,
|
|
|
|
0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1e, 0x2e, 0x77, 0x61, 0x74, 0x63, 0x68, 0x74, 0x6f,
|
|
|
|
0x77, 0x65, 0x72, 0x72, 0x70, 0x63, 0x2e, 0x47, 0x65, 0x74, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65,
|
|
|
|
0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0x35, 0x5a, 0x33, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62,
|
|
|
|
0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x6c, 0x69, 0x67, 0x68, 0x74, 0x6e, 0x69, 0x6e, 0x67, 0x6e, 0x65,
|
|
|
|
0x74, 0x77, 0x6f, 0x72, 0x6b, 0x2f, 0x6c, 0x6e, 0x64, 0x2f, 0x6c, 0x6e, 0x72, 0x70, 0x63, 0x2f,
|
|
|
|
0x77, 0x61, 0x74, 0x63, 0x68, 0x74, 0x6f, 0x77, 0x65, 0x72, 0x72, 0x70, 0x63, 0x62, 0x06, 0x70,
|
|
|
|
0x72, 0x6f, 0x74, 0x6f, 0x33,
|
|
|
|
}
|
|
|
|
|
|
|
|
var (
|
|
|
|
file_watchtowerrpc_watchtower_proto_rawDescOnce sync.Once
|
|
|
|
file_watchtowerrpc_watchtower_proto_rawDescData = file_watchtowerrpc_watchtower_proto_rawDesc
|
|
|
|
)
|
|
|
|
|
|
|
|
func file_watchtowerrpc_watchtower_proto_rawDescGZIP() []byte {
|
|
|
|
file_watchtowerrpc_watchtower_proto_rawDescOnce.Do(func() {
|
|
|
|
file_watchtowerrpc_watchtower_proto_rawDescData = protoimpl.X.CompressGZIP(file_watchtowerrpc_watchtower_proto_rawDescData)
|
|
|
|
})
|
|
|
|
return file_watchtowerrpc_watchtower_proto_rawDescData
|
2019-06-21 02:53:09 +03:00
|
|
|
}
|
|
|
|
|
2021-04-28 16:30:59 +03:00
|
|
|
var file_watchtowerrpc_watchtower_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
|
|
|
|
var file_watchtowerrpc_watchtower_proto_goTypes = []interface{}{
|
|
|
|
(*GetInfoRequest)(nil), // 0: watchtowerrpc.GetInfoRequest
|
|
|
|
(*GetInfoResponse)(nil), // 1: watchtowerrpc.GetInfoResponse
|
|
|
|
}
|
|
|
|
var file_watchtowerrpc_watchtower_proto_depIdxs = []int32{
|
|
|
|
0, // 0: watchtowerrpc.Watchtower.GetInfo:input_type -> watchtowerrpc.GetInfoRequest
|
|
|
|
1, // 1: watchtowerrpc.Watchtower.GetInfo:output_type -> watchtowerrpc.GetInfoResponse
|
|
|
|
1, // [1:2] is the sub-list for method output_type
|
|
|
|
0, // [0:1] is the sub-list for method input_type
|
|
|
|
0, // [0:0] is the sub-list for extension type_name
|
|
|
|
0, // [0:0] is the sub-list for extension extendee
|
|
|
|
0, // [0:0] is the sub-list for field type_name
|
|
|
|
}
|
2019-06-21 02:53:09 +03:00
|
|
|
|
2021-04-28 16:30:59 +03:00
|
|
|
func init() { file_watchtowerrpc_watchtower_proto_init() }
|
|
|
|
func file_watchtowerrpc_watchtower_proto_init() {
|
|
|
|
if File_watchtowerrpc_watchtower_proto != nil {
|
|
|
|
return
|
|
|
|
}
|
|
|
|
if !protoimpl.UnsafeEnabled {
|
|
|
|
file_watchtowerrpc_watchtower_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
|
|
|
|
switch v := v.(*GetInfoRequest); i {
|
|
|
|
case 0:
|
|
|
|
return &v.state
|
|
|
|
case 1:
|
|
|
|
return &v.sizeCache
|
|
|
|
case 2:
|
|
|
|
return &v.unknownFields
|
|
|
|
default:
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
}
|
|
|
|
file_watchtowerrpc_watchtower_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
|
|
|
|
switch v := v.(*GetInfoResponse); i {
|
|
|
|
case 0:
|
|
|
|
return &v.state
|
|
|
|
case 1:
|
|
|
|
return &v.sizeCache
|
|
|
|
case 2:
|
|
|
|
return &v.unknownFields
|
|
|
|
default:
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
type x struct{}
|
|
|
|
out := protoimpl.TypeBuilder{
|
|
|
|
File: protoimpl.DescBuilder{
|
|
|
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
|
|
|
RawDescriptor: file_watchtowerrpc_watchtower_proto_rawDesc,
|
|
|
|
NumEnums: 0,
|
|
|
|
NumMessages: 2,
|
|
|
|
NumExtensions: 0,
|
|
|
|
NumServices: 1,
|
|
|
|
},
|
|
|
|
GoTypes: file_watchtowerrpc_watchtower_proto_goTypes,
|
|
|
|
DependencyIndexes: file_watchtowerrpc_watchtower_proto_depIdxs,
|
|
|
|
MessageInfos: file_watchtowerrpc_watchtower_proto_msgTypes,
|
|
|
|
}.Build()
|
|
|
|
File_watchtowerrpc_watchtower_proto = out.File
|
|
|
|
file_watchtowerrpc_watchtower_proto_rawDesc = nil
|
|
|
|
file_watchtowerrpc_watchtower_proto_goTypes = nil
|
|
|
|
file_watchtowerrpc_watchtower_proto_depIdxs = nil
|
2019-06-21 02:53:09 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
// Reference imports to suppress errors if they are not otherwise used.
|
|
|
|
var _ context.Context
|
2021-04-28 16:30:59 +03:00
|
|
|
var _ grpc.ClientConnInterface
|
2019-06-21 02:53:09 +03:00
|
|
|
|
|
|
|
// This is a compile-time assertion to ensure that this generated file
|
|
|
|
// is compatible with the grpc package it is being compiled against.
|
2021-04-28 16:30:59 +03:00
|
|
|
const _ = grpc.SupportPackageIsVersion6
|
2019-06-21 02:53:09 +03:00
|
|
|
|
|
|
|
// WatchtowerClient is the client API for Watchtower service.
|
|
|
|
//
|
|
|
|
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
|
|
|
|
type WatchtowerClient interface {
|
2020-05-06 17:51:14 +03:00
|
|
|
// lncli: tower info
|
2019-06-21 02:53:09 +03:00
|
|
|
//GetInfo returns general information concerning the companion watchtower
|
2020-03-03 18:30:15 +03:00
|
|
|
//including its public key and URIs where the server is currently
|
2019-06-21 02:53:09 +03:00
|
|
|
//listening for clients.
|
|
|
|
GetInfo(ctx context.Context, in *GetInfoRequest, opts ...grpc.CallOption) (*GetInfoResponse, error)
|
|
|
|
}
|
|
|
|
|
|
|
|
type watchtowerClient struct {
|
2021-04-28 16:30:59 +03:00
|
|
|
cc grpc.ClientConnInterface
|
2019-06-21 02:53:09 +03:00
|
|
|
}
|
|
|
|
|
2021-04-28 16:30:59 +03:00
|
|
|
func NewWatchtowerClient(cc grpc.ClientConnInterface) WatchtowerClient {
|
2019-06-21 02:53:09 +03:00
|
|
|
return &watchtowerClient{cc}
|
|
|
|
}
|
|
|
|
|
|
|
|
func (c *watchtowerClient) GetInfo(ctx context.Context, in *GetInfoRequest, opts ...grpc.CallOption) (*GetInfoResponse, error) {
|
|
|
|
out := new(GetInfoResponse)
|
|
|
|
err := c.cc.Invoke(ctx, "/watchtowerrpc.Watchtower/GetInfo", in, out, opts...)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return out, nil
|
|
|
|
}
|
|
|
|
|
|
|
|
// WatchtowerServer is the server API for Watchtower service.
|
|
|
|
type WatchtowerServer interface {
|
2020-05-06 17:51:14 +03:00
|
|
|
// lncli: tower info
|
2019-06-21 02:53:09 +03:00
|
|
|
//GetInfo returns general information concerning the companion watchtower
|
2020-03-03 18:30:15 +03:00
|
|
|
//including its public key and URIs where the server is currently
|
2019-06-21 02:53:09 +03:00
|
|
|
//listening for clients.
|
|
|
|
GetInfo(context.Context, *GetInfoRequest) (*GetInfoResponse, error)
|
|
|
|
}
|
|
|
|
|
2020-05-28 14:07:31 +03:00
|
|
|
// UnimplementedWatchtowerServer can be embedded to have forward compatible implementations.
|
|
|
|
type UnimplementedWatchtowerServer struct {
|
|
|
|
}
|
|
|
|
|
2021-04-28 16:30:59 +03:00
|
|
|
func (*UnimplementedWatchtowerServer) GetInfo(context.Context, *GetInfoRequest) (*GetInfoResponse, error) {
|
2020-05-28 14:07:31 +03:00
|
|
|
return nil, status.Errorf(codes.Unimplemented, "method GetInfo not implemented")
|
|
|
|
}
|
|
|
|
|
2019-06-21 02:53:09 +03:00
|
|
|
func RegisterWatchtowerServer(s *grpc.Server, srv WatchtowerServer) {
|
|
|
|
s.RegisterService(&_Watchtower_serviceDesc, srv)
|
|
|
|
}
|
|
|
|
|
|
|
|
func _Watchtower_GetInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
|
in := new(GetInfoRequest)
|
|
|
|
if err := dec(in); err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
if interceptor == nil {
|
|
|
|
return srv.(WatchtowerServer).GetInfo(ctx, in)
|
|
|
|
}
|
|
|
|
info := &grpc.UnaryServerInfo{
|
|
|
|
Server: srv,
|
|
|
|
FullMethod: "/watchtowerrpc.Watchtower/GetInfo",
|
|
|
|
}
|
|
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
|
return srv.(WatchtowerServer).GetInfo(ctx, req.(*GetInfoRequest))
|
|
|
|
}
|
|
|
|
return interceptor(ctx, in, info, handler)
|
|
|
|
}
|
|
|
|
|
|
|
|
var _Watchtower_serviceDesc = grpc.ServiceDesc{
|
|
|
|
ServiceName: "watchtowerrpc.Watchtower",
|
|
|
|
HandlerType: (*WatchtowerServer)(nil),
|
|
|
|
Methods: []grpc.MethodDesc{
|
|
|
|
{
|
|
|
|
MethodName: "GetInfo",
|
|
|
|
Handler: _Watchtower_GetInfo_Handler,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
Streams: []grpc.StreamDesc{},
|
|
|
|
Metadata: "watchtowerrpc/watchtower.proto",
|
|
|
|
}
|