protogen

package
v0.6.25 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Log_Kind_name = map[int32]string{
	0: "STRING",
	1: "INT",
	2: "BOOL",
	3: "FLOAT",
}
View Source
var Log_Kind_value = map[string]int32{
	"STRING": 0,
	"INT":    1,
	"BOOL":   2,
	"FLOAT":  3,
}
View Source
var SpanRef_RefType_name = map[int32]string{
	0: "CHILD_OF",
	1: "FOLLOWS_FROM",
}
View Source
var SpanRef_RefType_value = map[string]int32{
	"CHILD_OF":     0,
	"FOLLOWS_FROM": 1,
}
View Source
var Tag_Kind_name = map[int32]string{
	0: "STRING",
	1: "INT",
	2: "BOOL",
	3: "FLOAT",
}
View Source
var Tag_Kind_value = map[string]int32{
	"STRING": 0,
	"INT":    1,
	"BOOL":   2,
	"FLOAT":  3,
}

Functions

This section is empty.

Types

type Field

type Field struct {
	Key                  string   `protobuf:"bytes,1,opt,name=key" json:"key,omitempty"`
	Value                []byte   `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Field) Descriptor

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

func (*Field) GetKey

func (m *Field) GetKey() string

func (*Field) GetValue

func (m *Field) GetValue() []byte

func (*Field) ProtoMessage

func (*Field) ProtoMessage()

func (*Field) Reset

func (m *Field) Reset()

func (*Field) String

func (m *Field) String() string

func (*Field) XXX_DiscardUnknown

func (m *Field) XXX_DiscardUnknown()

func (*Field) XXX_Marshal

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

func (*Field) XXX_Merge

func (dst *Field) XXX_Merge(src proto.Message)

func (*Field) XXX_Size

func (m *Field) XXX_Size() int

func (*Field) XXX_Unmarshal

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

type Log

type Log struct {
	Key                  string   `protobuf:"bytes,1,opt,name=key" json:"key,omitempty"`
	Kind                 Log_Kind `protobuf:"varint,2,opt,name=kind,enum=dapper.trace.Log_Kind" json:"kind,omitempty"`
	Value                []byte   `protobuf:"bytes,3,opt,name=value,proto3" json:"value,omitempty"`
	Timestamp            int64    `protobuf:"varint,4,opt,name=timestamp" json:"timestamp,omitempty"`
	Fields               []*Field `protobuf:"bytes,5,rep,name=fields" json:"fields,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Log) Descriptor

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

func (*Log) GetFields

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

func (*Log) GetKey

func (m *Log) GetKey() string

func (*Log) GetKind

func (m *Log) GetKind() Log_Kind

func (*Log) GetTimestamp

func (m *Log) GetTimestamp() int64

func (*Log) GetValue

func (m *Log) GetValue() []byte

func (*Log) ProtoMessage

func (*Log) ProtoMessage()

func (*Log) Reset

func (m *Log) Reset()

func (*Log) String

func (m *Log) String() string

func (*Log) XXX_DiscardUnknown

func (m *Log) XXX_DiscardUnknown()

func (*Log) XXX_Marshal

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

func (*Log) XXX_Merge

func (dst *Log) XXX_Merge(src proto.Message)

func (*Log) XXX_Size

func (m *Log) XXX_Size() int

func (*Log) XXX_Unmarshal

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

type Log_Kind

type Log_Kind int32
const (
	Log_STRING Log_Kind = 0
	Log_INT    Log_Kind = 1
	Log_BOOL   Log_Kind = 2
	Log_FLOAT  Log_Kind = 3
)

func (Log_Kind) EnumDescriptor

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

func (Log_Kind) String

func (x Log_Kind) String() string

type Span

type Span struct {
	Version       int32  `protobuf:"varint,99,opt,name=version" json:"version,omitempty"`
	ServiceName   string `protobuf:"bytes,1,opt,name=service_name,json=serviceName" json:"service_name,omitempty"`
	OperationName string `protobuf:"bytes,2,opt,name=operation_name,json=operationName" json:"operation_name,omitempty"`
	// Deprecated: caller no long required
	Caller   string `protobuf:"bytes,3,opt,name=caller" json:"caller,omitempty"`
	TraceId  uint64 `protobuf:"varint,4,opt,name=trace_id,json=traceId" json:"trace_id,omitempty"`
	SpanId   uint64 `protobuf:"varint,5,opt,name=span_id,json=spanId" json:"span_id,omitempty"`
	ParentId uint64 `protobuf:"varint,6,opt,name=parent_id,json=parentId" json:"parent_id,omitempty"`
	// Deprecated: level no long required
	Level int32 `protobuf:"varint,7,opt,name=level" json:"level,omitempty"`
	// Deprecated: use start_time instead instead of start_at
	StartAt int64 `protobuf:"varint,8,opt,name=start_at,json=startAt" json:"start_at,omitempty"`
	// Deprecated: use duration instead instead of finish_at
	FinishAt             int64                `protobuf:"varint,9,opt,name=finish_at,json=finishAt" json:"finish_at,omitempty"`
	SamplingProbability  float32              `protobuf:"fixed32,10,opt,name=sampling_probability,json=samplingProbability" json:"sampling_probability,omitempty"`
	Env                  string               `protobuf:"bytes,19,opt,name=env" json:"env,omitempty"`
	StartTime            *timestamp.Timestamp `protobuf:"bytes,20,opt,name=start_time,json=startTime" json:"start_time,omitempty"`
	Duration             *duration.Duration   `protobuf:"bytes,21,opt,name=duration" json:"duration,omitempty"`
	References           []*SpanRef           `protobuf:"bytes,22,rep,name=references" json:"references,omitempty"`
	Tags                 []*Tag               `protobuf:"bytes,11,rep,name=tags" json:"tags,omitempty"`
	Logs                 []*Log               `protobuf:"bytes,12,rep,name=logs" json:"logs,omitempty"`
	XXX_NoUnkeyedLiteral struct{}             `json:"-"`
	XXX_unrecognized     []byte               `json:"-"`
	XXX_sizecache        int32                `json:"-"`
}

Span represents a named unit of work performed by a service.

func (*Span) Descriptor

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

func (*Span) GetCaller

func (m *Span) GetCaller() string

func (*Span) GetDuration

func (m *Span) GetDuration() *duration.Duration

func (*Span) GetEnv

func (m *Span) GetEnv() string

func (*Span) GetFinishAt

func (m *Span) GetFinishAt() int64

func (*Span) GetLevel

func (m *Span) GetLevel() int32

func (*Span) GetLogs

func (m *Span) GetLogs() []*Log

func (*Span) GetOperationName

func (m *Span) GetOperationName() string

func (*Span) GetParentId

func (m *Span) GetParentId() uint64

func (*Span) GetReferences

func (m *Span) GetReferences() []*SpanRef

func (*Span) GetSamplingProbability

func (m *Span) GetSamplingProbability() float32

func (*Span) GetServiceName

func (m *Span) GetServiceName() string

func (*Span) GetSpanId

func (m *Span) GetSpanId() uint64

func (*Span) GetStartAt

func (m *Span) GetStartAt() int64

func (*Span) GetStartTime

func (m *Span) GetStartTime() *timestamp.Timestamp

func (*Span) GetTags

func (m *Span) GetTags() []*Tag

func (*Span) GetTraceId

func (m *Span) GetTraceId() uint64

func (*Span) GetVersion

func (m *Span) GetVersion() int32

func (*Span) ProtoMessage

func (*Span) ProtoMessage()

func (*Span) Reset

func (m *Span) Reset()

func (*Span) String

func (m *Span) String() string

func (*Span) XXX_DiscardUnknown

func (m *Span) XXX_DiscardUnknown()

func (*Span) XXX_Marshal

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

func (*Span) XXX_Merge

func (dst *Span) XXX_Merge(src proto.Message)

func (*Span) XXX_Size

func (m *Span) XXX_Size() int

func (*Span) XXX_Unmarshal

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

type SpanRef

type SpanRef struct {
	RefType              SpanRef_RefType `protobuf:"varint,1,opt,name=ref_type,json=refType,enum=dapper.trace.SpanRef_RefType" json:"ref_type,omitempty"`
	TraceId              uint64          `protobuf:"varint,2,opt,name=trace_id,json=traceId" json:"trace_id,omitempty"`
	SpanId               uint64          `protobuf:"varint,3,opt,name=span_id,json=spanId" json:"span_id,omitempty"`
	XXX_NoUnkeyedLiteral struct{}        `json:"-"`
	XXX_unrecognized     []byte          `json:"-"`
	XXX_sizecache        int32           `json:"-"`
}

SpanRef describes causal relationship of the current span to another span (e.g. 'child-of')

func (*SpanRef) Descriptor

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

func (*SpanRef) GetRefType

func (m *SpanRef) GetRefType() SpanRef_RefType

func (*SpanRef) GetSpanId

func (m *SpanRef) GetSpanId() uint64

func (*SpanRef) GetTraceId

func (m *SpanRef) GetTraceId() uint64

func (*SpanRef) ProtoMessage

func (*SpanRef) ProtoMessage()

func (*SpanRef) Reset

func (m *SpanRef) Reset()

func (*SpanRef) String

func (m *SpanRef) String() string

func (*SpanRef) XXX_DiscardUnknown

func (m *SpanRef) XXX_DiscardUnknown()

func (*SpanRef) XXX_Marshal

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

func (*SpanRef) XXX_Merge

func (dst *SpanRef) XXX_Merge(src proto.Message)

func (*SpanRef) XXX_Size

func (m *SpanRef) XXX_Size() int

func (*SpanRef) XXX_Unmarshal

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

type SpanRef_RefType

type SpanRef_RefType int32
const (
	SpanRef_CHILD_OF     SpanRef_RefType = 0
	SpanRef_FOLLOWS_FROM SpanRef_RefType = 1
)

func (SpanRef_RefType) EnumDescriptor

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

func (SpanRef_RefType) String

func (x SpanRef_RefType) String() string

type Tag

type Tag struct {
	Key                  string   `protobuf:"bytes,1,opt,name=key" json:"key,omitempty"`
	Kind                 Tag_Kind `protobuf:"varint,2,opt,name=kind,enum=dapper.trace.Tag_Kind" json:"kind,omitempty"`
	Value                []byte   `protobuf:"bytes,3,opt,name=value,proto3" json:"value,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Tag) Descriptor

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

func (*Tag) GetKey

func (m *Tag) GetKey() string

func (*Tag) GetKind

func (m *Tag) GetKind() Tag_Kind

func (*Tag) GetValue

func (m *Tag) GetValue() []byte

func (*Tag) ProtoMessage

func (*Tag) ProtoMessage()

func (*Tag) Reset

func (m *Tag) Reset()

func (*Tag) String

func (m *Tag) String() string

func (*Tag) XXX_DiscardUnknown

func (m *Tag) XXX_DiscardUnknown()

func (*Tag) XXX_Marshal

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

func (*Tag) XXX_Merge

func (dst *Tag) XXX_Merge(src proto.Message)

func (*Tag) XXX_Size

func (m *Tag) XXX_Size() int

func (*Tag) XXX_Unmarshal

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

type Tag_Kind

type Tag_Kind int32
const (
	Tag_STRING Tag_Kind = 0
	Tag_INT    Tag_Kind = 1
	Tag_BOOL   Tag_Kind = 2
	Tag_FLOAT  Tag_Kind = 3
)

func (Tag_Kind) EnumDescriptor

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

func (Tag_Kind) String

func (x Tag_Kind) String() string

Jump to

Keyboard shortcuts

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