wire

package
v1.5.3 Latest Latest
Warning

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

Go to latest
Published: May 25, 2018 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package wire is used to serialize a trace.

Package wire is a generated protocol buffer package.

It is generated from these files:
	binary.proto

It has these top-level messages:
	SpanContext
	Span
	Trace
	Field

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthBinary = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowBinary   = fmt.Errorf("proto: integer overflow")
)
View Source
var Field_FieldType_name = map[int32]string{
	0: "STRING",
	1: "BOOL",
	2: "INT_64",
	3: "UINT_64",
	4: "DURATION",
	6: "FLOAT_64",
}
View Source
var Field_FieldType_value = map[string]int32{
	"STRING":   0,
	"BOOL":     1,
	"INT_64":   2,
	"UINT_64":  3,
	"DURATION": 4,
	"FLOAT_64": 6,
}

Functions

This section is empty.

Types

type Field

type Field struct {
	Key       string          `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
	FieldType Field_FieldType `protobuf:"varint,2,opt,name=field_type,json=fieldType,proto3,enum=wire.Field_FieldType" json:"field_type,omitempty"`
	// Types that are valid to be assigned to Value:
	//	*Field_NumericVal
	//	*Field_StringVal
	Value isField_Value `protobuf_oneof:"value"`
}

func (*Field) Descriptor

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

func (*Field) GetFieldType

func (m *Field) GetFieldType() Field_FieldType

func (*Field) GetKey

func (m *Field) GetKey() string

func (*Field) GetNumericVal

func (m *Field) GetNumericVal() int64

func (*Field) GetStringVal

func (m *Field) GetStringVal() string

func (*Field) GetValue

func (m *Field) GetValue() isField_Value

func (*Field) Marshal

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

func (*Field) MarshalTo

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

func (*Field) ProtoMessage

func (*Field) ProtoMessage()

func (*Field) Reset

func (m *Field) Reset()

func (*Field) Size

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

func (*Field) String

func (m *Field) String() string

func (*Field) Unmarshal

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

func (*Field) XXX_OneofFuncs

func (*Field) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{})

XXX_OneofFuncs is for the internal use of the proto package.

type Field_FieldType

type Field_FieldType int32
const (
	FieldTypeString   Field_FieldType = 0
	FieldTypeBool     Field_FieldType = 1
	FieldTypeInt64    Field_FieldType = 2
	FieldTypeUint64   Field_FieldType = 3
	FieldTypeDuration Field_FieldType = 4
	FieldTypeFloat64  Field_FieldType = 6
)

func (Field_FieldType) EnumDescriptor

func (Field_FieldType) EnumDescriptor() ([]byte, []int)

func (Field_FieldType) String

func (x Field_FieldType) String() string

type Field_NumericVal

type Field_NumericVal struct {
	NumericVal int64 `protobuf:"fixed64,3,opt,name=numeric_val,json=numericVal,proto3,oneof"`
}

func (*Field_NumericVal) MarshalTo

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

func (*Field_NumericVal) Size

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

type Field_StringVal

type Field_StringVal struct {
	StringVal string `protobuf:"bytes,4,opt,name=string_val,json=stringVal,proto3,oneof"`
}

func (*Field_StringVal) MarshalTo

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

func (*Field_StringVal) Size

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

type Span

type Span struct {
	Context      SpanContext `protobuf:"bytes,1,opt,name=context" json:"context"`
	ParentSpanID uint64      `protobuf:"varint,2,opt,name=parent_span_id,json=parentSpanId,proto3" json:"parent_span_id,omitempty"`
	Name         string      `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
	Start        time.Time   `protobuf:"bytes,4,opt,name=start_time,json=startTime,stdtime" json:"start_time"`
	Labels       []string    `protobuf:"bytes,5,rep,name=labels" json:"labels,omitempty"`
	Fields       []Field     `protobuf:"bytes,6,rep,name=fields" json:"fields"`
}

func (*Span) Descriptor

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

func (*Span) GetContext

func (m *Span) GetContext() SpanContext

func (*Span) GetFields

func (m *Span) GetFields() []Field

func (*Span) GetLabels

func (m *Span) GetLabels() []string

func (*Span) GetName

func (m *Span) GetName() string

func (*Span) GetParentSpanID

func (m *Span) GetParentSpanID() uint64

func (*Span) GetStart

func (m *Span) GetStart() time.Time

func (*Span) Marshal

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

func (*Span) MarshalTo

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

func (*Span) ProtoMessage

func (*Span) ProtoMessage()

func (*Span) Reset

func (m *Span) Reset()

func (*Span) Size

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

func (*Span) String

func (m *Span) String() string

func (*Span) Unmarshal

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

type SpanContext

type SpanContext struct {
	TraceID uint64 `protobuf:"varint,1,opt,name=trace_id,json=traceId,proto3" json:"trace_id,omitempty"`
	SpanID  uint64 `protobuf:"varint,2,opt,name=span_id,json=spanId,proto3" json:"span_id,omitempty"`
}

func (*SpanContext) Descriptor

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

func (*SpanContext) GetSpanID

func (m *SpanContext) GetSpanID() uint64

func (*SpanContext) GetTraceID

func (m *SpanContext) GetTraceID() uint64

func (*SpanContext) Marshal

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

func (*SpanContext) MarshalTo

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

func (*SpanContext) ProtoMessage

func (*SpanContext) ProtoMessage()

func (*SpanContext) Reset

func (m *SpanContext) Reset()

func (*SpanContext) Size

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

func (*SpanContext) String

func (m *SpanContext) String() string

func (*SpanContext) Unmarshal

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

type Trace

type Trace struct {
	Spans []*Span `protobuf:"bytes,1,rep,name=spans" json:"spans,omitempty"`
}

func (*Trace) Descriptor

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

func (*Trace) GetSpans

func (m *Trace) GetSpans() []*Span

func (*Trace) Marshal

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

func (*Trace) MarshalTo

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

func (*Trace) ProtoMessage

func (*Trace) ProtoMessage()

func (*Trace) Reset

func (m *Trace) Reset()

func (*Trace) Size

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

func (*Trace) String

func (m *Trace) String() string

func (*Trace) Unmarshal

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

Jump to

Keyboard shortcuts

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