lightning-terminal/litrpc/lit-status.pb.go
2026-02-12 19:18:19 +01:00

254 lines
8 KiB
Go

// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.36.11
// protoc v3.21.12
// source: lit-status.proto
package litrpc
import (
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
reflect "reflect"
sync "sync"
unsafe "unsafe"
)
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)
)
type SubServerStatusReq struct {
state protoimpl.MessageState `protogen:"open.v1"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *SubServerStatusReq) Reset() {
*x = SubServerStatusReq{}
mi := &file_lit_status_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *SubServerStatusReq) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*SubServerStatusReq) ProtoMessage() {}
func (x *SubServerStatusReq) ProtoReflect() protoreflect.Message {
mi := &file_lit_status_proto_msgTypes[0]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use SubServerStatusReq.ProtoReflect.Descriptor instead.
func (*SubServerStatusReq) Descriptor() ([]byte, []int) {
return file_lit_status_proto_rawDescGZIP(), []int{0}
}
type SubServerStatusResp struct {
state protoimpl.MessageState `protogen:"open.v1"`
// A map of sub-server names to their status.
SubServers map[string]*SubServerStatus `protobuf:"bytes,1,rep,name=sub_servers,json=subServers,proto3" json:"sub_servers,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *SubServerStatusResp) Reset() {
*x = SubServerStatusResp{}
mi := &file_lit_status_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *SubServerStatusResp) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*SubServerStatusResp) ProtoMessage() {}
func (x *SubServerStatusResp) ProtoReflect() protoreflect.Message {
mi := &file_lit_status_proto_msgTypes[1]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use SubServerStatusResp.ProtoReflect.Descriptor instead.
func (*SubServerStatusResp) Descriptor() ([]byte, []int) {
return file_lit_status_proto_rawDescGZIP(), []int{1}
}
func (x *SubServerStatusResp) GetSubServers() map[string]*SubServerStatus {
if x != nil {
return x.SubServers
}
return nil
}
type SubServerStatus struct {
state protoimpl.MessageState `protogen:"open.v1"`
// disabled is true if the sub-server is available in the LiT package but
// has explicitly been disabled.
Disabled bool `protobuf:"varint,1,opt,name=disabled,proto3" json:"disabled,omitempty"`
// running is true if the sub-server is currently running.
Running bool `protobuf:"varint,2,opt,name=running,proto3" json:"running,omitempty"`
// error describes an error that might have resulted in the sub-server not
// starting up properly.
Error string `protobuf:"bytes,3,opt,name=error,proto3" json:"error,omitempty"`
// custom_status details a custom state that the sub-server has entered,
// which is unique to the sub-server, and which is not the standard
// disabled, running or errored state.
CustomStatus string `protobuf:"bytes,4,opt,name=custom_status,json=customStatus,proto3" json:"custom_status,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *SubServerStatus) Reset() {
*x = SubServerStatus{}
mi := &file_lit_status_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *SubServerStatus) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*SubServerStatus) ProtoMessage() {}
func (x *SubServerStatus) ProtoReflect() protoreflect.Message {
mi := &file_lit_status_proto_msgTypes[2]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use SubServerStatus.ProtoReflect.Descriptor instead.
func (*SubServerStatus) Descriptor() ([]byte, []int) {
return file_lit_status_proto_rawDescGZIP(), []int{2}
}
func (x *SubServerStatus) GetDisabled() bool {
if x != nil {
return x.Disabled
}
return false
}
func (x *SubServerStatus) GetRunning() bool {
if x != nil {
return x.Running
}
return false
}
func (x *SubServerStatus) GetError() string {
if x != nil {
return x.Error
}
return ""
}
func (x *SubServerStatus) GetCustomStatus() string {
if x != nil {
return x.CustomStatus
}
return ""
}
var File_lit_status_proto protoreflect.FileDescriptor
const file_lit_status_proto_rawDesc = "" +
"\n" +
"\x10lit-status.proto\x12\x06litrpc\"\x14\n" +
"\x12SubServerStatusReq\"\xbb\x01\n" +
"\x13SubServerStatusResp\x12L\n" +
"\vsub_servers\x18\x01 \x03(\v2+.litrpc.SubServerStatusResp.SubServersEntryR\n" +
"subServers\x1aV\n" +
"\x0fSubServersEntry\x12\x10\n" +
"\x03key\x18\x01 \x01(\tR\x03key\x12-\n" +
"\x05value\x18\x02 \x01(\v2\x17.litrpc.SubServerStatusR\x05value:\x028\x01\"\x82\x01\n" +
"\x0fSubServerStatus\x12\x1a\n" +
"\bdisabled\x18\x01 \x01(\bR\bdisabled\x12\x18\n" +
"\arunning\x18\x02 \x01(\bR\arunning\x12\x14\n" +
"\x05error\x18\x03 \x01(\tR\x05error\x12#\n" +
"\rcustom_status\x18\x04 \x01(\tR\fcustomStatus2T\n" +
"\x06Status\x12J\n" +
"\x0fSubServerStatus\x12\x1a.litrpc.SubServerStatusReq\x1a\x1b.litrpc.SubServerStatusRespB4Z2github.com/lightninglabs/lightning-terminal/litrpcb\x06proto3"
var (
file_lit_status_proto_rawDescOnce sync.Once
file_lit_status_proto_rawDescData []byte
)
func file_lit_status_proto_rawDescGZIP() []byte {
file_lit_status_proto_rawDescOnce.Do(func() {
file_lit_status_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_lit_status_proto_rawDesc), len(file_lit_status_proto_rawDesc)))
})
return file_lit_status_proto_rawDescData
}
var file_lit_status_proto_msgTypes = make([]protoimpl.MessageInfo, 4)
var file_lit_status_proto_goTypes = []any{
(*SubServerStatusReq)(nil), // 0: litrpc.SubServerStatusReq
(*SubServerStatusResp)(nil), // 1: litrpc.SubServerStatusResp
(*SubServerStatus)(nil), // 2: litrpc.SubServerStatus
nil, // 3: litrpc.SubServerStatusResp.SubServersEntry
}
var file_lit_status_proto_depIdxs = []int32{
3, // 0: litrpc.SubServerStatusResp.sub_servers:type_name -> litrpc.SubServerStatusResp.SubServersEntry
2, // 1: litrpc.SubServerStatusResp.SubServersEntry.value:type_name -> litrpc.SubServerStatus
0, // 2: litrpc.Status.SubServerStatus:input_type -> litrpc.SubServerStatusReq
1, // 3: litrpc.Status.SubServerStatus:output_type -> litrpc.SubServerStatusResp
3, // [3:4] is the sub-list for method output_type
2, // [2:3] 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
}
func init() { file_lit_status_proto_init() }
func file_lit_status_proto_init() {
if File_lit_status_proto != nil {
return
}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: unsafe.Slice(unsafe.StringData(file_lit_status_proto_rawDesc), len(file_lit_status_proto_rawDesc)),
NumEnums: 0,
NumMessages: 4,
NumExtensions: 0,
NumServices: 1,
},
GoTypes: file_lit_status_proto_goTypes,
DependencyIndexes: file_lit_status_proto_depIdxs,
MessageInfos: file_lit_status_proto_msgTypes,
}.Build()
File_lit_status_proto = out.File
file_lit_status_proto_goTypes = nil
file_lit_status_proto_depIdxs = nil
}