debug - ActiveState ActiveGo 1.8
...

Package debug

import "github.com/micro/go-micro/server/debug/proto"
Overview
Index

Overview ▾

Package debug is a generated protocol buffer package.

It is generated from these files:

github.com/micro/go-micro/server/debug/proto/debug.proto

It has these top-level messages:

HealthRequest
HealthResponse
StatsRequest
StatsResponse

type HealthRequest

type HealthRequest struct {
}

func (*HealthRequest) Descriptor

func (*HealthRequest) Descriptor() ([]byte, []int)

func (*HealthRequest) ProtoMessage

func (*HealthRequest) ProtoMessage()

func (*HealthRequest) Reset

func (m *HealthRequest) Reset()

func (*HealthRequest) String

func (m *HealthRequest) String() string

type HealthResponse

type HealthResponse struct {
    // default: ok
    Status string `protobuf:"bytes,1,opt,name=status" json:"status,omitempty"`
}

func (*HealthResponse) Descriptor

func (*HealthResponse) Descriptor() ([]byte, []int)

func (*HealthResponse) ProtoMessage

func (*HealthResponse) ProtoMessage()

func (*HealthResponse) Reset

func (m *HealthResponse) Reset()

func (*HealthResponse) String

func (m *HealthResponse) String() string

type StatsRequest

type StatsRequest struct {
}

func (*StatsRequest) Descriptor

func (*StatsRequest) Descriptor() ([]byte, []int)

func (*StatsRequest) ProtoMessage

func (*StatsRequest) ProtoMessage()

func (*StatsRequest) Reset

func (m *StatsRequest) Reset()

func (*StatsRequest) String

func (m *StatsRequest) String() string

type StatsResponse

type StatsResponse struct {
    // unix timestamp
    Started uint64 `protobuf:"varint,1,opt,name=started" json:"started,omitempty"`
    // in seconds
    Uptime uint64 `protobuf:"varint,2,opt,name=uptime" json:"uptime,omitempty"`
    // in bytes
    Memory uint64 `protobuf:"varint,3,opt,name=memory" json:"memory,omitempty"`
    // num threads
    Threads uint64 `protobuf:"varint,4,opt,name=threads" json:"threads,omitempty"`
    // in nanoseconds
    Gc uint64 `protobuf:"varint,5,opt,name=gc" json:"gc,omitempty"`
}

func (*StatsResponse) Descriptor

func (*StatsResponse) Descriptor() ([]byte, []int)

func (*StatsResponse) ProtoMessage

func (*StatsResponse) ProtoMessage()

func (*StatsResponse) Reset

func (m *StatsResponse) Reset()

func (*StatsResponse) String

func (m *StatsResponse) String() string