v1

package
v0.0.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 4, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthTracepoint        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowTracepoint          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupTracepoint = fmt.Errorf("proto: unexpected end of group")
)

Functions

func RegisterSnapshotServiceServer

func RegisterSnapshotServiceServer(s *grpc.Server, srv SnapshotServiceServer)

Types

type Snapshot

type Snapshot struct {
	Id            string               `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Tracepoint    *TracePointConfig    `protobuf:"bytes,2,opt,name=tracepoint,proto3" json:"tracepoint,omitempty"`
	VarLookup     map[string]*Variable `` /* 176-byte string literal not displayed */
	Ts            int64                `protobuf:"varint,4,opt,name=ts,proto3" json:"ts,omitempty"`
	Frames        []*StackFrame        `protobuf:"bytes,5,rep,name=frames,proto3" json:"frames,omitempty"`
	Watches       []*WatchResult       `protobuf:"bytes,6,rep,name=watches,proto3" json:"watches,omitempty"`
	Attributes    []*v1.KeyValue       `protobuf:"bytes,7,rep,name=attributes,proto3" json:"attributes,omitempty"`
	NanosDuration int64                `protobuf:"varint,8,opt,name=nanos_duration,json=nanosDuration,proto3" json:"nanos_duration,omitempty"`
	Resource      []*v1.KeyValue       `protobuf:"bytes,9,rep,name=resource,proto3" json:"resource,omitempty"`
}

func (*Snapshot) Descriptor

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

func (*Snapshot) GetAttributes

func (m *Snapshot) GetAttributes() []*v1.KeyValue

func (*Snapshot) GetFrames

func (m *Snapshot) GetFrames() []*StackFrame

func (*Snapshot) GetId

func (m *Snapshot) GetId() string

func (*Snapshot) GetNanosDuration

func (m *Snapshot) GetNanosDuration() int64

func (*Snapshot) GetResource

func (m *Snapshot) GetResource() []*v1.KeyValue

func (*Snapshot) GetTracepoint

func (m *Snapshot) GetTracepoint() *TracePointConfig

func (*Snapshot) GetTs

func (m *Snapshot) GetTs() int64

func (*Snapshot) GetVarLookup

func (m *Snapshot) GetVarLookup() map[string]*Variable

func (*Snapshot) GetWatches

func (m *Snapshot) GetWatches() []*WatchResult

func (*Snapshot) Marshal

func (m *Snapshot) Marshal() (dAtA []byte, err error)

func (*Snapshot) MarshalTo

func (m *Snapshot) MarshalTo(dAtA []byte) (int, error)

func (*Snapshot) MarshalToSizedBuffer

func (m *Snapshot) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Snapshot) ProtoMessage

func (*Snapshot) ProtoMessage()

func (*Snapshot) Reset

func (m *Snapshot) Reset()

func (*Snapshot) Size

func (m *Snapshot) Size() (n int)

func (*Snapshot) String

func (m *Snapshot) String() string

func (*Snapshot) Unmarshal

func (m *Snapshot) Unmarshal(dAtA []byte) error

func (*Snapshot) XXX_DiscardUnknown

func (m *Snapshot) XXX_DiscardUnknown()

func (*Snapshot) XXX_Marshal

func (m *Snapshot) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Snapshot) XXX_Merge

func (m *Snapshot) XXX_Merge(src proto.Message)

func (*Snapshot) XXX_Size

func (m *Snapshot) XXX_Size() int

func (*Snapshot) XXX_Unmarshal

func (m *Snapshot) XXX_Unmarshal(b []byte) error

type SnapshotResponse

type SnapshotResponse struct {
}

func (*SnapshotResponse) Descriptor

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

func (*SnapshotResponse) Marshal

func (m *SnapshotResponse) Marshal() (dAtA []byte, err error)

func (*SnapshotResponse) MarshalTo

func (m *SnapshotResponse) MarshalTo(dAtA []byte) (int, error)

func (*SnapshotResponse) MarshalToSizedBuffer

func (m *SnapshotResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*SnapshotResponse) ProtoMessage

func (*SnapshotResponse) ProtoMessage()

func (*SnapshotResponse) Reset

func (m *SnapshotResponse) Reset()

func (*SnapshotResponse) Size

func (m *SnapshotResponse) Size() (n int)

func (*SnapshotResponse) String

func (m *SnapshotResponse) String() string

func (*SnapshotResponse) Unmarshal

func (m *SnapshotResponse) Unmarshal(dAtA []byte) error

func (*SnapshotResponse) XXX_DiscardUnknown

func (m *SnapshotResponse) XXX_DiscardUnknown()

func (*SnapshotResponse) XXX_Marshal

func (m *SnapshotResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*SnapshotResponse) XXX_Merge

func (m *SnapshotResponse) XXX_Merge(src proto.Message)

func (*SnapshotResponse) XXX_Size

func (m *SnapshotResponse) XXX_Size() int

func (*SnapshotResponse) XXX_Unmarshal

func (m *SnapshotResponse) XXX_Unmarshal(b []byte) error

type SnapshotServiceClient

type SnapshotServiceClient interface {
	Send(ctx context.Context, in *Snapshot, opts ...grpc.CallOption) (*SnapshotResponse, error)
}

SnapshotServiceClient is the client API for SnapshotService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewSnapshotServiceClient

func NewSnapshotServiceClient(cc *grpc.ClientConn) SnapshotServiceClient

type SnapshotServiceServer

type SnapshotServiceServer interface {
	Send(context.Context, *Snapshot) (*SnapshotResponse, error)
}

SnapshotServiceServer is the server API for SnapshotService service.

type StackFrame

type StackFrame struct {
	FileName               string        `protobuf:"bytes,1,opt,name=file_name,json=fileName,proto3" json:"file_name,omitempty"`
	MethodName             string        `protobuf:"bytes,2,opt,name=method_name,json=methodName,proto3" json:"method_name,omitempty"`
	LineNumber             int32         `protobuf:"varint,3,opt,name=line_number,json=lineNumber,proto3" json:"line_number,omitempty"`
	ClassName              string        `protobuf:"bytes,4,opt,name=class_name,json=className,proto3" json:"class_name,omitempty"`
	IsAsync                bool          `protobuf:"varint,5,opt,name=is_async,json=isAsync,proto3" json:"is_async,omitempty"`
	ColumnNumber           int32         `protobuf:"varint,6,opt,name=column_number,json=columnNumber,proto3" json:"column_number,omitempty"`
	TranspiledFileName     string        `protobuf:"bytes,7,opt,name=transpiled_file_name,json=transpiledFileName,proto3" json:"transpiled_file_name,omitempty"`
	TranspiledLineNumber   int32         `protobuf:"varint,8,opt,name=transpiled_line_number,json=transpiledLineNumber,proto3" json:"transpiled_line_number,omitempty"`
	TranspiledColumnNumber int32         `` /* 130-byte string literal not displayed */
	Variables              []*VariableId `protobuf:"bytes,10,rep,name=variables,proto3" json:"variables,omitempty"`
	AppFrame               bool          `protobuf:"varint,11,opt,name=app_frame,json=appFrame,proto3" json:"app_frame,omitempty"`
}

func (*StackFrame) Descriptor

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

func (*StackFrame) GetAppFrame

func (m *StackFrame) GetAppFrame() bool

func (*StackFrame) GetClassName

func (m *StackFrame) GetClassName() string

func (*StackFrame) GetColumnNumber

func (m *StackFrame) GetColumnNumber() int32

func (*StackFrame) GetFileName

func (m *StackFrame) GetFileName() string

func (*StackFrame) GetIsAsync

func (m *StackFrame) GetIsAsync() bool

func (*StackFrame) GetLineNumber

func (m *StackFrame) GetLineNumber() int32

func (*StackFrame) GetMethodName

func (m *StackFrame) GetMethodName() string

func (*StackFrame) GetTranspiledColumnNumber

func (m *StackFrame) GetTranspiledColumnNumber() int32

func (*StackFrame) GetTranspiledFileName

func (m *StackFrame) GetTranspiledFileName() string

func (*StackFrame) GetTranspiledLineNumber

func (m *StackFrame) GetTranspiledLineNumber() int32

func (*StackFrame) GetVariables

func (m *StackFrame) GetVariables() []*VariableId

func (*StackFrame) Marshal

func (m *StackFrame) Marshal() (dAtA []byte, err error)

func (*StackFrame) MarshalTo

func (m *StackFrame) MarshalTo(dAtA []byte) (int, error)

func (*StackFrame) MarshalToSizedBuffer

func (m *StackFrame) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*StackFrame) ProtoMessage

func (*StackFrame) ProtoMessage()

func (*StackFrame) Reset

func (m *StackFrame) Reset()

func (*StackFrame) Size

func (m *StackFrame) Size() (n int)

func (*StackFrame) String

func (m *StackFrame) String() string

func (*StackFrame) Unmarshal

func (m *StackFrame) Unmarshal(dAtA []byte) error

func (*StackFrame) XXX_DiscardUnknown

func (m *StackFrame) XXX_DiscardUnknown()

func (*StackFrame) XXX_Marshal

func (m *StackFrame) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*StackFrame) XXX_Merge

func (m *StackFrame) XXX_Merge(src proto.Message)

func (*StackFrame) XXX_Size

func (m *StackFrame) XXX_Size() int

func (*StackFrame) XXX_Unmarshal

func (m *StackFrame) XXX_Unmarshal(b []byte) error

type TracePointConfig

type TracePointConfig struct {
	Id      string            `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Path    string            `protobuf:"bytes,2,opt,name=path,proto3" json:"path,omitempty"`
	LineNo  int32             `protobuf:"varint,3,opt,name=line_no,json=lineNo,proto3" json:"line_no,omitempty"`
	Args    map[string]string `` /* 149-byte string literal not displayed */
	Watches []string          `protobuf:"bytes,5,rep,name=watches,proto3" json:"watches,omitempty"`
}

This is the config of a tracepoint that should be installed by the application agent.

func (*TracePointConfig) Descriptor

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

func (*TracePointConfig) GetArgs

func (m *TracePointConfig) GetArgs() map[string]string

func (*TracePointConfig) GetId

func (m *TracePointConfig) GetId() string

func (*TracePointConfig) GetLineNo

func (m *TracePointConfig) GetLineNo() int32

func (*TracePointConfig) GetPath

func (m *TracePointConfig) GetPath() string

func (*TracePointConfig) GetWatches

func (m *TracePointConfig) GetWatches() []string

func (*TracePointConfig) Marshal

func (m *TracePointConfig) Marshal() (dAtA []byte, err error)

func (*TracePointConfig) MarshalTo

func (m *TracePointConfig) MarshalTo(dAtA []byte) (int, error)

func (*TracePointConfig) MarshalToSizedBuffer

func (m *TracePointConfig) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*TracePointConfig) ProtoMessage

func (*TracePointConfig) ProtoMessage()

func (*TracePointConfig) Reset

func (m *TracePointConfig) Reset()

func (*TracePointConfig) Size

func (m *TracePointConfig) Size() (n int)

func (*TracePointConfig) String

func (m *TracePointConfig) String() string

func (*TracePointConfig) Unmarshal

func (m *TracePointConfig) Unmarshal(dAtA []byte) error

func (*TracePointConfig) XXX_DiscardUnknown

func (m *TracePointConfig) XXX_DiscardUnknown()

func (*TracePointConfig) XXX_Marshal

func (m *TracePointConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*TracePointConfig) XXX_Merge

func (m *TracePointConfig) XXX_Merge(src proto.Message)

func (*TracePointConfig) XXX_Size

func (m *TracePointConfig) XXX_Size() int

func (*TracePointConfig) XXX_Unmarshal

func (m *TracePointConfig) XXX_Unmarshal(b []byte) error

type UnimplementedSnapshotServiceServer

type UnimplementedSnapshotServiceServer struct {
}

UnimplementedSnapshotServiceServer can be embedded to have forward compatible implementations.

func (*UnimplementedSnapshotServiceServer) Send

type Variable

type Variable struct {
	Type      string        `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"`
	Value     string        `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
	Hash      string        `protobuf:"bytes,3,opt,name=hash,proto3" json:"hash,omitempty"`
	Children  []*VariableId `protobuf:"bytes,4,rep,name=children,proto3" json:"children,omitempty"`
	Truncated bool          `protobuf:"varint,5,opt,name=truncated,proto3" json:"truncated,omitempty"`
}

func (*Variable) Descriptor

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

func (*Variable) GetChildren

func (m *Variable) GetChildren() []*VariableId

func (*Variable) GetHash

func (m *Variable) GetHash() string

func (*Variable) GetTruncated

func (m *Variable) GetTruncated() bool

func (*Variable) GetType

func (m *Variable) GetType() string

func (*Variable) GetValue

func (m *Variable) GetValue() string

func (*Variable) Marshal

func (m *Variable) Marshal() (dAtA []byte, err error)

func (*Variable) MarshalTo

func (m *Variable) MarshalTo(dAtA []byte) (int, error)

func (*Variable) MarshalToSizedBuffer

func (m *Variable) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Variable) ProtoMessage

func (*Variable) ProtoMessage()

func (*Variable) Reset

func (m *Variable) Reset()

func (*Variable) Size

func (m *Variable) Size() (n int)

func (*Variable) String

func (m *Variable) String() string

func (*Variable) Unmarshal

func (m *Variable) Unmarshal(dAtA []byte) error

func (*Variable) XXX_DiscardUnknown

func (m *Variable) XXX_DiscardUnknown()

func (*Variable) XXX_Marshal

func (m *Variable) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Variable) XXX_Merge

func (m *Variable) XXX_Merge(src proto.Message)

func (*Variable) XXX_Size

func (m *Variable) XXX_Size() int

func (*Variable) XXX_Unmarshal

func (m *Variable) XXX_Unmarshal(b []byte) error

type VariableId

type VariableId struct {
	Id        string   `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Name      string   `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	Modifiers []string `protobuf:"bytes,3,rep,name=modifiers,proto3" json:"modifiers,omitempty"`
}

func (*VariableId) Descriptor

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

func (*VariableId) GetId

func (m *VariableId) GetId() string

func (*VariableId) GetModifiers

func (m *VariableId) GetModifiers() []string

func (*VariableId) GetName

func (m *VariableId) GetName() string

func (*VariableId) Marshal

func (m *VariableId) Marshal() (dAtA []byte, err error)

func (*VariableId) MarshalTo

func (m *VariableId) MarshalTo(dAtA []byte) (int, error)

func (*VariableId) MarshalToSizedBuffer

func (m *VariableId) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*VariableId) ProtoMessage

func (*VariableId) ProtoMessage()

func (*VariableId) Reset

func (m *VariableId) Reset()

func (*VariableId) Size

func (m *VariableId) Size() (n int)

func (*VariableId) String

func (m *VariableId) String() string

func (*VariableId) Unmarshal

func (m *VariableId) Unmarshal(dAtA []byte) error

func (*VariableId) XXX_DiscardUnknown

func (m *VariableId) XXX_DiscardUnknown()

func (*VariableId) XXX_Marshal

func (m *VariableId) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*VariableId) XXX_Merge

func (m *VariableId) XXX_Merge(src proto.Message)

func (*VariableId) XXX_Size

func (m *VariableId) XXX_Size() int

func (*VariableId) XXX_Unmarshal

func (m *VariableId) XXX_Unmarshal(b []byte) error

type WatchResult

type WatchResult struct {
	Expression string `protobuf:"bytes,1,opt,name=expression,proto3" json:"expression,omitempty"`
	// Types that are valid to be assigned to Result:
	//	*WatchResult_GoodResult
	//	*WatchResult_ErrorResult
	Result isWatchResult_Result `protobuf_oneof:"result"`
}

func (*WatchResult) Descriptor

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

func (*WatchResult) GetErrorResult

func (m *WatchResult) GetErrorResult() string

func (*WatchResult) GetExpression

func (m *WatchResult) GetExpression() string

func (*WatchResult) GetGoodResult

func (m *WatchResult) GetGoodResult() *VariableId

func (*WatchResult) GetResult

func (m *WatchResult) GetResult() isWatchResult_Result

func (*WatchResult) Marshal

func (m *WatchResult) Marshal() (dAtA []byte, err error)

func (*WatchResult) MarshalTo

func (m *WatchResult) MarshalTo(dAtA []byte) (int, error)

func (*WatchResult) MarshalToSizedBuffer

func (m *WatchResult) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*WatchResult) ProtoMessage

func (*WatchResult) ProtoMessage()

func (*WatchResult) Reset

func (m *WatchResult) Reset()

func (*WatchResult) Size

func (m *WatchResult) Size() (n int)

func (*WatchResult) String

func (m *WatchResult) String() string

func (*WatchResult) Unmarshal

func (m *WatchResult) Unmarshal(dAtA []byte) error

func (*WatchResult) XXX_DiscardUnknown

func (m *WatchResult) XXX_DiscardUnknown()

func (*WatchResult) XXX_Marshal

func (m *WatchResult) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*WatchResult) XXX_Merge

func (m *WatchResult) XXX_Merge(src proto.Message)

func (*WatchResult) XXX_OneofWrappers

func (*WatchResult) XXX_OneofWrappers() []interface{}

XXX_OneofWrappers is for the internal use of the proto package.

func (*WatchResult) XXX_Size

func (m *WatchResult) XXX_Size() int

func (*WatchResult) XXX_Unmarshal

func (m *WatchResult) XXX_Unmarshal(b []byte) error

type WatchResult_ErrorResult

type WatchResult_ErrorResult struct {
	ErrorResult string `protobuf:"bytes,3,opt,name=error_result,json=errorResult,proto3,oneof" json:"error_result,omitempty"`
}

func (*WatchResult_ErrorResult) MarshalTo

func (m *WatchResult_ErrorResult) MarshalTo(dAtA []byte) (int, error)

func (*WatchResult_ErrorResult) MarshalToSizedBuffer

func (m *WatchResult_ErrorResult) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*WatchResult_ErrorResult) Size

func (m *WatchResult_ErrorResult) Size() (n int)

type WatchResult_GoodResult

type WatchResult_GoodResult struct {
	GoodResult *VariableId `protobuf:"bytes,2,opt,name=good_result,json=goodResult,proto3,oneof" json:"good_result,omitempty"`
}

func (*WatchResult_GoodResult) MarshalTo

func (m *WatchResult_GoodResult) MarshalTo(dAtA []byte) (int, error)

func (*WatchResult_GoodResult) MarshalToSizedBuffer

func (m *WatchResult_GoodResult) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*WatchResult_GoodResult) Size

func (m *WatchResult_GoodResult) Size() (n int)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL