2021-02-09 17:12:21 +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
|
2021-02-09 17:12:21 +03:00
|
|
|
// source: stateservice.proto
|
|
|
|
|
|
|
|
package lnrpc
|
|
|
|
|
|
|
|
import (
|
|
|
|
context "context"
|
|
|
|
proto "github.com/golang/protobuf/proto"
|
|
|
|
grpc "google.golang.org/grpc"
|
|
|
|
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"
|
2021-02-09 17:12:21 +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)
|
|
|
|
)
|
2021-02-09 17:12:21 +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
|
2021-02-09 17:12:21 +03:00
|
|
|
|
|
|
|
type WalletState int32
|
|
|
|
|
|
|
|
const (
|
2021-03-19 17:53:06 +03:00
|
|
|
WalletState_NON_EXISTING WalletState = 0
|
|
|
|
WalletState_LOCKED WalletState = 1
|
|
|
|
WalletState_UNLOCKED WalletState = 2
|
|
|
|
WalletState_RPC_ACTIVE WalletState = 3
|
|
|
|
WalletState_WAITING_TO_START WalletState = 255
|
2021-02-09 17:12:21 +03:00
|
|
|
)
|
|
|
|
|
2021-04-28 16:30:59 +03:00
|
|
|
// Enum value maps for WalletState.
|
|
|
|
var (
|
|
|
|
WalletState_name = map[int32]string{
|
2021-03-19 17:53:06 +03:00
|
|
|
0: "NON_EXISTING",
|
|
|
|
1: "LOCKED",
|
|
|
|
2: "UNLOCKED",
|
|
|
|
3: "RPC_ACTIVE",
|
|
|
|
255: "WAITING_TO_START",
|
2021-04-28 16:30:59 +03:00
|
|
|
}
|
|
|
|
WalletState_value = map[string]int32{
|
2021-03-19 17:53:06 +03:00
|
|
|
"NON_EXISTING": 0,
|
|
|
|
"LOCKED": 1,
|
|
|
|
"UNLOCKED": 2,
|
|
|
|
"RPC_ACTIVE": 3,
|
|
|
|
"WAITING_TO_START": 255,
|
2021-04-28 16:30:59 +03:00
|
|
|
}
|
|
|
|
)
|
2021-02-09 17:12:21 +03:00
|
|
|
|
2021-04-28 16:30:59 +03:00
|
|
|
func (x WalletState) Enum() *WalletState {
|
|
|
|
p := new(WalletState)
|
|
|
|
*p = x
|
|
|
|
return p
|
2021-02-09 17:12:21 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
func (x WalletState) String() string {
|
2021-04-28 16:30:59 +03:00
|
|
|
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
|
2021-02-09 17:12:21 +03:00
|
|
|
}
|
|
|
|
|
2021-04-28 16:30:59 +03:00
|
|
|
func (WalletState) Descriptor() protoreflect.EnumDescriptor {
|
|
|
|
return file_stateservice_proto_enumTypes[0].Descriptor()
|
2021-02-09 17:12:21 +03:00
|
|
|
}
|
|
|
|
|
2021-04-28 16:30:59 +03:00
|
|
|
func (WalletState) Type() protoreflect.EnumType {
|
|
|
|
return &file_stateservice_proto_enumTypes[0]
|
2021-02-09 17:12:21 +03:00
|
|
|
}
|
|
|
|
|
2021-04-28 16:30:59 +03:00
|
|
|
func (x WalletState) Number() protoreflect.EnumNumber {
|
|
|
|
return protoreflect.EnumNumber(x)
|
2021-02-09 17:12:21 +03:00
|
|
|
}
|
|
|
|
|
2021-04-28 16:30:59 +03:00
|
|
|
// Deprecated: Use WalletState.Descriptor instead.
|
|
|
|
func (WalletState) EnumDescriptor() ([]byte, []int) {
|
|
|
|
return file_stateservice_proto_rawDescGZIP(), []int{0}
|
2021-02-09 17:12:21 +03:00
|
|
|
}
|
2021-04-28 16:30:59 +03:00
|
|
|
|
|
|
|
type SubscribeStateRequest struct {
|
|
|
|
state protoimpl.MessageState
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
unknownFields protoimpl.UnknownFields
|
2021-02-09 17:12:21 +03:00
|
|
|
}
|
2021-04-28 16:30:59 +03:00
|
|
|
|
|
|
|
func (x *SubscribeStateRequest) Reset() {
|
|
|
|
*x = SubscribeStateRequest{}
|
|
|
|
if protoimpl.UnsafeEnabled {
|
|
|
|
mi := &file_stateservice_proto_msgTypes[0]
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
2021-02-09 17:12:21 +03:00
|
|
|
}
|
2021-04-28 16:30:59 +03:00
|
|
|
|
|
|
|
func (x *SubscribeStateRequest) String() string {
|
|
|
|
return protoimpl.X.MessageStringOf(x)
|
2021-02-09 17:12:21 +03:00
|
|
|
}
|
|
|
|
|
2021-04-28 16:30:59 +03:00
|
|
|
func (*SubscribeStateRequest) ProtoMessage() {}
|
2021-02-09 17:12:21 +03:00
|
|
|
|
2021-04-28 16:30:59 +03:00
|
|
|
func (x *SubscribeStateRequest) ProtoReflect() protoreflect.Message {
|
|
|
|
mi := &file_stateservice_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)
|
2021-02-09 17:12:21 +03:00
|
|
|
}
|
|
|
|
|
2021-04-28 16:30:59 +03:00
|
|
|
// Deprecated: Use SubscribeStateRequest.ProtoReflect.Descriptor instead.
|
|
|
|
func (*SubscribeStateRequest) Descriptor() ([]byte, []int) {
|
|
|
|
return file_stateservice_proto_rawDescGZIP(), []int{0}
|
2021-02-09 17:12:21 +03:00
|
|
|
}
|
|
|
|
|
2021-04-28 16:30:59 +03:00
|
|
|
type SubscribeStateResponse struct {
|
|
|
|
state protoimpl.MessageState
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
|
|
|
State WalletState `protobuf:"varint,1,opt,name=state,proto3,enum=lnrpc.WalletState" json:"state,omitempty"`
|
2021-02-09 17:12:21 +03:00
|
|
|
}
|
2021-04-28 16:30:59 +03:00
|
|
|
|
|
|
|
func (x *SubscribeStateResponse) Reset() {
|
|
|
|
*x = SubscribeStateResponse{}
|
|
|
|
if protoimpl.UnsafeEnabled {
|
|
|
|
mi := &file_stateservice_proto_msgTypes[1]
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
2021-02-09 17:12:21 +03:00
|
|
|
}
|
2021-04-28 16:30:59 +03:00
|
|
|
|
|
|
|
func (x *SubscribeStateResponse) String() string {
|
|
|
|
return protoimpl.X.MessageStringOf(x)
|
2021-02-09 17:12:21 +03:00
|
|
|
}
|
2021-04-28 16:30:59 +03:00
|
|
|
|
|
|
|
func (*SubscribeStateResponse) ProtoMessage() {}
|
|
|
|
|
|
|
|
func (x *SubscribeStateResponse) ProtoReflect() protoreflect.Message {
|
|
|
|
mi := &file_stateservice_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)
|
2021-02-09 17:12:21 +03:00
|
|
|
}
|
|
|
|
|
2021-04-28 16:30:59 +03:00
|
|
|
// Deprecated: Use SubscribeStateResponse.ProtoReflect.Descriptor instead.
|
|
|
|
func (*SubscribeStateResponse) Descriptor() ([]byte, []int) {
|
|
|
|
return file_stateservice_proto_rawDescGZIP(), []int{1}
|
|
|
|
}
|
2021-02-09 17:12:21 +03:00
|
|
|
|
2021-04-28 16:30:59 +03:00
|
|
|
func (x *SubscribeStateResponse) GetState() WalletState {
|
|
|
|
if x != nil {
|
|
|
|
return x.State
|
2021-02-09 17:12:21 +03:00
|
|
|
}
|
|
|
|
return WalletState_NON_EXISTING
|
|
|
|
}
|
|
|
|
|
2021-03-30 15:44:03 +03:00
|
|
|
type GetStateRequest struct {
|
|
|
|
state protoimpl.MessageState
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *GetStateRequest) Reset() {
|
|
|
|
*x = GetStateRequest{}
|
|
|
|
if protoimpl.UnsafeEnabled {
|
|
|
|
mi := &file_stateservice_proto_msgTypes[2]
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *GetStateRequest) String() string {
|
|
|
|
return protoimpl.X.MessageStringOf(x)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (*GetStateRequest) ProtoMessage() {}
|
|
|
|
|
|
|
|
func (x *GetStateRequest) ProtoReflect() protoreflect.Message {
|
|
|
|
mi := &file_stateservice_proto_msgTypes[2]
|
|
|
|
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)
|
|
|
|
}
|
|
|
|
|
|
|
|
// Deprecated: Use GetStateRequest.ProtoReflect.Descriptor instead.
|
|
|
|
func (*GetStateRequest) Descriptor() ([]byte, []int) {
|
|
|
|
return file_stateservice_proto_rawDescGZIP(), []int{2}
|
|
|
|
}
|
|
|
|
|
|
|
|
type GetStateResponse struct {
|
|
|
|
state protoimpl.MessageState
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
2021-05-10 01:50:10 +03:00
|
|
|
State WalletState `protobuf:"varint,1,opt,name=state,proto3,enum=lnrpc.WalletState" json:"state,omitempty"`
|
2021-03-30 15:44:03 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
func (x *GetStateResponse) Reset() {
|
|
|
|
*x = GetStateResponse{}
|
|
|
|
if protoimpl.UnsafeEnabled {
|
|
|
|
mi := &file_stateservice_proto_msgTypes[3]
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *GetStateResponse) String() string {
|
|
|
|
return protoimpl.X.MessageStringOf(x)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (*GetStateResponse) ProtoMessage() {}
|
|
|
|
|
|
|
|
func (x *GetStateResponse) ProtoReflect() protoreflect.Message {
|
|
|
|
mi := &file_stateservice_proto_msgTypes[3]
|
|
|
|
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)
|
|
|
|
}
|
|
|
|
|
|
|
|
// Deprecated: Use GetStateResponse.ProtoReflect.Descriptor instead.
|
|
|
|
func (*GetStateResponse) Descriptor() ([]byte, []int) {
|
|
|
|
return file_stateservice_proto_rawDescGZIP(), []int{3}
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *GetStateResponse) GetState() WalletState {
|
|
|
|
if x != nil {
|
|
|
|
return x.State
|
|
|
|
}
|
|
|
|
return WalletState_NON_EXISTING
|
|
|
|
}
|
|
|
|
|
2021-04-28 16:30:59 +03:00
|
|
|
var File_stateservice_proto protoreflect.FileDescriptor
|
|
|
|
|
|
|
|
var file_stateservice_proto_rawDesc = []byte{
|
|
|
|
0x0a, 0x12, 0x73, 0x74, 0x61, 0x74, 0x65, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x70,
|
|
|
|
0x72, 0x6f, 0x74, 0x6f, 0x12, 0x05, 0x6c, 0x6e, 0x72, 0x70, 0x63, 0x22, 0x17, 0x0a, 0x15, 0x53,
|
|
|
|
0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x62, 0x65, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, 0x65, 0x71,
|
|
|
|
0x75, 0x65, 0x73, 0x74, 0x22, 0x42, 0x0a, 0x16, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x62,
|
|
|
|
0x65, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x28,
|
|
|
|
0x0a, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x12, 0x2e,
|
|
|
|
0x6c, 0x6e, 0x72, 0x70, 0x63, 0x2e, 0x57, 0x61, 0x6c, 0x6c, 0x65, 0x74, 0x53, 0x74, 0x61, 0x74,
|
2021-03-30 15:44:03 +03:00
|
|
|
0x65, 0x52, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x22, 0x11, 0x0a, 0x0f, 0x47, 0x65, 0x74, 0x53,
|
|
|
|
0x74, 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x3c, 0x0a, 0x10, 0x47,
|
|
|
|
0x65, 0x74, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12,
|
2021-05-10 01:50:10 +03:00
|
|
|
0x28, 0x0a, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x12,
|
2021-03-30 15:44:03 +03:00
|
|
|
0x2e, 0x6c, 0x6e, 0x72, 0x70, 0x63, 0x2e, 0x57, 0x61, 0x6c, 0x6c, 0x65, 0x74, 0x53, 0x74, 0x61,
|
2021-05-10 01:50:10 +03:00
|
|
|
0x74, 0x65, 0x52, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x2a, 0x60, 0x0a, 0x0b, 0x57, 0x61, 0x6c,
|
2021-03-30 15:44:03 +03:00
|
|
|
0x6c, 0x65, 0x74, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x10, 0x0a, 0x0c, 0x4e, 0x4f, 0x4e, 0x5f,
|
|
|
|
0x45, 0x58, 0x49, 0x53, 0x54, 0x49, 0x4e, 0x47, 0x10, 0x00, 0x12, 0x0a, 0x0a, 0x06, 0x4c, 0x4f,
|
|
|
|
0x43, 0x4b, 0x45, 0x44, 0x10, 0x01, 0x12, 0x0c, 0x0a, 0x08, 0x55, 0x4e, 0x4c, 0x4f, 0x43, 0x4b,
|
|
|
|
0x45, 0x44, 0x10, 0x02, 0x12, 0x0e, 0x0a, 0x0a, 0x52, 0x50, 0x43, 0x5f, 0x41, 0x43, 0x54, 0x49,
|
|
|
|
0x56, 0x45, 0x10, 0x03, 0x12, 0x15, 0x0a, 0x10, 0x57, 0x41, 0x49, 0x54, 0x49, 0x4e, 0x47, 0x5f,
|
|
|
|
0x54, 0x4f, 0x5f, 0x53, 0x54, 0x41, 0x52, 0x54, 0x10, 0xff, 0x01, 0x32, 0x95, 0x01, 0x0a, 0x05,
|
|
|
|
0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x4f, 0x0a, 0x0e, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69,
|
|
|
|
0x62, 0x65, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x1c, 0x2e, 0x6c, 0x6e, 0x72, 0x70, 0x63, 0x2e,
|
|
|
|
0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x62, 0x65, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, 0x65,
|
|
|
|
0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1d, 0x2e, 0x6c, 0x6e, 0x72, 0x70, 0x63, 0x2e, 0x53, 0x75,
|
|
|
|
0x62, 0x73, 0x63, 0x72, 0x69, 0x62, 0x65, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70,
|
|
|
|
0x6f, 0x6e, 0x73, 0x65, 0x30, 0x01, 0x12, 0x3b, 0x0a, 0x08, 0x47, 0x65, 0x74, 0x53, 0x74, 0x61,
|
|
|
|
0x74, 0x65, 0x12, 0x16, 0x2e, 0x6c, 0x6e, 0x72, 0x70, 0x63, 0x2e, 0x47, 0x65, 0x74, 0x53, 0x74,
|
|
|
|
0x61, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x17, 0x2e, 0x6c, 0x6e, 0x72,
|
|
|
|
0x70, 0x63, 0x2e, 0x47, 0x65, 0x74, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f,
|
|
|
|
0x6e, 0x73, 0x65, 0x42, 0x27, 0x5a, 0x25, 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, 0x62, 0x06, 0x70, 0x72,
|
|
|
|
0x6f, 0x74, 0x6f, 0x33,
|
2021-04-28 16:30:59 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
var (
|
|
|
|
file_stateservice_proto_rawDescOnce sync.Once
|
|
|
|
file_stateservice_proto_rawDescData = file_stateservice_proto_rawDesc
|
|
|
|
)
|
|
|
|
|
|
|
|
func file_stateservice_proto_rawDescGZIP() []byte {
|
|
|
|
file_stateservice_proto_rawDescOnce.Do(func() {
|
|
|
|
file_stateservice_proto_rawDescData = protoimpl.X.CompressGZIP(file_stateservice_proto_rawDescData)
|
|
|
|
})
|
|
|
|
return file_stateservice_proto_rawDescData
|
2021-02-09 17:12:21 +03:00
|
|
|
}
|
|
|
|
|
2021-04-28 16:30:59 +03:00
|
|
|
var file_stateservice_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
|
2021-03-30 15:44:03 +03:00
|
|
|
var file_stateservice_proto_msgTypes = make([]protoimpl.MessageInfo, 4)
|
2021-04-28 16:30:59 +03:00
|
|
|
var file_stateservice_proto_goTypes = []interface{}{
|
|
|
|
(WalletState)(0), // 0: lnrpc.WalletState
|
|
|
|
(*SubscribeStateRequest)(nil), // 1: lnrpc.SubscribeStateRequest
|
|
|
|
(*SubscribeStateResponse)(nil), // 2: lnrpc.SubscribeStateResponse
|
2021-03-30 15:44:03 +03:00
|
|
|
(*GetStateRequest)(nil), // 3: lnrpc.GetStateRequest
|
|
|
|
(*GetStateResponse)(nil), // 4: lnrpc.GetStateResponse
|
2021-04-28 16:30:59 +03:00
|
|
|
}
|
|
|
|
var file_stateservice_proto_depIdxs = []int32{
|
|
|
|
0, // 0: lnrpc.SubscribeStateResponse.state:type_name -> lnrpc.WalletState
|
2021-05-10 01:50:10 +03:00
|
|
|
0, // 1: lnrpc.GetStateResponse.state:type_name -> lnrpc.WalletState
|
2021-03-30 15:44:03 +03:00
|
|
|
1, // 2: lnrpc.State.SubscribeState:input_type -> lnrpc.SubscribeStateRequest
|
|
|
|
3, // 3: lnrpc.State.GetState:input_type -> lnrpc.GetStateRequest
|
|
|
|
2, // 4: lnrpc.State.SubscribeState:output_type -> lnrpc.SubscribeStateResponse
|
|
|
|
4, // 5: lnrpc.State.GetState:output_type -> lnrpc.GetStateResponse
|
|
|
|
4, // [4:6] is the sub-list for method output_type
|
|
|
|
2, // [2:4] is the sub-list for method input_type
|
|
|
|
2, // [2:2] is the sub-list for extension type_name
|
|
|
|
2, // [2:2] is the sub-list for extension extendee
|
|
|
|
0, // [0:2] is the sub-list for field type_name
|
2021-04-28 16:30:59 +03:00
|
|
|
}
|
2021-02-09 17:12:21 +03:00
|
|
|
|
2021-04-28 16:30:59 +03:00
|
|
|
func init() { file_stateservice_proto_init() }
|
|
|
|
func file_stateservice_proto_init() {
|
|
|
|
if File_stateservice_proto != nil {
|
|
|
|
return
|
|
|
|
}
|
|
|
|
if !protoimpl.UnsafeEnabled {
|
|
|
|
file_stateservice_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
|
|
|
|
switch v := v.(*SubscribeStateRequest); i {
|
|
|
|
case 0:
|
|
|
|
return &v.state
|
|
|
|
case 1:
|
|
|
|
return &v.sizeCache
|
|
|
|
case 2:
|
|
|
|
return &v.unknownFields
|
|
|
|
default:
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
}
|
|
|
|
file_stateservice_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
|
|
|
|
switch v := v.(*SubscribeStateResponse); i {
|
|
|
|
case 0:
|
|
|
|
return &v.state
|
|
|
|
case 1:
|
|
|
|
return &v.sizeCache
|
|
|
|
case 2:
|
|
|
|
return &v.unknownFields
|
|
|
|
default:
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
}
|
2021-03-30 15:44:03 +03:00
|
|
|
file_stateservice_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
|
|
|
|
switch v := v.(*GetStateRequest); i {
|
|
|
|
case 0:
|
|
|
|
return &v.state
|
|
|
|
case 1:
|
|
|
|
return &v.sizeCache
|
|
|
|
case 2:
|
|
|
|
return &v.unknownFields
|
|
|
|
default:
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
}
|
|
|
|
file_stateservice_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
|
|
|
|
switch v := v.(*GetStateResponse); i {
|
|
|
|
case 0:
|
|
|
|
return &v.state
|
|
|
|
case 1:
|
|
|
|
return &v.sizeCache
|
|
|
|
case 2:
|
|
|
|
return &v.unknownFields
|
|
|
|
default:
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
}
|
2021-04-28 16:30:59 +03:00
|
|
|
}
|
|
|
|
type x struct{}
|
|
|
|
out := protoimpl.TypeBuilder{
|
|
|
|
File: protoimpl.DescBuilder{
|
|
|
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
|
|
|
RawDescriptor: file_stateservice_proto_rawDesc,
|
|
|
|
NumEnums: 1,
|
2021-03-30 15:44:03 +03:00
|
|
|
NumMessages: 4,
|
2021-04-28 16:30:59 +03:00
|
|
|
NumExtensions: 0,
|
|
|
|
NumServices: 1,
|
|
|
|
},
|
|
|
|
GoTypes: file_stateservice_proto_goTypes,
|
|
|
|
DependencyIndexes: file_stateservice_proto_depIdxs,
|
|
|
|
EnumInfos: file_stateservice_proto_enumTypes,
|
|
|
|
MessageInfos: file_stateservice_proto_msgTypes,
|
|
|
|
}.Build()
|
|
|
|
File_stateservice_proto = out.File
|
|
|
|
file_stateservice_proto_rawDesc = nil
|
|
|
|
file_stateservice_proto_goTypes = nil
|
|
|
|
file_stateservice_proto_depIdxs = nil
|
2021-02-09 17:12:21 +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
|
2021-02-09 17:12:21 +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
|
2021-02-09 17:12:21 +03:00
|
|
|
|
|
|
|
// StateClient is the client API for State service.
|
|
|
|
//
|
|
|
|
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
|
|
|
|
type StateClient interface {
|
|
|
|
// SubscribeState subscribes to the state of the wallet. The current wallet
|
|
|
|
// state will always be delivered immediately.
|
|
|
|
SubscribeState(ctx context.Context, in *SubscribeStateRequest, opts ...grpc.CallOption) (State_SubscribeStateClient, error)
|
2021-03-30 15:44:03 +03:00
|
|
|
// GetState returns the current wallet state without streaming further
|
|
|
|
// changes.
|
|
|
|
GetState(ctx context.Context, in *GetStateRequest, opts ...grpc.CallOption) (*GetStateResponse, error)
|
2021-02-09 17:12:21 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
type stateClient struct {
|
2021-04-28 16:30:59 +03:00
|
|
|
cc grpc.ClientConnInterface
|
2021-02-09 17:12:21 +03:00
|
|
|
}
|
|
|
|
|
2021-04-28 16:30:59 +03:00
|
|
|
func NewStateClient(cc grpc.ClientConnInterface) StateClient {
|
2021-02-09 17:12:21 +03:00
|
|
|
return &stateClient{cc}
|
|
|
|
}
|
|
|
|
|
|
|
|
func (c *stateClient) SubscribeState(ctx context.Context, in *SubscribeStateRequest, opts ...grpc.CallOption) (State_SubscribeStateClient, error) {
|
|
|
|
stream, err := c.cc.NewStream(ctx, &_State_serviceDesc.Streams[0], "/lnrpc.State/SubscribeState", opts...)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
x := &stateSubscribeStateClient{stream}
|
|
|
|
if err := x.ClientStream.SendMsg(in); err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
if err := x.ClientStream.CloseSend(); err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return x, nil
|
|
|
|
}
|
|
|
|
|
|
|
|
type State_SubscribeStateClient interface {
|
|
|
|
Recv() (*SubscribeStateResponse, error)
|
|
|
|
grpc.ClientStream
|
|
|
|
}
|
|
|
|
|
|
|
|
type stateSubscribeStateClient struct {
|
|
|
|
grpc.ClientStream
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *stateSubscribeStateClient) Recv() (*SubscribeStateResponse, error) {
|
|
|
|
m := new(SubscribeStateResponse)
|
|
|
|
if err := x.ClientStream.RecvMsg(m); err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return m, nil
|
|
|
|
}
|
|
|
|
|
2021-03-30 15:44:03 +03:00
|
|
|
func (c *stateClient) GetState(ctx context.Context, in *GetStateRequest, opts ...grpc.CallOption) (*GetStateResponse, error) {
|
|
|
|
out := new(GetStateResponse)
|
|
|
|
err := c.cc.Invoke(ctx, "/lnrpc.State/GetState", in, out, opts...)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return out, nil
|
|
|
|
}
|
|
|
|
|
2021-02-09 17:12:21 +03:00
|
|
|
// StateServer is the server API for State service.
|
|
|
|
type StateServer interface {
|
|
|
|
// SubscribeState subscribes to the state of the wallet. The current wallet
|
|
|
|
// state will always be delivered immediately.
|
|
|
|
SubscribeState(*SubscribeStateRequest, State_SubscribeStateServer) error
|
2021-03-30 15:44:03 +03:00
|
|
|
// GetState returns the current wallet state without streaming further
|
|
|
|
// changes.
|
|
|
|
GetState(context.Context, *GetStateRequest) (*GetStateResponse, error)
|
2021-02-09 17:12:21 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
// UnimplementedStateServer can be embedded to have forward compatible implementations.
|
|
|
|
type UnimplementedStateServer struct {
|
|
|
|
}
|
|
|
|
|
2021-04-28 16:30:59 +03:00
|
|
|
func (*UnimplementedStateServer) SubscribeState(*SubscribeStateRequest, State_SubscribeStateServer) error {
|
2021-02-09 17:12:21 +03:00
|
|
|
return status.Errorf(codes.Unimplemented, "method SubscribeState not implemented")
|
|
|
|
}
|
2021-03-30 15:44:03 +03:00
|
|
|
func (*UnimplementedStateServer) GetState(context.Context, *GetStateRequest) (*GetStateResponse, error) {
|
|
|
|
return nil, status.Errorf(codes.Unimplemented, "method GetState not implemented")
|
|
|
|
}
|
2021-02-09 17:12:21 +03:00
|
|
|
|
|
|
|
func RegisterStateServer(s *grpc.Server, srv StateServer) {
|
|
|
|
s.RegisterService(&_State_serviceDesc, srv)
|
|
|
|
}
|
|
|
|
|
|
|
|
func _State_SubscribeState_Handler(srv interface{}, stream grpc.ServerStream) error {
|
|
|
|
m := new(SubscribeStateRequest)
|
|
|
|
if err := stream.RecvMsg(m); err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
return srv.(StateServer).SubscribeState(m, &stateSubscribeStateServer{stream})
|
|
|
|
}
|
|
|
|
|
|
|
|
type State_SubscribeStateServer interface {
|
|
|
|
Send(*SubscribeStateResponse) error
|
|
|
|
grpc.ServerStream
|
|
|
|
}
|
|
|
|
|
|
|
|
type stateSubscribeStateServer struct {
|
|
|
|
grpc.ServerStream
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *stateSubscribeStateServer) Send(m *SubscribeStateResponse) error {
|
|
|
|
return x.ServerStream.SendMsg(m)
|
|
|
|
}
|
|
|
|
|
2021-03-30 15:44:03 +03:00
|
|
|
func _State_GetState_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
|
in := new(GetStateRequest)
|
|
|
|
if err := dec(in); err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
if interceptor == nil {
|
|
|
|
return srv.(StateServer).GetState(ctx, in)
|
|
|
|
}
|
|
|
|
info := &grpc.UnaryServerInfo{
|
|
|
|
Server: srv,
|
|
|
|
FullMethod: "/lnrpc.State/GetState",
|
|
|
|
}
|
|
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
|
return srv.(StateServer).GetState(ctx, req.(*GetStateRequest))
|
|
|
|
}
|
|
|
|
return interceptor(ctx, in, info, handler)
|
|
|
|
}
|
|
|
|
|
2021-02-09 17:12:21 +03:00
|
|
|
var _State_serviceDesc = grpc.ServiceDesc{
|
|
|
|
ServiceName: "lnrpc.State",
|
|
|
|
HandlerType: (*StateServer)(nil),
|
2021-03-30 15:44:03 +03:00
|
|
|
Methods: []grpc.MethodDesc{
|
|
|
|
{
|
|
|
|
MethodName: "GetState",
|
|
|
|
Handler: _State_GetState_Handler,
|
|
|
|
},
|
|
|
|
},
|
2021-02-09 17:12:21 +03:00
|
|
|
Streams: []grpc.StreamDesc{
|
|
|
|
{
|
|
|
|
StreamName: "SubscribeState",
|
|
|
|
Handler: _State_SubscribeState_Handler,
|
|
|
|
ServerStreams: true,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
Metadata: "stateservice.proto",
|
|
|
|
}
|