gitee.com/liuxuezhan/go-micro-v1.18.0@v1.0.0/debug/service/proto/debug.pb.go (about)

     1  // Code generated by protoc-gen-go. DO NOT EDIT.
     2  // source: micro/go-micro/debug/service/proto/debug.proto
     3  
     4  package debug
     5  
     6  import (
     7  	fmt "fmt"
     8  	proto "github.com/golang/protobuf/proto"
     9  	math "math"
    10  )
    11  
    12  // Reference imports to suppress errors if they are not otherwise used.
    13  var _ = proto.Marshal
    14  var _ = fmt.Errorf
    15  var _ = math.Inf
    16  
    17  // This is a compile-time assertion to ensure that this generated file
    18  // is compatible with the proto package it is being compiled against.
    19  // A compilation error at this line likely means your copy of the
    20  // proto package needs to be updated.
    21  const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
    22  
    23  type HealthRequest struct {
    24  	// optional service name
    25  	Service              string   `protobuf:"bytes,1,opt,name=service,proto3" json:"service,omitempty"`
    26  	XXX_NoUnkeyedLiteral struct{} `json:"-"`
    27  	XXX_unrecognized     []byte   `json:"-"`
    28  	XXX_sizecache        int32    `json:"-"`
    29  }
    30  
    31  func (m *HealthRequest) Reset()         { *m = HealthRequest{} }
    32  func (m *HealthRequest) String() string { return proto.CompactTextString(m) }
    33  func (*HealthRequest) ProtoMessage()    {}
    34  func (*HealthRequest) Descriptor() ([]byte, []int) {
    35  	return fileDescriptor_dea322649cde1ef2, []int{0}
    36  }
    37  
    38  func (m *HealthRequest) XXX_Unmarshal(b []byte) error {
    39  	return xxx_messageInfo_HealthRequest.Unmarshal(m, b)
    40  }
    41  func (m *HealthRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
    42  	return xxx_messageInfo_HealthRequest.Marshal(b, m, deterministic)
    43  }
    44  func (m *HealthRequest) XXX_Merge(src proto.Message) {
    45  	xxx_messageInfo_HealthRequest.Merge(m, src)
    46  }
    47  func (m *HealthRequest) XXX_Size() int {
    48  	return xxx_messageInfo_HealthRequest.Size(m)
    49  }
    50  func (m *HealthRequest) XXX_DiscardUnknown() {
    51  	xxx_messageInfo_HealthRequest.DiscardUnknown(m)
    52  }
    53  
    54  var xxx_messageInfo_HealthRequest proto.InternalMessageInfo
    55  
    56  func (m *HealthRequest) GetService() string {
    57  	if m != nil {
    58  		return m.Service
    59  	}
    60  	return ""
    61  }
    62  
    63  type HealthResponse struct {
    64  	// default: ok
    65  	Status               string   `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"`
    66  	XXX_NoUnkeyedLiteral struct{} `json:"-"`
    67  	XXX_unrecognized     []byte   `json:"-"`
    68  	XXX_sizecache        int32    `json:"-"`
    69  }
    70  
    71  func (m *HealthResponse) Reset()         { *m = HealthResponse{} }
    72  func (m *HealthResponse) String() string { return proto.CompactTextString(m) }
    73  func (*HealthResponse) ProtoMessage()    {}
    74  func (*HealthResponse) Descriptor() ([]byte, []int) {
    75  	return fileDescriptor_dea322649cde1ef2, []int{1}
    76  }
    77  
    78  func (m *HealthResponse) XXX_Unmarshal(b []byte) error {
    79  	return xxx_messageInfo_HealthResponse.Unmarshal(m, b)
    80  }
    81  func (m *HealthResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
    82  	return xxx_messageInfo_HealthResponse.Marshal(b, m, deterministic)
    83  }
    84  func (m *HealthResponse) XXX_Merge(src proto.Message) {
    85  	xxx_messageInfo_HealthResponse.Merge(m, src)
    86  }
    87  func (m *HealthResponse) XXX_Size() int {
    88  	return xxx_messageInfo_HealthResponse.Size(m)
    89  }
    90  func (m *HealthResponse) XXX_DiscardUnknown() {
    91  	xxx_messageInfo_HealthResponse.DiscardUnknown(m)
    92  }
    93  
    94  var xxx_messageInfo_HealthResponse proto.InternalMessageInfo
    95  
    96  func (m *HealthResponse) GetStatus() string {
    97  	if m != nil {
    98  		return m.Status
    99  	}
   100  	return ""
   101  }
   102  
   103  type StatsRequest struct {
   104  	// optional service name
   105  	Service              string   `protobuf:"bytes,1,opt,name=service,proto3" json:"service,omitempty"`
   106  	XXX_NoUnkeyedLiteral struct{} `json:"-"`
   107  	XXX_unrecognized     []byte   `json:"-"`
   108  	XXX_sizecache        int32    `json:"-"`
   109  }
   110  
   111  func (m *StatsRequest) Reset()         { *m = StatsRequest{} }
   112  func (m *StatsRequest) String() string { return proto.CompactTextString(m) }
   113  func (*StatsRequest) ProtoMessage()    {}
   114  func (*StatsRequest) Descriptor() ([]byte, []int) {
   115  	return fileDescriptor_dea322649cde1ef2, []int{2}
   116  }
   117  
   118  func (m *StatsRequest) XXX_Unmarshal(b []byte) error {
   119  	return xxx_messageInfo_StatsRequest.Unmarshal(m, b)
   120  }
   121  func (m *StatsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   122  	return xxx_messageInfo_StatsRequest.Marshal(b, m, deterministic)
   123  }
   124  func (m *StatsRequest) XXX_Merge(src proto.Message) {
   125  	xxx_messageInfo_StatsRequest.Merge(m, src)
   126  }
   127  func (m *StatsRequest) XXX_Size() int {
   128  	return xxx_messageInfo_StatsRequest.Size(m)
   129  }
   130  func (m *StatsRequest) XXX_DiscardUnknown() {
   131  	xxx_messageInfo_StatsRequest.DiscardUnknown(m)
   132  }
   133  
   134  var xxx_messageInfo_StatsRequest proto.InternalMessageInfo
   135  
   136  func (m *StatsRequest) GetService() string {
   137  	if m != nil {
   138  		return m.Service
   139  	}
   140  	return ""
   141  }
   142  
   143  type StatsResponse struct {
   144  	// timestamp of recording
   145  	Timestamp uint64 `protobuf:"varint,1,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
   146  	// unix timestamp
   147  	Started uint64 `protobuf:"varint,2,opt,name=started,proto3" json:"started,omitempty"`
   148  	// in seconds
   149  	Uptime uint64 `protobuf:"varint,3,opt,name=uptime,proto3" json:"uptime,omitempty"`
   150  	// in bytes
   151  	Memory uint64 `protobuf:"varint,4,opt,name=memory,proto3" json:"memory,omitempty"`
   152  	// num threads
   153  	Threads uint64 `protobuf:"varint,5,opt,name=threads,proto3" json:"threads,omitempty"`
   154  	// total gc in nanoseconds
   155  	Gc                   uint64   `protobuf:"varint,6,opt,name=gc,proto3" json:"gc,omitempty"`
   156  	XXX_NoUnkeyedLiteral struct{} `json:"-"`
   157  	XXX_unrecognized     []byte   `json:"-"`
   158  	XXX_sizecache        int32    `json:"-"`
   159  }
   160  
   161  func (m *StatsResponse) Reset()         { *m = StatsResponse{} }
   162  func (m *StatsResponse) String() string { return proto.CompactTextString(m) }
   163  func (*StatsResponse) ProtoMessage()    {}
   164  func (*StatsResponse) Descriptor() ([]byte, []int) {
   165  	return fileDescriptor_dea322649cde1ef2, []int{3}
   166  }
   167  
   168  func (m *StatsResponse) XXX_Unmarshal(b []byte) error {
   169  	return xxx_messageInfo_StatsResponse.Unmarshal(m, b)
   170  }
   171  func (m *StatsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   172  	return xxx_messageInfo_StatsResponse.Marshal(b, m, deterministic)
   173  }
   174  func (m *StatsResponse) XXX_Merge(src proto.Message) {
   175  	xxx_messageInfo_StatsResponse.Merge(m, src)
   176  }
   177  func (m *StatsResponse) XXX_Size() int {
   178  	return xxx_messageInfo_StatsResponse.Size(m)
   179  }
   180  func (m *StatsResponse) XXX_DiscardUnknown() {
   181  	xxx_messageInfo_StatsResponse.DiscardUnknown(m)
   182  }
   183  
   184  var xxx_messageInfo_StatsResponse proto.InternalMessageInfo
   185  
   186  func (m *StatsResponse) GetTimestamp() uint64 {
   187  	if m != nil {
   188  		return m.Timestamp
   189  	}
   190  	return 0
   191  }
   192  
   193  func (m *StatsResponse) GetStarted() uint64 {
   194  	if m != nil {
   195  		return m.Started
   196  	}
   197  	return 0
   198  }
   199  
   200  func (m *StatsResponse) GetUptime() uint64 {
   201  	if m != nil {
   202  		return m.Uptime
   203  	}
   204  	return 0
   205  }
   206  
   207  func (m *StatsResponse) GetMemory() uint64 {
   208  	if m != nil {
   209  		return m.Memory
   210  	}
   211  	return 0
   212  }
   213  
   214  func (m *StatsResponse) GetThreads() uint64 {
   215  	if m != nil {
   216  		return m.Threads
   217  	}
   218  	return 0
   219  }
   220  
   221  func (m *StatsResponse) GetGc() uint64 {
   222  	if m != nil {
   223  		return m.Gc
   224  	}
   225  	return 0
   226  }
   227  
   228  // LogRequest requests service logs
   229  type LogRequest struct {
   230  	// service to request logs for
   231  	Service string `protobuf:"bytes,1,opt,name=service,proto3" json:"service,omitempty"`
   232  	// stream records continuously
   233  	Stream bool `protobuf:"varint,2,opt,name=stream,proto3" json:"stream,omitempty"`
   234  	// count of records to request
   235  	Count int64 `protobuf:"varint,3,opt,name=count,proto3" json:"count,omitempty"`
   236  	// relative time in seconds
   237  	// before the current time
   238  	// from which to show logs
   239  	Since                int64    `protobuf:"varint,4,opt,name=since,proto3" json:"since,omitempty"`
   240  	XXX_NoUnkeyedLiteral struct{} `json:"-"`
   241  	XXX_unrecognized     []byte   `json:"-"`
   242  	XXX_sizecache        int32    `json:"-"`
   243  }
   244  
   245  func (m *LogRequest) Reset()         { *m = LogRequest{} }
   246  func (m *LogRequest) String() string { return proto.CompactTextString(m) }
   247  func (*LogRequest) ProtoMessage()    {}
   248  func (*LogRequest) Descriptor() ([]byte, []int) {
   249  	return fileDescriptor_dea322649cde1ef2, []int{4}
   250  }
   251  
   252  func (m *LogRequest) XXX_Unmarshal(b []byte) error {
   253  	return xxx_messageInfo_LogRequest.Unmarshal(m, b)
   254  }
   255  func (m *LogRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   256  	return xxx_messageInfo_LogRequest.Marshal(b, m, deterministic)
   257  }
   258  func (m *LogRequest) XXX_Merge(src proto.Message) {
   259  	xxx_messageInfo_LogRequest.Merge(m, src)
   260  }
   261  func (m *LogRequest) XXX_Size() int {
   262  	return xxx_messageInfo_LogRequest.Size(m)
   263  }
   264  func (m *LogRequest) XXX_DiscardUnknown() {
   265  	xxx_messageInfo_LogRequest.DiscardUnknown(m)
   266  }
   267  
   268  var xxx_messageInfo_LogRequest proto.InternalMessageInfo
   269  
   270  func (m *LogRequest) GetService() string {
   271  	if m != nil {
   272  		return m.Service
   273  	}
   274  	return ""
   275  }
   276  
   277  func (m *LogRequest) GetStream() bool {
   278  	if m != nil {
   279  		return m.Stream
   280  	}
   281  	return false
   282  }
   283  
   284  func (m *LogRequest) GetCount() int64 {
   285  	if m != nil {
   286  		return m.Count
   287  	}
   288  	return 0
   289  }
   290  
   291  func (m *LogRequest) GetSince() int64 {
   292  	if m != nil {
   293  		return m.Since
   294  	}
   295  	return 0
   296  }
   297  
   298  // Record is service log record
   299  type Record struct {
   300  	// timestamp of log record
   301  	Timestamp int64 `protobuf:"varint,1,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
   302  	// record value
   303  	Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
   304  	// record metadata
   305  	Metadata             map[string]string `protobuf:"bytes,3,rep,name=metadata,proto3" json:"metadata,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
   306  	XXX_NoUnkeyedLiteral struct{}          `json:"-"`
   307  	XXX_unrecognized     []byte            `json:"-"`
   308  	XXX_sizecache        int32             `json:"-"`
   309  }
   310  
   311  func (m *Record) Reset()         { *m = Record{} }
   312  func (m *Record) String() string { return proto.CompactTextString(m) }
   313  func (*Record) ProtoMessage()    {}
   314  func (*Record) Descriptor() ([]byte, []int) {
   315  	return fileDescriptor_dea322649cde1ef2, []int{5}
   316  }
   317  
   318  func (m *Record) XXX_Unmarshal(b []byte) error {
   319  	return xxx_messageInfo_Record.Unmarshal(m, b)
   320  }
   321  func (m *Record) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   322  	return xxx_messageInfo_Record.Marshal(b, m, deterministic)
   323  }
   324  func (m *Record) XXX_Merge(src proto.Message) {
   325  	xxx_messageInfo_Record.Merge(m, src)
   326  }
   327  func (m *Record) XXX_Size() int {
   328  	return xxx_messageInfo_Record.Size(m)
   329  }
   330  func (m *Record) XXX_DiscardUnknown() {
   331  	xxx_messageInfo_Record.DiscardUnknown(m)
   332  }
   333  
   334  var xxx_messageInfo_Record proto.InternalMessageInfo
   335  
   336  func (m *Record) GetTimestamp() int64 {
   337  	if m != nil {
   338  		return m.Timestamp
   339  	}
   340  	return 0
   341  }
   342  
   343  func (m *Record) GetValue() string {
   344  	if m != nil {
   345  		return m.Value
   346  	}
   347  	return ""
   348  }
   349  
   350  func (m *Record) GetMetadata() map[string]string {
   351  	if m != nil {
   352  		return m.Metadata
   353  	}
   354  	return nil
   355  }
   356  
   357  func init() {
   358  	proto.RegisterType((*HealthRequest)(nil), "HealthRequest")
   359  	proto.RegisterType((*HealthResponse)(nil), "HealthResponse")
   360  	proto.RegisterType((*StatsRequest)(nil), "StatsRequest")
   361  	proto.RegisterType((*StatsResponse)(nil), "StatsResponse")
   362  	proto.RegisterType((*LogRequest)(nil), "LogRequest")
   363  	proto.RegisterType((*Record)(nil), "Record")
   364  	proto.RegisterMapType((map[string]string)(nil), "Record.MetadataEntry")
   365  }
   366  
   367  func init() {
   368  	proto.RegisterFile("micro/go-micro/debug/service/proto/debug.proto", fileDescriptor_dea322649cde1ef2)
   369  }
   370  
   371  var fileDescriptor_dea322649cde1ef2 = []byte{
   372  	// 399 bytes of a gzipped FileDescriptorProto
   373  	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x52, 0xc1, 0x6e, 0xd4, 0x30,
   374  	0x10, 0xdd, 0xac, 0x9b, 0xb4, 0x3b, 0x65, 0x17, 0x64, 0x15, 0x64, 0xad, 0x90, 0xa8, 0x7c, 0x0a,
   375  	0x42, 0x78, 0xa1, 0x5c, 0x10, 0x5c, 0x41, 0xe2, 0x50, 0x2e, 0xe6, 0x0b, 0xdc, 0x64, 0x94, 0x2e,
   376  	0x34, 0x71, 0xb0, 0x27, 0x95, 0xf6, 0xc4, 0xb7, 0x70, 0xe7, 0x23, 0x51, 0x6c, 0x2f, 0x6d, 0x44,
   377  	0xa5, 0xbd, 0xcd, 0x7b, 0xf3, 0xf4, 0x3c, 0x33, 0x7e, 0xa0, 0xda, 0x6d, 0xe5, 0xec, 0xa6, 0xb1,
   378  	0xaf, 0x63, 0x51, 0xe3, 0xd5, 0xd0, 0x6c, 0x3c, 0xba, 0xdb, 0x6d, 0x85, 0x9b, 0xde, 0x59, 0x4a,
   379  	0x9c, 0x0a, 0xb5, 0x7c, 0x09, 0xcb, 0x2f, 0x68, 0x6e, 0xe8, 0x5a, 0xe3, 0xcf, 0x01, 0x3d, 0x71,
   380  	0x01, 0xc7, 0x49, 0x2d, 0xb2, 0xf3, 0xac, 0x5c, 0xe8, 0x3d, 0x94, 0x25, 0xac, 0xf6, 0x52, 0xdf,
   381  	0xdb, 0xce, 0x23, 0x7f, 0x06, 0x85, 0x27, 0x43, 0x83, 0x4f, 0xd2, 0x84, 0x64, 0x09, 0x8f, 0xbe,
   382  	0x91, 0x21, 0x7f, 0xd8, 0xf3, 0x77, 0x06, 0xcb, 0x24, 0x4d, 0x9e, 0xcf, 0x61, 0x41, 0xdb, 0x16,
   383  	0x3d, 0x99, 0xb6, 0x0f, 0xea, 0x23, 0x7d, 0x47, 0x04, 0x27, 0x32, 0x8e, 0xb0, 0x16, 0xf3, 0xd0,
   384  	0xdb, 0xc3, 0x71, 0x96, 0xa1, 0x1f, 0x85, 0x82, 0x85, 0x46, 0x42, 0x23, 0xdf, 0x62, 0x6b, 0xdd,
   385  	0x4e, 0x1c, 0x45, 0x3e, 0xa2, 0xd1, 0x89, 0xae, 0x1d, 0x9a, 0xda, 0x8b, 0x3c, 0x3a, 0x25, 0xc8,
   386  	0x57, 0x30, 0x6f, 0x2a, 0x51, 0x04, 0x72, 0xde, 0x54, 0xf2, 0x3b, 0xc0, 0xa5, 0x6d, 0x0e, 0xee,
   387  	0x12, 0xaf, 0xe1, 0xd0, 0xb4, 0x61, 0xb4, 0x13, 0x9d, 0x10, 0x3f, 0x83, 0xbc, 0xb2, 0x43, 0x47,
   388  	0x61, 0x30, 0xa6, 0x23, 0x18, 0x59, 0xbf, 0xed, 0x2a, 0x0c, 0x63, 0x31, 0x1d, 0x81, 0xfc, 0x93,
   389  	0x41, 0xa1, 0xb1, 0xb2, 0xae, 0xfe, 0xff, 0x10, 0xec, 0xfe, 0x21, 0xce, 0x20, 0xbf, 0x35, 0x37,
   390  	0x03, 0x86, 0xb7, 0x16, 0x3a, 0x02, 0xfe, 0x16, 0x4e, 0x5a, 0x24, 0x53, 0x1b, 0x32, 0x82, 0x9d,
   391  	0xb3, 0xf2, 0xf4, 0xe2, 0xa9, 0x8a, 0x76, 0xea, 0x6b, 0xe2, 0x3f, 0x77, 0xe4, 0x76, 0xfa, 0x9f,
   392  	0x6c, 0xfd, 0x11, 0x96, 0x93, 0x16, 0x7f, 0x02, 0xec, 0x07, 0xee, 0xd2, 0x72, 0x63, 0xf9, 0xf0,
   393  	0x5b, 0x1f, 0xe6, 0xef, 0xb3, 0x8b, 0x5f, 0x90, 0x7f, 0x1a, 0xc3, 0xc4, 0x5f, 0x41, 0x11, 0xb3,
   394  	0xc1, 0x57, 0x6a, 0x92, 0xa7, 0xf5, 0x63, 0x35, 0x0d, 0x8d, 0x9c, 0xf1, 0x12, 0xf2, 0xf0, 0xe7,
   395  	0x7c, 0xa9, 0xee, 0xc7, 0x64, 0xbd, 0x52, 0x93, 0x28, 0xc8, 0x19, 0x7f, 0x01, 0xec, 0xd2, 0x36,
   396  	0xfc, 0x54, 0xdd, 0x7d, 0xc0, 0xfa, 0x38, 0x6d, 0x24, 0x67, 0x6f, 0xb2, 0xab, 0x22, 0xa4, 0xf8,
   397  	0xdd, 0xdf, 0x00, 0x00, 0x00, 0xff, 0xff, 0xea, 0xdf, 0xa5, 0x1d, 0xf7, 0x02, 0x00, 0x00,
   398  }