mod: integrate latest btcwallet and bump protobuf and grpc
This commit is contained in:
18 files changed
+25109
-14532
No files matched your search
+227
-106
@@ -1,28 +1,33 @@
|
||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// versions:
|
||||
// protoc-gen-go v1.23.0
|
||||
// protoc v3.6.1
|
||||
// source: stateservice.proto
|
||||
|
||||
package lnrpc
|
||||
|
||||
import (
|
||||
context "context"
|
||||
fmt "fmt"
|
||||
proto "github.com/golang/protobuf/proto"
|
||||
grpc "google.golang.org/grpc"
|
||||
codes "google.golang.org/grpc/codes"
|
||||
status "google.golang.org/grpc/status"
|
||||
math "math"
|
||||
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
||||
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
||||
reflect "reflect"
|
||||
sync "sync"
|
||||
)
|
||||
|
||||
// Reference imports to suppress errors if they are not otherwise used.
|
||||
var _ = proto.Marshal
|
||||
var _ = fmt.Errorf
|
||||
var _ = math.Inf
|
||||
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)
|
||||
)
|
||||
|
||||
// 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.ProtoPackageIsVersion3 // please upgrade the proto package
|
||||
// This is a compile-time assertion that a sufficiently up-to-date version
|
||||
// of the legacy proto package is being used.
|
||||
const _ = proto.ProtoPackageIsVersion4
|
||||
|
||||
type WalletState int32
|
||||
|
||||
@@ -33,133 +38,249 @@ const (
|
||||
WalletState_RPC_ACTIVE WalletState = 3
|
||||
)
|
||||
|
||||
var WalletState_name = map[int32]string{
|
||||
0: "NON_EXISTING",
|
||||
1: "LOCKED",
|
||||
2: "UNLOCKED",
|
||||
3: "RPC_ACTIVE",
|
||||
}
|
||||
// Enum value maps for WalletState.
|
||||
var (
|
||||
WalletState_name = map[int32]string{
|
||||
0: "NON_EXISTING",
|
||||
1: "LOCKED",
|
||||
2: "UNLOCKED",
|
||||
3: "RPC_ACTIVE",
|
||||
}
|
||||
WalletState_value = map[string]int32{
|
||||
"NON_EXISTING": 0,
|
||||
"LOCKED": 1,
|
||||
"UNLOCKED": 2,
|
||||
"RPC_ACTIVE": 3,
|
||||
}
|
||||
)
|
||||
|
||||
var WalletState_value = map[string]int32{
|
||||
"NON_EXISTING": 0,
|
||||
"LOCKED": 1,
|
||||
"UNLOCKED": 2,
|
||||
"RPC_ACTIVE": 3,
|
||||
func (x WalletState) Enum() *WalletState {
|
||||
p := new(WalletState)
|
||||
*p = x
|
||||
return p
|
||||
}
|
||||
|
||||
func (x WalletState) String() string {
|
||||
return proto.EnumName(WalletState_name, int32(x))
|
||||
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
|
||||
}
|
||||
|
||||
func (WalletState) Descriptor() protoreflect.EnumDescriptor {
|
||||
return file_stateservice_proto_enumTypes[0].Descriptor()
|
||||
}
|
||||
|
||||
func (WalletState) Type() protoreflect.EnumType {
|
||||
return &file_stateservice_proto_enumTypes[0]
|
||||
}
|
||||
|
||||
func (x WalletState) Number() protoreflect.EnumNumber {
|
||||
return protoreflect.EnumNumber(x)
|
||||
}
|
||||
|
||||
// Deprecated: Use WalletState.Descriptor instead.
|
||||
func (WalletState) EnumDescriptor() ([]byte, []int) {
|
||||
return fileDescriptor_9cd64a11048f05dd, []int{0}
|
||||
return file_stateservice_proto_rawDescGZIP(), []int{0}
|
||||
}
|
||||
|
||||
type SubscribeStateRequest struct {
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
}
|
||||
|
||||
func (m *SubscribeStateRequest) Reset() { *m = SubscribeStateRequest{} }
|
||||
func (m *SubscribeStateRequest) String() string { return proto.CompactTextString(m) }
|
||||
func (*SubscribeStateRequest) ProtoMessage() {}
|
||||
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)
|
||||
}
|
||||
}
|
||||
|
||||
func (x *SubscribeStateRequest) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*SubscribeStateRequest) ProtoMessage() {}
|
||||
|
||||
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)
|
||||
}
|
||||
|
||||
// Deprecated: Use SubscribeStateRequest.ProtoReflect.Descriptor instead.
|
||||
func (*SubscribeStateRequest) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_9cd64a11048f05dd, []int{0}
|
||||
return file_stateservice_proto_rawDescGZIP(), []int{0}
|
||||
}
|
||||
|
||||
func (m *SubscribeStateRequest) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_SubscribeStateRequest.Unmarshal(m, b)
|
||||
}
|
||||
func (m *SubscribeStateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_SubscribeStateRequest.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (m *SubscribeStateRequest) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_SubscribeStateRequest.Merge(m, src)
|
||||
}
|
||||
func (m *SubscribeStateRequest) XXX_Size() int {
|
||||
return xxx_messageInfo_SubscribeStateRequest.Size(m)
|
||||
}
|
||||
func (m *SubscribeStateRequest) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_SubscribeStateRequest.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_SubscribeStateRequest proto.InternalMessageInfo
|
||||
|
||||
type SubscribeStateResponse struct {
|
||||
State WalletState `protobuf:"varint,1,opt,name=state,proto3,enum=lnrpc.WalletState" json:"state,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
State WalletState `protobuf:"varint,1,opt,name=state,proto3,enum=lnrpc.WalletState" json:"state,omitempty"`
|
||||
}
|
||||
|
||||
func (m *SubscribeStateResponse) Reset() { *m = SubscribeStateResponse{} }
|
||||
func (m *SubscribeStateResponse) String() string { return proto.CompactTextString(m) }
|
||||
func (*SubscribeStateResponse) ProtoMessage() {}
|
||||
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)
|
||||
}
|
||||
}
|
||||
|
||||
func (x *SubscribeStateResponse) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
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)
|
||||
}
|
||||
|
||||
// Deprecated: Use SubscribeStateResponse.ProtoReflect.Descriptor instead.
|
||||
func (*SubscribeStateResponse) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_9cd64a11048f05dd, []int{1}
|
||||
return file_stateservice_proto_rawDescGZIP(), []int{1}
|
||||
}
|
||||
|
||||
func (m *SubscribeStateResponse) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_SubscribeStateResponse.Unmarshal(m, b)
|
||||
}
|
||||
func (m *SubscribeStateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_SubscribeStateResponse.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (m *SubscribeStateResponse) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_SubscribeStateResponse.Merge(m, src)
|
||||
}
|
||||
func (m *SubscribeStateResponse) XXX_Size() int {
|
||||
return xxx_messageInfo_SubscribeStateResponse.Size(m)
|
||||
}
|
||||
func (m *SubscribeStateResponse) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_SubscribeStateResponse.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_SubscribeStateResponse proto.InternalMessageInfo
|
||||
|
||||
func (m *SubscribeStateResponse) GetState() WalletState {
|
||||
if m != nil {
|
||||
return m.State
|
||||
func (x *SubscribeStateResponse) GetState() WalletState {
|
||||
if x != nil {
|
||||
return x.State
|
||||
}
|
||||
return WalletState_NON_EXISTING
|
||||
}
|
||||
|
||||
func init() {
|
||||
proto.RegisterEnum("lnrpc.WalletState", WalletState_name, WalletState_value)
|
||||
proto.RegisterType((*SubscribeStateRequest)(nil), "lnrpc.SubscribeStateRequest")
|
||||
proto.RegisterType((*SubscribeStateResponse)(nil), "lnrpc.SubscribeStateResponse")
|
||||
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,
|
||||
0x65, 0x52, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x2a, 0x49, 0x0a, 0x0b, 0x57, 0x61, 0x6c, 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, 0x32, 0x58, 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, 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,
|
||||
}
|
||||
|
||||
func init() { proto.RegisterFile("stateservice.proto", fileDescriptor_9cd64a11048f05dd) }
|
||||
var (
|
||||
file_stateservice_proto_rawDescOnce sync.Once
|
||||
file_stateservice_proto_rawDescData = file_stateservice_proto_rawDesc
|
||||
)
|
||||
|
||||
var fileDescriptor_9cd64a11048f05dd = []byte{
|
||||
// 245 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x12, 0x2a, 0x2e, 0x49, 0x2c,
|
||||
0x49, 0x2d, 0x4e, 0x2d, 0x2a, 0xcb, 0x4c, 0x4e, 0xd5, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x62,
|
||||
0xcd, 0xc9, 0x2b, 0x2a, 0x48, 0x56, 0x12, 0xe7, 0x12, 0x0d, 0x2e, 0x4d, 0x2a, 0x4e, 0x2e, 0xca,
|
||||
0x4c, 0x4a, 0x0d, 0x06, 0xa9, 0x0a, 0x4a, 0x2d, 0x2c, 0x4d, 0x2d, 0x2e, 0x51, 0x72, 0xe2, 0x12,
|
||||
0x43, 0x97, 0x28, 0x2e, 0xc8, 0xcf, 0x2b, 0x4e, 0x15, 0xd2, 0xe0, 0x62, 0x05, 0x9b, 0x27, 0xc1,
|
||||
0xa8, 0xc0, 0xa8, 0xc1, 0x67, 0x24, 0xa4, 0x07, 0x36, 0x49, 0x2f, 0x3c, 0x31, 0x27, 0x27, 0xb5,
|
||||
0x04, 0xa2, 0x14, 0xa2, 0x40, 0xcb, 0x93, 0x8b, 0x1b, 0x49, 0x54, 0x48, 0x80, 0x8b, 0xc7, 0xcf,
|
||||
0xdf, 0x2f, 0xde, 0x35, 0xc2, 0x33, 0x38, 0xc4, 0xd3, 0xcf, 0x5d, 0x80, 0x41, 0x88, 0x8b, 0x8b,
|
||||
0xcd, 0xc7, 0xdf, 0xd9, 0xdb, 0xd5, 0x45, 0x80, 0x51, 0x88, 0x87, 0x8b, 0x23, 0xd4, 0x0f, 0xca,
|
||||
0x63, 0x12, 0xe2, 0xe3, 0xe2, 0x0a, 0x0a, 0x70, 0x8e, 0x77, 0x74, 0x0e, 0xf1, 0x0c, 0x73, 0x15,
|
||||
0x60, 0x36, 0x8a, 0xe0, 0x62, 0x85, 0x18, 0xe2, 0xcf, 0xc5, 0x87, 0xea, 0x2e, 0x21, 0x19, 0xa8,
|
||||
0x03, 0xb0, 0xfa, 0x43, 0x4a, 0x16, 0x87, 0x2c, 0xc4, 0x33, 0x06, 0x8c, 0x4e, 0xea, 0x51, 0xaa,
|
||||
0xe9, 0x99, 0x25, 0x19, 0xa5, 0x49, 0x7a, 0xc9, 0xf9, 0xb9, 0xfa, 0x39, 0x99, 0xe9, 0x19, 0x25,
|
||||
0x79, 0x99, 0x79, 0xe9, 0x79, 0xa9, 0x25, 0xe5, 0xf9, 0x45, 0xd9, 0xfa, 0x39, 0x79, 0x29, 0xfa,
|
||||
0x60, 0x13, 0x92, 0xd8, 0xc0, 0x01, 0x67, 0x0c, 0x08, 0x00, 0x00, 0xff, 0xff, 0x75, 0x6a, 0x2f,
|
||||
0xe2, 0x4e, 0x01, 0x00, 0x00,
|
||||
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
|
||||
}
|
||||
|
||||
var file_stateservice_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
|
||||
var file_stateservice_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
|
||||
var file_stateservice_proto_goTypes = []interface{}{
|
||||
(WalletState)(0), // 0: lnrpc.WalletState
|
||||
(*SubscribeStateRequest)(nil), // 1: lnrpc.SubscribeStateRequest
|
||||
(*SubscribeStateResponse)(nil), // 2: lnrpc.SubscribeStateResponse
|
||||
}
|
||||
var file_stateservice_proto_depIdxs = []int32{
|
||||
0, // 0: lnrpc.SubscribeStateResponse.state:type_name -> lnrpc.WalletState
|
||||
1, // 1: lnrpc.State.SubscribeState:input_type -> lnrpc.SubscribeStateRequest
|
||||
2, // 2: lnrpc.State.SubscribeState:output_type -> lnrpc.SubscribeStateResponse
|
||||
2, // [2:3] is the sub-list for method output_type
|
||||
1, // [1:2] is the sub-list for method input_type
|
||||
1, // [1:1] is the sub-list for extension type_name
|
||||
1, // [1:1] is the sub-list for extension extendee
|
||||
0, // [0:1] is the sub-list for field type_name
|
||||
}
|
||||
|
||||
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
|
||||
}
|
||||
}
|
||||
}
|
||||
type x struct{}
|
||||
out := protoimpl.TypeBuilder{
|
||||
File: protoimpl.DescBuilder{
|
||||
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
||||
RawDescriptor: file_stateservice_proto_rawDesc,
|
||||
NumEnums: 1,
|
||||
NumMessages: 2,
|
||||
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
|
||||
}
|
||||
|
||||
// Reference imports to suppress errors if they are not otherwise used.
|
||||
var _ context.Context
|
||||
var _ grpc.ClientConn
|
||||
var _ grpc.ClientConnInterface
|
||||
|
||||
// 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
|
||||
const _ = grpc.SupportPackageIsVersion6
|
||||
|
||||
// StateClient is the client API for State service.
|
||||
//
|
||||
@@ -171,10 +292,10 @@ type StateClient interface {
|
||||
}
|
||||
|
||||
type stateClient struct {
|
||||
cc *grpc.ClientConn
|
||||
cc grpc.ClientConnInterface
|
||||
}
|
||||
|
||||
func NewStateClient(cc *grpc.ClientConn) StateClient {
|
||||
func NewStateClient(cc grpc.ClientConnInterface) StateClient {
|
||||
return &stateClient{cc}
|
||||
}
|
||||
|
||||
@@ -221,7 +342,7 @@ type StateServer interface {
|
||||
type UnimplementedStateServer struct {
|
||||
}
|
||||
|
||||
func (*UnimplementedStateServer) SubscribeState(req *SubscribeStateRequest, srv State_SubscribeStateServer) error {
|
||||
func (*UnimplementedStateServer) SubscribeState(*SubscribeStateRequest, State_SubscribeStateServer) error {
|
||||
return status.Errorf(codes.Unimplemented, "method SubscribeState not implemented")
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user