2019-08-06 19:53:14 +03:00
|
|
|
// Code generated by protoc-gen-go. DO NOT EDIT.
|
2019-11-26 16:53:33 +03:00
|
|
|
// source: github.com/micro/go-micro/debug/proto/debug.proto
|
2019-08-06 19:53:14 +03:00
|
|
|
|
|
|
|
package debug
|
|
|
|
|
|
|
|
import (
|
|
|
|
fmt "fmt"
|
|
|
|
proto "github.com/golang/protobuf/proto"
|
|
|
|
math "math"
|
|
|
|
)
|
|
|
|
|
|
|
|
// Reference imports to suppress errors if they are not otherwise used.
|
|
|
|
var _ = proto.Marshal
|
|
|
|
var _ = fmt.Errorf
|
|
|
|
var _ = math.Inf
|
|
|
|
|
|
|
|
// 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
|
|
|
|
|
|
|
|
type HealthRequest struct {
|
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
|
XXX_unrecognized []byte `json:"-"`
|
|
|
|
XXX_sizecache int32 `json:"-"`
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *HealthRequest) Reset() { *m = HealthRequest{} }
|
|
|
|
func (m *HealthRequest) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*HealthRequest) ProtoMessage() {}
|
|
|
|
func (*HealthRequest) Descriptor() ([]byte, []int) {
|
2019-11-26 16:53:33 +03:00
|
|
|
return fileDescriptor_7cb19b1a05a6e0a9, []int{0}
|
2019-08-06 19:53:14 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
func (m *HealthRequest) XXX_Unmarshal(b []byte) error {
|
|
|
|
return xxx_messageInfo_HealthRequest.Unmarshal(m, b)
|
|
|
|
}
|
|
|
|
func (m *HealthRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
return xxx_messageInfo_HealthRequest.Marshal(b, m, deterministic)
|
|
|
|
}
|
|
|
|
func (m *HealthRequest) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_HealthRequest.Merge(m, src)
|
|
|
|
}
|
|
|
|
func (m *HealthRequest) XXX_Size() int {
|
|
|
|
return xxx_messageInfo_HealthRequest.Size(m)
|
|
|
|
}
|
|
|
|
func (m *HealthRequest) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_HealthRequest.DiscardUnknown(m)
|
|
|
|
}
|
|
|
|
|
|
|
|
var xxx_messageInfo_HealthRequest proto.InternalMessageInfo
|
|
|
|
|
|
|
|
type HealthResponse struct {
|
|
|
|
// default: ok
|
|
|
|
Status string `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"`
|
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
|
XXX_unrecognized []byte `json:"-"`
|
|
|
|
XXX_sizecache int32 `json:"-"`
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *HealthResponse) Reset() { *m = HealthResponse{} }
|
|
|
|
func (m *HealthResponse) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*HealthResponse) ProtoMessage() {}
|
|
|
|
func (*HealthResponse) Descriptor() ([]byte, []int) {
|
2019-11-26 16:53:33 +03:00
|
|
|
return fileDescriptor_7cb19b1a05a6e0a9, []int{1}
|
2019-08-06 19:53:14 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
func (m *HealthResponse) XXX_Unmarshal(b []byte) error {
|
|
|
|
return xxx_messageInfo_HealthResponse.Unmarshal(m, b)
|
|
|
|
}
|
|
|
|
func (m *HealthResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
return xxx_messageInfo_HealthResponse.Marshal(b, m, deterministic)
|
|
|
|
}
|
|
|
|
func (m *HealthResponse) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_HealthResponse.Merge(m, src)
|
|
|
|
}
|
|
|
|
func (m *HealthResponse) XXX_Size() int {
|
|
|
|
return xxx_messageInfo_HealthResponse.Size(m)
|
|
|
|
}
|
|
|
|
func (m *HealthResponse) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_HealthResponse.DiscardUnknown(m)
|
|
|
|
}
|
|
|
|
|
|
|
|
var xxx_messageInfo_HealthResponse proto.InternalMessageInfo
|
|
|
|
|
|
|
|
func (m *HealthResponse) GetStatus() string {
|
|
|
|
if m != nil {
|
|
|
|
return m.Status
|
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
|
|
|
type StatsRequest struct {
|
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
|
XXX_unrecognized []byte `json:"-"`
|
|
|
|
XXX_sizecache int32 `json:"-"`
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *StatsRequest) Reset() { *m = StatsRequest{} }
|
|
|
|
func (m *StatsRequest) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*StatsRequest) ProtoMessage() {}
|
|
|
|
func (*StatsRequest) Descriptor() ([]byte, []int) {
|
2019-11-26 16:53:33 +03:00
|
|
|
return fileDescriptor_7cb19b1a05a6e0a9, []int{2}
|
2019-08-06 19:53:14 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
func (m *StatsRequest) XXX_Unmarshal(b []byte) error {
|
|
|
|
return xxx_messageInfo_StatsRequest.Unmarshal(m, b)
|
|
|
|
}
|
|
|
|
func (m *StatsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
return xxx_messageInfo_StatsRequest.Marshal(b, m, deterministic)
|
|
|
|
}
|
|
|
|
func (m *StatsRequest) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_StatsRequest.Merge(m, src)
|
|
|
|
}
|
|
|
|
func (m *StatsRequest) XXX_Size() int {
|
|
|
|
return xxx_messageInfo_StatsRequest.Size(m)
|
|
|
|
}
|
|
|
|
func (m *StatsRequest) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_StatsRequest.DiscardUnknown(m)
|
|
|
|
}
|
|
|
|
|
|
|
|
var xxx_messageInfo_StatsRequest proto.InternalMessageInfo
|
|
|
|
|
|
|
|
type StatsResponse struct {
|
|
|
|
// unix timestamp
|
|
|
|
Started uint64 `protobuf:"varint,1,opt,name=started,proto3" json:"started,omitempty"`
|
|
|
|
// in seconds
|
|
|
|
Uptime uint64 `protobuf:"varint,2,opt,name=uptime,proto3" json:"uptime,omitempty"`
|
|
|
|
// in bytes
|
|
|
|
Memory uint64 `protobuf:"varint,3,opt,name=memory,proto3" json:"memory,omitempty"`
|
|
|
|
// num threads
|
|
|
|
Threads uint64 `protobuf:"varint,4,opt,name=threads,proto3" json:"threads,omitempty"`
|
|
|
|
// total gc in nanoseconds
|
|
|
|
Gc uint64 `protobuf:"varint,5,opt,name=gc,proto3" json:"gc,omitempty"`
|
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
|
XXX_unrecognized []byte `json:"-"`
|
|
|
|
XXX_sizecache int32 `json:"-"`
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *StatsResponse) Reset() { *m = StatsResponse{} }
|
|
|
|
func (m *StatsResponse) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*StatsResponse) ProtoMessage() {}
|
|
|
|
func (*StatsResponse) Descriptor() ([]byte, []int) {
|
2019-11-26 16:53:33 +03:00
|
|
|
return fileDescriptor_7cb19b1a05a6e0a9, []int{3}
|
2019-08-06 19:53:14 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
func (m *StatsResponse) XXX_Unmarshal(b []byte) error {
|
|
|
|
return xxx_messageInfo_StatsResponse.Unmarshal(m, b)
|
|
|
|
}
|
|
|
|
func (m *StatsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
return xxx_messageInfo_StatsResponse.Marshal(b, m, deterministic)
|
|
|
|
}
|
|
|
|
func (m *StatsResponse) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_StatsResponse.Merge(m, src)
|
|
|
|
}
|
|
|
|
func (m *StatsResponse) XXX_Size() int {
|
|
|
|
return xxx_messageInfo_StatsResponse.Size(m)
|
|
|
|
}
|
|
|
|
func (m *StatsResponse) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_StatsResponse.DiscardUnknown(m)
|
|
|
|
}
|
|
|
|
|
|
|
|
var xxx_messageInfo_StatsResponse proto.InternalMessageInfo
|
|
|
|
|
|
|
|
func (m *StatsResponse) GetStarted() uint64 {
|
|
|
|
if m != nil {
|
|
|
|
return m.Started
|
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *StatsResponse) GetUptime() uint64 {
|
|
|
|
if m != nil {
|
|
|
|
return m.Uptime
|
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *StatsResponse) GetMemory() uint64 {
|
|
|
|
if m != nil {
|
|
|
|
return m.Memory
|
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *StatsResponse) GetThreads() uint64 {
|
|
|
|
if m != nil {
|
|
|
|
return m.Threads
|
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *StatsResponse) GetGc() uint64 {
|
|
|
|
if m != nil {
|
|
|
|
return m.Gc
|
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
|
|
|
func init() {
|
|
|
|
proto.RegisterType((*HealthRequest)(nil), "HealthRequest")
|
|
|
|
proto.RegisterType((*HealthResponse)(nil), "HealthResponse")
|
|
|
|
proto.RegisterType((*StatsRequest)(nil), "StatsRequest")
|
|
|
|
proto.RegisterType((*StatsResponse)(nil), "StatsResponse")
|
|
|
|
}
|
|
|
|
|
|
|
|
func init() {
|
2019-11-26 16:53:33 +03:00
|
|
|
proto.RegisterFile("github.com/micro/go-micro/debug/proto/debug.proto", fileDescriptor_7cb19b1a05a6e0a9)
|
2019-08-06 19:53:14 +03:00
|
|
|
}
|
|
|
|
|
2019-11-26 16:53:33 +03:00
|
|
|
var fileDescriptor_7cb19b1a05a6e0a9 = []byte{
|
|
|
|
// 237 bytes of a gzipped FileDescriptorProto
|
2019-08-06 19:53:14 +03:00
|
|
|
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x54, 0x90, 0x41, 0x4b, 0xc4, 0x30,
|
2019-11-26 16:53:33 +03:00
|
|
|
0x14, 0x84, 0x77, 0xeb, 0xb6, 0xe2, 0xc3, 0x66, 0x21, 0x07, 0x09, 0x7b, 0x92, 0x9c, 0x0a, 0x62,
|
|
|
|
0x8a, 0xfa, 0x17, 0x3c, 0x78, 0xae, 0x77, 0x21, 0x6d, 0x43, 0x5a, 0x30, 0xa6, 0x26, 0x2f, 0x07,
|
|
|
|
0xcf, 0xfe, 0x71, 0x69, 0x92, 0x82, 0xbd, 0xcd, 0x4c, 0x98, 0x21, 0xdf, 0x83, 0x27, 0x3d, 0xe3,
|
|
|
|
0x14, 0x7a, 0x31, 0x58, 0xd3, 0x9a, 0x79, 0x70, 0xb6, 0xd5, 0xf6, 0x31, 0x89, 0x51, 0xf5, 0x41,
|
|
|
|
0xb7, 0x8b, 0xb3, 0x98, 0xb5, 0x88, 0x9a, 0x9f, 0xa1, 0x7e, 0x53, 0xf2, 0x13, 0xa7, 0x4e, 0x7d,
|
|
|
|
0x07, 0xe5, 0x91, 0x37, 0x40, 0xb6, 0xc0, 0x2f, 0xf6, 0xcb, 0x2b, 0x7a, 0x07, 0x95, 0x47, 0x89,
|
|
|
|
0xc1, 0xb3, 0xe3, 0xfd, 0xb1, 0xb9, 0xe9, 0xb2, 0xe3, 0x04, 0x6e, 0xdf, 0x51, 0xa2, 0xdf, 0x9a,
|
|
|
|
0xbf, 0x47, 0xa8, 0x73, 0x90, 0x9b, 0x0c, 0xae, 0x3d, 0x4a, 0x87, 0x6a, 0x8c, 0xd5, 0x53, 0xb7,
|
|
|
|
0xd9, 0x75, 0x33, 0x2c, 0x38, 0x1b, 0xc5, 0x8a, 0xf8, 0x90, 0xdd, 0x9a, 0x1b, 0x65, 0xac, 0xfb,
|
|
|
|
0x61, 0x57, 0x29, 0x4f, 0x6e, 0x5d, 0xc2, 0xc9, 0x29, 0x39, 0x7a, 0x76, 0x4a, 0x4b, 0xd9, 0x52,
|
|
|
|
0x02, 0x85, 0x1e, 0x58, 0x19, 0xc3, 0x42, 0x0f, 0xcf, 0x1f, 0x50, 0xbe, 0xae, 0x7c, 0xf4, 0x01,
|
|
|
|
0xaa, 0x04, 0x42, 0x89, 0xd8, 0x21, 0x5e, 0xce, 0x62, 0x4f, 0xc8, 0x0f, 0xb4, 0x81, 0x32, 0x7e,
|
|
|
|
0x9d, 0xd6, 0xe2, 0x3f, 0xd3, 0x85, 0x88, 0x1d, 0x11, 0x3f, 0xf4, 0x55, 0xbc, 0xdb, 0xcb, 0x5f,
|
|
|
|
0x00, 0x00, 0x00, 0xff, 0xff, 0x20, 0xb8, 0xfe, 0x98, 0x6c, 0x01, 0x00, 0x00,
|
2019-08-06 19:53:14 +03:00
|
|
|
}
|