lightning-terminal/litrpc/lit-status.pb.go
Elle Mouton 4006622df6
litrpc: add Status server protos
Add the protos for a new Status server that can be used to query the
status of a number of LiT's subservers.
2023-09-22 11:55:16 +02:00

305 lines
11 KiB
Go

// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.30.0
// protoc v3.6.1
// 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"
)
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
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
}
func (x *SubServerStatusReq) Reset() {
*x = SubServerStatusReq{}
if protoimpl.UnsafeEnabled {
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 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 SubServerStatusReq.ProtoReflect.Descriptor instead.
func (*SubServerStatusReq) Descriptor() ([]byte, []int) {
return file_lit_status_proto_rawDescGZIP(), []int{0}
}
type SubServerStatusResp struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// 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,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
}
func (x *SubServerStatusResp) Reset() {
*x = SubServerStatusResp{}
if protoimpl.UnsafeEnabled {
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 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 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
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// 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"`
}
func (x *SubServerStatus) Reset() {
*x = SubServerStatus{}
if protoimpl.UnsafeEnabled {
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 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 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 ""
}
var File_lit_status_proto protoreflect.FileDescriptor
var file_lit_status_proto_rawDesc = []byte{
0x0a, 0x10, 0x6c, 0x69, 0x74, 0x2d, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x2e, 0x70, 0x72, 0x6f,
0x74, 0x6f, 0x12, 0x06, 0x6c, 0x69, 0x74, 0x72, 0x70, 0x63, 0x22, 0x14, 0x0a, 0x12, 0x53, 0x75,
0x62, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x65, 0x71,
0x22, 0xbb, 0x01, 0x0a, 0x13, 0x53, 0x75, 0x62, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x53, 0x74,
0x61, 0x74, 0x75, 0x73, 0x52, 0x65, 0x73, 0x70, 0x12, 0x4c, 0x0a, 0x0b, 0x73, 0x75, 0x62, 0x5f,
0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2b, 0x2e,
0x6c, 0x69, 0x74, 0x72, 0x70, 0x63, 0x2e, 0x53, 0x75, 0x62, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72,
0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x65, 0x73, 0x70, 0x2e, 0x53, 0x75, 0x62, 0x53, 0x65,
0x72, 0x76, 0x65, 0x72, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0a, 0x73, 0x75, 0x62, 0x53,
0x65, 0x72, 0x76, 0x65, 0x72, 0x73, 0x1a, 0x56, 0x0a, 0x0f, 0x53, 0x75, 0x62, 0x53, 0x65, 0x72,
0x76, 0x65, 0x72, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79,
0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x2d, 0x0a, 0x05, 0x76,
0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x6c, 0x69, 0x74,
0x72, 0x70, 0x63, 0x2e, 0x53, 0x75, 0x62, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x53, 0x74, 0x61,
0x74, 0x75, 0x73, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x5d,
0x0a, 0x0f, 0x53, 0x75, 0x62, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x53, 0x74, 0x61, 0x74, 0x75,
0x73, 0x12, 0x1a, 0x0a, 0x08, 0x64, 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x18, 0x01, 0x20,
0x01, 0x28, 0x08, 0x52, 0x08, 0x64, 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x12, 0x18, 0x0a,
0x07, 0x72, 0x75, 0x6e, 0x6e, 0x69, 0x6e, 0x67, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07,
0x72, 0x75, 0x6e, 0x6e, 0x69, 0x6e, 0x67, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72,
0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x32, 0x54, 0x0a,
0x06, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x4a, 0x0a, 0x0f, 0x53, 0x75, 0x62, 0x53, 0x65,
0x72, 0x76, 0x65, 0x72, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x1a, 0x2e, 0x6c, 0x69, 0x74,
0x72, 0x70, 0x63, 0x2e, 0x53, 0x75, 0x62, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x53, 0x74, 0x61,
0x74, 0x75, 0x73, 0x52, 0x65, 0x71, 0x1a, 0x1b, 0x2e, 0x6c, 0x69, 0x74, 0x72, 0x70, 0x63, 0x2e,
0x53, 0x75, 0x62, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52,
0x65, 0x73, 0x70, 0x42, 0x34, 0x5a, 0x32, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f,
0x6d, 0x2f, 0x6c, 0x69, 0x67, 0x68, 0x74, 0x6e, 0x69, 0x6e, 0x67, 0x6c, 0x61, 0x62, 0x73, 0x2f,
0x6c, 0x69, 0x67, 0x68, 0x74, 0x6e, 0x69, 0x6e, 0x67, 0x2d, 0x74, 0x65, 0x72, 0x6d, 0x69, 0x6e,
0x61, 0x6c, 0x2f, 0x6c, 0x69, 0x74, 0x72, 0x70, 0x63, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f,
0x33,
}
var (
file_lit_status_proto_rawDescOnce sync.Once
file_lit_status_proto_rawDescData = file_lit_status_proto_rawDesc
)
func file_lit_status_proto_rawDescGZIP() []byte {
file_lit_status_proto_rawDescOnce.Do(func() {
file_lit_status_proto_rawDescData = protoimpl.X.CompressGZIP(file_lit_status_proto_rawDescData)
})
return file_lit_status_proto_rawDescData
}
var file_lit_status_proto_msgTypes = make([]protoimpl.MessageInfo, 4)
var file_lit_status_proto_goTypes = []interface{}{
(*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
}
if !protoimpl.UnsafeEnabled {
file_lit_status_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*SubServerStatusReq); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_lit_status_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*SubServerStatusResp); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_lit_status_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*SubServerStatus); 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_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_rawDesc = nil
file_lit_status_proto_goTypes = nil
file_lit_status_proto_depIdxs = nil
}