Documentation ¶
Index ¶
- Variables
- func NewDebugEndpoints() []*apipb.Endpoint
- func RegisterDebugHandler(s server.Server, hdlr DebugHandler, opts ...server.HandlerOption) error
- func RegisterDebugServer(s *grpc.Server, srv DebugServer)
- type CacheRequest
- func (*CacheRequest) Descriptor() ([]byte, []int)
- func (m *CacheRequest) Marshal() (dAtA []byte, err error)
- func (m *CacheRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *CacheRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*CacheRequest) ProtoMessage()
- func (m *CacheRequest) Reset()
- func (m *CacheRequest) Size() (n int)
- func (m *CacheRequest) String() string
- func (m *CacheRequest) Unmarshal(dAtA []byte) error
- func (m *CacheRequest) XXX_DiscardUnknown()
- func (m *CacheRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *CacheRequest) XXX_Merge(src proto.Message)
- func (m *CacheRequest) XXX_Size() int
- func (m *CacheRequest) XXX_Unmarshal(b []byte) error
- type CacheResponse
- func (*CacheResponse) Descriptor() ([]byte, []int)
- func (m *CacheResponse) GetValues() map[string]string
- func (m *CacheResponse) Marshal() (dAtA []byte, err error)
- func (m *CacheResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *CacheResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*CacheResponse) ProtoMessage()
- func (m *CacheResponse) Reset()
- func (m *CacheResponse) Size() (n int)
- func (m *CacheResponse) String() string
- func (m *CacheResponse) Unmarshal(dAtA []byte) error
- func (m *CacheResponse) XXX_DiscardUnknown()
- func (m *CacheResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *CacheResponse) XXX_Merge(src proto.Message)
- func (m *CacheResponse) XXX_Size() int
- func (m *CacheResponse) XXX_Unmarshal(b []byte) error
- type DebugClient
- type DebugHandler
- type DebugServer
- type DebugService
- type Debug_LogClient
- type Debug_LogServer
- type Debug_LogService
- type Debug_LogStream
- type HealthRequest
- func (*HealthRequest) Descriptor() ([]byte, []int)
- func (m *HealthRequest) GetService() string
- func (m *HealthRequest) Marshal() (dAtA []byte, err error)
- func (m *HealthRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *HealthRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*HealthRequest) ProtoMessage()
- func (m *HealthRequest) Reset()
- func (m *HealthRequest) Size() (n int)
- func (m *HealthRequest) String() string
- func (m *HealthRequest) Unmarshal(dAtA []byte) error
- func (m *HealthRequest) XXX_DiscardUnknown()
- func (m *HealthRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *HealthRequest) XXX_Merge(src proto.Message)
- func (m *HealthRequest) XXX_Size() int
- func (m *HealthRequest) XXX_Unmarshal(b []byte) error
- type HealthResponse
- func (*HealthResponse) Descriptor() ([]byte, []int)
- func (m *HealthResponse) GetStatus() string
- func (m *HealthResponse) Marshal() (dAtA []byte, err error)
- func (m *HealthResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *HealthResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*HealthResponse) ProtoMessage()
- func (m *HealthResponse) Reset()
- func (m *HealthResponse) Size() (n int)
- func (m *HealthResponse) String() string
- func (m *HealthResponse) Unmarshal(dAtA []byte) error
- func (m *HealthResponse) XXX_DiscardUnknown()
- func (m *HealthResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *HealthResponse) XXX_Merge(src proto.Message)
- func (m *HealthResponse) XXX_Size() int
- func (m *HealthResponse) XXX_Unmarshal(b []byte) error
- type LogRequest
- func (*LogRequest) Descriptor() ([]byte, []int)
- func (m *LogRequest) GetCount() int64
- func (m *LogRequest) GetService() string
- func (m *LogRequest) GetSince() int64
- func (m *LogRequest) GetStream() bool
- func (m *LogRequest) Marshal() (dAtA []byte, err error)
- func (m *LogRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *LogRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*LogRequest) ProtoMessage()
- func (m *LogRequest) Reset()
- func (m *LogRequest) Size() (n int)
- func (m *LogRequest) String() string
- func (m *LogRequest) Unmarshal(dAtA []byte) error
- func (m *LogRequest) XXX_DiscardUnknown()
- func (m *LogRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *LogRequest) XXX_Merge(src proto.Message)
- func (m *LogRequest) XXX_Size() int
- func (m *LogRequest) XXX_Unmarshal(b []byte) error
- type Record
- func (*Record) Descriptor() ([]byte, []int)
- func (m *Record) GetMessage() string
- func (m *Record) GetMetadata() map[string]string
- func (m *Record) GetTimestamp() int64
- func (m *Record) Marshal() (dAtA []byte, err error)
- func (m *Record) MarshalTo(dAtA []byte) (int, error)
- func (m *Record) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Record) ProtoMessage()
- func (m *Record) Reset()
- func (m *Record) Size() (n int)
- func (m *Record) String() string
- func (m *Record) Unmarshal(dAtA []byte) error
- func (m *Record) XXX_DiscardUnknown()
- func (m *Record) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Record) XXX_Merge(src proto.Message)
- func (m *Record) XXX_Size() int
- func (m *Record) XXX_Unmarshal(b []byte) error
- type Span
- func (*Span) Descriptor() ([]byte, []int)
- func (m *Span) GetDuration() uint64
- func (m *Span) GetId() string
- func (m *Span) GetMetadata() map[string]string
- func (m *Span) GetName() string
- func (m *Span) GetParent() string
- func (m *Span) GetStarted() uint64
- func (m *Span) GetTrace() string
- func (m *Span) GetType() SpanType
- func (m *Span) Marshal() (dAtA []byte, err error)
- func (m *Span) MarshalTo(dAtA []byte) (int, error)
- func (m *Span) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Span) ProtoMessage()
- func (m *Span) Reset()
- func (m *Span) Size() (n int)
- func (m *Span) String() string
- func (m *Span) Unmarshal(dAtA []byte) error
- func (m *Span) XXX_DiscardUnknown()
- func (m *Span) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Span) XXX_Merge(src proto.Message)
- func (m *Span) XXX_Size() int
- func (m *Span) XXX_Unmarshal(b []byte) error
- type SpanType
- type StatsRequest
- func (*StatsRequest) Descriptor() ([]byte, []int)
- func (m *StatsRequest) GetService() string
- func (m *StatsRequest) Marshal() (dAtA []byte, err error)
- func (m *StatsRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *StatsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*StatsRequest) ProtoMessage()
- func (m *StatsRequest) Reset()
- func (m *StatsRequest) Size() (n int)
- func (m *StatsRequest) String() string
- func (m *StatsRequest) Unmarshal(dAtA []byte) error
- func (m *StatsRequest) XXX_DiscardUnknown()
- func (m *StatsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *StatsRequest) XXX_Merge(src proto.Message)
- func (m *StatsRequest) XXX_Size() int
- func (m *StatsRequest) XXX_Unmarshal(b []byte) error
- type StatsResponse
- func (*StatsResponse) Descriptor() ([]byte, []int)
- func (m *StatsResponse) GetErrors() uint64
- func (m *StatsResponse) GetGc() uint64
- func (m *StatsResponse) GetMemory() uint64
- func (m *StatsResponse) GetRequests() uint64
- func (m *StatsResponse) GetStarted() uint64
- func (m *StatsResponse) GetThreads() uint64
- func (m *StatsResponse) GetTimestamp() uint64
- func (m *StatsResponse) GetUptime() uint64
- func (m *StatsResponse) Marshal() (dAtA []byte, err error)
- func (m *StatsResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *StatsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*StatsResponse) ProtoMessage()
- func (m *StatsResponse) Reset()
- func (m *StatsResponse) Size() (n int)
- func (m *StatsResponse) String() string
- func (m *StatsResponse) Unmarshal(dAtA []byte) error
- func (m *StatsResponse) XXX_DiscardUnknown()
- func (m *StatsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *StatsResponse) XXX_Merge(src proto.Message)
- func (m *StatsResponse) XXX_Size() int
- func (m *StatsResponse) XXX_Unmarshal(b []byte) error
- type TraceRequest
- func (*TraceRequest) Descriptor() ([]byte, []int)
- func (m *TraceRequest) GetId() string
- func (m *TraceRequest) Marshal() (dAtA []byte, err error)
- func (m *TraceRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *TraceRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*TraceRequest) ProtoMessage()
- func (m *TraceRequest) Reset()
- func (m *TraceRequest) Size() (n int)
- func (m *TraceRequest) String() string
- func (m *TraceRequest) Unmarshal(dAtA []byte) error
- func (m *TraceRequest) XXX_DiscardUnknown()
- func (m *TraceRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *TraceRequest) XXX_Merge(src proto.Message)
- func (m *TraceRequest) XXX_Size() int
- func (m *TraceRequest) XXX_Unmarshal(b []byte) error
- type TraceResponse
- func (*TraceResponse) Descriptor() ([]byte, []int)
- func (m *TraceResponse) GetSpans() []*Span
- func (m *TraceResponse) Marshal() (dAtA []byte, err error)
- func (m *TraceResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *TraceResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*TraceResponse) ProtoMessage()
- func (m *TraceResponse) Reset()
- func (m *TraceResponse) Size() (n int)
- func (m *TraceResponse) String() string
- func (m *TraceResponse) Unmarshal(dAtA []byte) error
- func (m *TraceResponse) XXX_DiscardUnknown()
- func (m *TraceResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *TraceResponse) XXX_Merge(src proto.Message)
- func (m *TraceResponse) XXX_Size() int
- func (m *TraceResponse) XXX_Unmarshal(b []byte) error
- type UnimplementedDebugServer
- func (*UnimplementedDebugServer) Cache(ctx context.Context, req *CacheRequest) (*CacheResponse, error)
- func (*UnimplementedDebugServer) Health(ctx context.Context, req *HealthRequest) (*HealthResponse, error)
- func (*UnimplementedDebugServer) Log(req *LogRequest, srv Debug_LogServer) error
- func (*UnimplementedDebugServer) Stats(ctx context.Context, req *StatsRequest) (*StatsResponse, error)
- func (*UnimplementedDebugServer) Trace(ctx context.Context, req *TraceRequest) (*TraceResponse, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalidLengthDebug = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowDebug = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupDebug = fmt.Errorf("proto: unexpected end of group") )
View Source
var SpanType_name = map[int32]string{
0: "INBOUND",
1: "OUTBOUND",
}
View Source
var SpanType_value = map[string]int32{
"INBOUND": 0,
"OUTBOUND": 1,
}
Functions ¶
func RegisterDebugHandler ¶
func RegisterDebugHandler(s server.Server, hdlr DebugHandler, opts ...server.HandlerOption) error
func RegisterDebugServer ¶
func RegisterDebugServer(s *grpc.Server, srv DebugServer)
Types ¶
type CacheRequest ¶
type CacheRequest struct { }
func (*CacheRequest) Descriptor ¶
func (*CacheRequest) Descriptor() ([]byte, []int)
func (*CacheRequest) Marshal ¶
func (m *CacheRequest) Marshal() (dAtA []byte, err error)
func (*CacheRequest) MarshalToSizedBuffer ¶
func (m *CacheRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*CacheRequest) ProtoMessage ¶
func (*CacheRequest) ProtoMessage()
func (*CacheRequest) Reset ¶
func (m *CacheRequest) Reset()
func (*CacheRequest) Size ¶
func (m *CacheRequest) Size() (n int)
func (*CacheRequest) String ¶
func (m *CacheRequest) String() string
func (*CacheRequest) Unmarshal ¶
func (m *CacheRequest) Unmarshal(dAtA []byte) error
func (*CacheRequest) XXX_DiscardUnknown ¶
func (m *CacheRequest) XXX_DiscardUnknown()
func (*CacheRequest) XXX_Marshal ¶
func (m *CacheRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*CacheRequest) XXX_Merge ¶
func (m *CacheRequest) XXX_Merge(src proto.Message)
func (*CacheRequest) XXX_Size ¶
func (m *CacheRequest) XXX_Size() int
func (*CacheRequest) XXX_Unmarshal ¶
func (m *CacheRequest) XXX_Unmarshal(b []byte) error
type CacheResponse ¶
type CacheResponse struct {
Values map[string]string `` /* 153-byte string literal not displayed */
}
func (*CacheResponse) Descriptor ¶
func (*CacheResponse) Descriptor() ([]byte, []int)
func (*CacheResponse) GetValues ¶
func (m *CacheResponse) GetValues() map[string]string
func (*CacheResponse) Marshal ¶
func (m *CacheResponse) Marshal() (dAtA []byte, err error)
func (*CacheResponse) MarshalToSizedBuffer ¶
func (m *CacheResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*CacheResponse) ProtoMessage ¶
func (*CacheResponse) ProtoMessage()
func (*CacheResponse) Reset ¶
func (m *CacheResponse) Reset()
func (*CacheResponse) Size ¶
func (m *CacheResponse) Size() (n int)
func (*CacheResponse) String ¶
func (m *CacheResponse) String() string
func (*CacheResponse) Unmarshal ¶
func (m *CacheResponse) Unmarshal(dAtA []byte) error
func (*CacheResponse) XXX_DiscardUnknown ¶
func (m *CacheResponse) XXX_DiscardUnknown()
func (*CacheResponse) XXX_Marshal ¶
func (m *CacheResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*CacheResponse) XXX_Merge ¶
func (m *CacheResponse) XXX_Merge(src proto.Message)
func (*CacheResponse) XXX_Size ¶
func (m *CacheResponse) XXX_Size() int
func (*CacheResponse) XXX_Unmarshal ¶
func (m *CacheResponse) XXX_Unmarshal(b []byte) error
type DebugClient ¶
type DebugClient interface { Log(ctx context.Context, in *LogRequest, opts ...grpc.CallOption) (Debug_LogClient, error) Health(ctx context.Context, in *HealthRequest, opts ...grpc.CallOption) (*HealthResponse, error) Stats(ctx context.Context, in *StatsRequest, opts ...grpc.CallOption) (*StatsResponse, error) Trace(ctx context.Context, in *TraceRequest, opts ...grpc.CallOption) (*TraceResponse, error) Cache(ctx context.Context, in *CacheRequest, opts ...grpc.CallOption) (*CacheResponse, error) }
DebugClient is the client API for Debug service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewDebugClient ¶
func NewDebugClient(cc *grpc.ClientConn) DebugClient
type DebugHandler ¶
type DebugHandler interface { Log(context.Context, *LogRequest, Debug_LogStream) error Health(context.Context, *HealthRequest, *HealthResponse) error Stats(context.Context, *StatsRequest, *StatsResponse) error Trace(context.Context, *TraceRequest, *TraceResponse) error Cache(context.Context, *CacheRequest, *CacheResponse) error }
Server API for Debug service
type DebugServer ¶
type DebugServer interface { Log(*LogRequest, Debug_LogServer) error Health(context.Context, *HealthRequest) (*HealthResponse, error) Stats(context.Context, *StatsRequest) (*StatsResponse, error) Trace(context.Context, *TraceRequest) (*TraceResponse, error) Cache(context.Context, *CacheRequest) (*CacheResponse, error) }
DebugServer is the server API for Debug service.
type DebugService ¶
type DebugService interface { Log(ctx context.Context, in *LogRequest, opts ...client.CallOption) (Debug_LogService, error) Health(ctx context.Context, in *HealthRequest, opts ...client.CallOption) (*HealthResponse, error) Stats(ctx context.Context, in *StatsRequest, opts ...client.CallOption) (*StatsResponse, error) Trace(ctx context.Context, in *TraceRequest, opts ...client.CallOption) (*TraceResponse, error) Cache(ctx context.Context, in *CacheRequest, opts ...client.CallOption) (*CacheResponse, error) }
Client API for Debug service
func NewDebugService ¶
func NewDebugService(name string, c client.Client) DebugService
type Debug_LogClient ¶
type Debug_LogClient interface { Recv() (*Record, error) grpc.ClientStream }
type Debug_LogServer ¶
type Debug_LogServer interface { Send(*Record) error grpc.ServerStream }
type Debug_LogService ¶
type Debug_LogStream ¶
type HealthRequest ¶
type HealthRequest struct { // optional service name Service string `protobuf:"bytes,1,opt,name=service,proto3" json:"service,omitempty"` }
func (*HealthRequest) Descriptor ¶
func (*HealthRequest) Descriptor() ([]byte, []int)
func (*HealthRequest) GetService ¶
func (m *HealthRequest) GetService() string
func (*HealthRequest) Marshal ¶
func (m *HealthRequest) Marshal() (dAtA []byte, err error)
func (*HealthRequest) MarshalToSizedBuffer ¶
func (m *HealthRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*HealthRequest) ProtoMessage ¶
func (*HealthRequest) ProtoMessage()
func (*HealthRequest) Reset ¶
func (m *HealthRequest) Reset()
func (*HealthRequest) Size ¶
func (m *HealthRequest) Size() (n int)
func (*HealthRequest) String ¶
func (m *HealthRequest) String() string
func (*HealthRequest) Unmarshal ¶
func (m *HealthRequest) Unmarshal(dAtA []byte) error
func (*HealthRequest) XXX_DiscardUnknown ¶
func (m *HealthRequest) XXX_DiscardUnknown()
func (*HealthRequest) XXX_Marshal ¶
func (m *HealthRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*HealthRequest) XXX_Merge ¶
func (m *HealthRequest) XXX_Merge(src proto.Message)
func (*HealthRequest) XXX_Size ¶
func (m *HealthRequest) XXX_Size() int
func (*HealthRequest) XXX_Unmarshal ¶
func (m *HealthRequest) XXX_Unmarshal(b []byte) error
type HealthResponse ¶
type HealthResponse struct { // default: ok Status string `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` }
func (*HealthResponse) Descriptor ¶
func (*HealthResponse) Descriptor() ([]byte, []int)
func (*HealthResponse) GetStatus ¶
func (m *HealthResponse) GetStatus() string
func (*HealthResponse) Marshal ¶
func (m *HealthResponse) Marshal() (dAtA []byte, err error)
func (*HealthResponse) MarshalToSizedBuffer ¶
func (m *HealthResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*HealthResponse) ProtoMessage ¶
func (*HealthResponse) ProtoMessage()
func (*HealthResponse) Reset ¶
func (m *HealthResponse) Reset()
func (*HealthResponse) Size ¶
func (m *HealthResponse) Size() (n int)
func (*HealthResponse) String ¶
func (m *HealthResponse) String() string
func (*HealthResponse) Unmarshal ¶
func (m *HealthResponse) Unmarshal(dAtA []byte) error
func (*HealthResponse) XXX_DiscardUnknown ¶
func (m *HealthResponse) XXX_DiscardUnknown()
func (*HealthResponse) XXX_Marshal ¶
func (m *HealthResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*HealthResponse) XXX_Merge ¶
func (m *HealthResponse) XXX_Merge(src proto.Message)
func (*HealthResponse) XXX_Size ¶
func (m *HealthResponse) XXX_Size() int
func (*HealthResponse) XXX_Unmarshal ¶
func (m *HealthResponse) XXX_Unmarshal(b []byte) error
type LogRequest ¶
type LogRequest struct { // service to request logs for Service string `protobuf:"bytes,1,opt,name=service,proto3" json:"service,omitempty"` // stream records continuously Stream bool `protobuf:"varint,2,opt,name=stream,proto3" json:"stream,omitempty"` // count of records to request Count int64 `protobuf:"varint,3,opt,name=count,proto3" json:"count,omitempty"` // relative time in seconds // before the current time // from which to show logs Since int64 `protobuf:"varint,4,opt,name=since,proto3" json:"since,omitempty"` }
LogRequest requests service logs
func (*LogRequest) Descriptor ¶
func (*LogRequest) Descriptor() ([]byte, []int)
func (*LogRequest) GetCount ¶
func (m *LogRequest) GetCount() int64
func (*LogRequest) GetService ¶
func (m *LogRequest) GetService() string
func (*LogRequest) GetSince ¶
func (m *LogRequest) GetSince() int64
func (*LogRequest) GetStream ¶
func (m *LogRequest) GetStream() bool
func (*LogRequest) Marshal ¶
func (m *LogRequest) Marshal() (dAtA []byte, err error)
func (*LogRequest) MarshalToSizedBuffer ¶
func (m *LogRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*LogRequest) ProtoMessage ¶
func (*LogRequest) ProtoMessage()
func (*LogRequest) Reset ¶
func (m *LogRequest) Reset()
func (*LogRequest) Size ¶
func (m *LogRequest) Size() (n int)
func (*LogRequest) String ¶
func (m *LogRequest) String() string
func (*LogRequest) Unmarshal ¶
func (m *LogRequest) Unmarshal(dAtA []byte) error
func (*LogRequest) XXX_DiscardUnknown ¶
func (m *LogRequest) XXX_DiscardUnknown()
func (*LogRequest) XXX_Marshal ¶
func (m *LogRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*LogRequest) XXX_Merge ¶
func (m *LogRequest) XXX_Merge(src proto.Message)
func (*LogRequest) XXX_Size ¶
func (m *LogRequest) XXX_Size() int
func (*LogRequest) XXX_Unmarshal ¶
func (m *LogRequest) XXX_Unmarshal(b []byte) error
type Record ¶
type Record struct { // timestamp of log record Timestamp int64 `protobuf:"varint,1,opt,name=timestamp,proto3" json:"timestamp,omitempty"` // record metadata Metadata map[string]string `` /* 157-byte string literal not displayed */ // message Message string `protobuf:"bytes,3,opt,name=message,proto3" json:"message,omitempty"` }
Record is service log record
func (*Record) Descriptor ¶
func (*Record) GetMessage ¶
func (*Record) GetMetadata ¶
func (*Record) GetTimestamp ¶
func (*Record) MarshalToSizedBuffer ¶
func (*Record) ProtoMessage ¶
func (*Record) ProtoMessage()
func (*Record) XXX_DiscardUnknown ¶
func (m *Record) XXX_DiscardUnknown()
func (*Record) XXX_Marshal ¶
func (*Record) XXX_Unmarshal ¶
type Span ¶
type Span struct { // the trace id Trace string `protobuf:"bytes,1,opt,name=trace,proto3" json:"trace,omitempty"` // id of the span Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"` // parent span Parent string `protobuf:"bytes,3,opt,name=parent,proto3" json:"parent,omitempty"` // name of the resource Name string `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"` // time of start in nanoseconds Started uint64 `protobuf:"varint,5,opt,name=started,proto3" json:"started,omitempty"` // duration of the execution in nanoseconds Duration uint64 `protobuf:"varint,6,opt,name=duration,proto3" json:"duration,omitempty"` // associated metadata Metadata map[string]string `` /* 157-byte string literal not displayed */ Type SpanType `protobuf:"varint,8,opt,name=type,proto3,enum=debug.SpanType" json:"type,omitempty"` }
func (*Span) Descriptor ¶
func (*Span) GetDuration ¶
func (*Span) GetMetadata ¶
func (*Span) GetStarted ¶
func (*Span) ProtoMessage ¶
func (*Span) ProtoMessage()
func (*Span) XXX_DiscardUnknown ¶
func (m *Span) XXX_DiscardUnknown()
func (*Span) XXX_Unmarshal ¶
type StatsRequest ¶
type StatsRequest struct { // optional service name Service string `protobuf:"bytes,1,opt,name=service,proto3" json:"service,omitempty"` }
func (*StatsRequest) Descriptor ¶
func (*StatsRequest) Descriptor() ([]byte, []int)
func (*StatsRequest) GetService ¶
func (m *StatsRequest) GetService() string
func (*StatsRequest) Marshal ¶
func (m *StatsRequest) Marshal() (dAtA []byte, err error)
func (*StatsRequest) MarshalToSizedBuffer ¶
func (m *StatsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*StatsRequest) ProtoMessage ¶
func (*StatsRequest) ProtoMessage()
func (*StatsRequest) Reset ¶
func (m *StatsRequest) Reset()
func (*StatsRequest) Size ¶
func (m *StatsRequest) Size() (n int)
func (*StatsRequest) String ¶
func (m *StatsRequest) String() string
func (*StatsRequest) Unmarshal ¶
func (m *StatsRequest) Unmarshal(dAtA []byte) error
func (*StatsRequest) XXX_DiscardUnknown ¶
func (m *StatsRequest) XXX_DiscardUnknown()
func (*StatsRequest) XXX_Marshal ¶
func (m *StatsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*StatsRequest) XXX_Merge ¶
func (m *StatsRequest) XXX_Merge(src proto.Message)
func (*StatsRequest) XXX_Size ¶
func (m *StatsRequest) XXX_Size() int
func (*StatsRequest) XXX_Unmarshal ¶
func (m *StatsRequest) XXX_Unmarshal(b []byte) error
type StatsResponse ¶
type StatsResponse struct { // timestamp of recording Timestamp uint64 `protobuf:"varint,1,opt,name=timestamp,proto3" json:"timestamp,omitempty"` // unix timestamp Started uint64 `protobuf:"varint,2,opt,name=started,proto3" json:"started,omitempty"` // in seconds Uptime uint64 `protobuf:"varint,3,opt,name=uptime,proto3" json:"uptime,omitempty"` // in bytes Memory uint64 `protobuf:"varint,4,opt,name=memory,proto3" json:"memory,omitempty"` // num threads Threads uint64 `protobuf:"varint,5,opt,name=threads,proto3" json:"threads,omitempty"` // total gc in nanoseconds Gc uint64 `protobuf:"varint,6,opt,name=gc,proto3" json:"gc,omitempty"` // total number of requests Requests uint64 `protobuf:"varint,7,opt,name=requests,proto3" json:"requests,omitempty"` // total number of errors Errors uint64 `protobuf:"varint,8,opt,name=errors,proto3" json:"errors,omitempty"` }
func (*StatsResponse) Descriptor ¶
func (*StatsResponse) Descriptor() ([]byte, []int)
func (*StatsResponse) GetErrors ¶
func (m *StatsResponse) GetErrors() uint64
func (*StatsResponse) GetGc ¶
func (m *StatsResponse) GetGc() uint64
func (*StatsResponse) GetMemory ¶
func (m *StatsResponse) GetMemory() uint64
func (*StatsResponse) GetRequests ¶
func (m *StatsResponse) GetRequests() uint64
func (*StatsResponse) GetStarted ¶
func (m *StatsResponse) GetStarted() uint64
func (*StatsResponse) GetThreads ¶
func (m *StatsResponse) GetThreads() uint64
func (*StatsResponse) GetTimestamp ¶
func (m *StatsResponse) GetTimestamp() uint64
func (*StatsResponse) GetUptime ¶
func (m *StatsResponse) GetUptime() uint64
func (*StatsResponse) Marshal ¶
func (m *StatsResponse) Marshal() (dAtA []byte, err error)
func (*StatsResponse) MarshalToSizedBuffer ¶
func (m *StatsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*StatsResponse) ProtoMessage ¶
func (*StatsResponse) ProtoMessage()
func (*StatsResponse) Reset ¶
func (m *StatsResponse) Reset()
func (*StatsResponse) Size ¶
func (m *StatsResponse) Size() (n int)
func (*StatsResponse) String ¶
func (m *StatsResponse) String() string
func (*StatsResponse) Unmarshal ¶
func (m *StatsResponse) Unmarshal(dAtA []byte) error
func (*StatsResponse) XXX_DiscardUnknown ¶
func (m *StatsResponse) XXX_DiscardUnknown()
func (*StatsResponse) XXX_Marshal ¶
func (m *StatsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*StatsResponse) XXX_Merge ¶
func (m *StatsResponse) XXX_Merge(src proto.Message)
func (*StatsResponse) XXX_Size ¶
func (m *StatsResponse) XXX_Size() int
func (*StatsResponse) XXX_Unmarshal ¶
func (m *StatsResponse) XXX_Unmarshal(b []byte) error
type TraceRequest ¶
type TraceRequest struct { // trace id to retrieve Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` }
func (*TraceRequest) Descriptor ¶
func (*TraceRequest) Descriptor() ([]byte, []int)
func (*TraceRequest) GetId ¶
func (m *TraceRequest) GetId() string
func (*TraceRequest) Marshal ¶
func (m *TraceRequest) Marshal() (dAtA []byte, err error)
func (*TraceRequest) MarshalToSizedBuffer ¶
func (m *TraceRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*TraceRequest) ProtoMessage ¶
func (*TraceRequest) ProtoMessage()
func (*TraceRequest) Reset ¶
func (m *TraceRequest) Reset()
func (*TraceRequest) Size ¶
func (m *TraceRequest) Size() (n int)
func (*TraceRequest) String ¶
func (m *TraceRequest) String() string
func (*TraceRequest) Unmarshal ¶
func (m *TraceRequest) Unmarshal(dAtA []byte) error
func (*TraceRequest) XXX_DiscardUnknown ¶
func (m *TraceRequest) XXX_DiscardUnknown()
func (*TraceRequest) XXX_Marshal ¶
func (m *TraceRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*TraceRequest) XXX_Merge ¶
func (m *TraceRequest) XXX_Merge(src proto.Message)
func (*TraceRequest) XXX_Size ¶
func (m *TraceRequest) XXX_Size() int
func (*TraceRequest) XXX_Unmarshal ¶
func (m *TraceRequest) XXX_Unmarshal(b []byte) error
type TraceResponse ¶
type TraceResponse struct {
Spans []*Span `protobuf:"bytes,1,rep,name=spans,proto3" json:"spans,omitempty"`
}
func (*TraceResponse) Descriptor ¶
func (*TraceResponse) Descriptor() ([]byte, []int)
func (*TraceResponse) GetSpans ¶
func (m *TraceResponse) GetSpans() []*Span
func (*TraceResponse) Marshal ¶
func (m *TraceResponse) Marshal() (dAtA []byte, err error)
func (*TraceResponse) MarshalToSizedBuffer ¶
func (m *TraceResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*TraceResponse) ProtoMessage ¶
func (*TraceResponse) ProtoMessage()
func (*TraceResponse) Reset ¶
func (m *TraceResponse) Reset()
func (*TraceResponse) Size ¶
func (m *TraceResponse) Size() (n int)
func (*TraceResponse) String ¶
func (m *TraceResponse) String() string
func (*TraceResponse) Unmarshal ¶
func (m *TraceResponse) Unmarshal(dAtA []byte) error
func (*TraceResponse) XXX_DiscardUnknown ¶
func (m *TraceResponse) XXX_DiscardUnknown()
func (*TraceResponse) XXX_Marshal ¶
func (m *TraceResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*TraceResponse) XXX_Merge ¶
func (m *TraceResponse) XXX_Merge(src proto.Message)
func (*TraceResponse) XXX_Size ¶
func (m *TraceResponse) XXX_Size() int
func (*TraceResponse) XXX_Unmarshal ¶
func (m *TraceResponse) XXX_Unmarshal(b []byte) error
type UnimplementedDebugServer ¶
type UnimplementedDebugServer struct { }
UnimplementedDebugServer can be embedded to have forward compatible implementations.
func (*UnimplementedDebugServer) Cache ¶
func (*UnimplementedDebugServer) Cache(ctx context.Context, req *CacheRequest) (*CacheResponse, error)
func (*UnimplementedDebugServer) Health ¶
func (*UnimplementedDebugServer) Health(ctx context.Context, req *HealthRequest) (*HealthResponse, error)
func (*UnimplementedDebugServer) Log ¶
func (*UnimplementedDebugServer) Log(req *LogRequest, srv Debug_LogServer) error
func (*UnimplementedDebugServer) Stats ¶
func (*UnimplementedDebugServer) Stats(ctx context.Context, req *StatsRequest) (*StatsResponse, error)
func (*UnimplementedDebugServer) Trace ¶
func (*UnimplementedDebugServer) Trace(ctx context.Context, req *TraceRequest) (*TraceResponse, error)
Click to show internal directories.
Click to hide internal directories.