protoc

package
v0.6.12 Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var HttpMethod_name = map[int32]string{
	0: "UNKNOWN",
	1: "GET",
	2: "POST",
	3: "PUT",
	4: "DELETE",
	5: "HEAD",
	6: "CONNECT",
	7: "OPTIONS",
	8: "TRACE",
	9: "PATCH",
}
View Source
var HttpMethod_value = map[string]int32{
	"UNKNOWN": 0,
	"GET":     1,
	"POST":    2,
	"PUT":     3,
	"DELETE":  4,
	"HEAD":    5,
	"CONNECT": 6,
	"OPTIONS": 7,
	"TRACE":   8,
	"PATCH":   9,
}
View Source
var TracerType_name = map[int32]string{
	0: "Java",
	1: "Database",
	2: "Redis",
	3: "Memcached",
	4: "Mongo",
	5: "External",
	6: "MQP",
	7: "MQC",
}
View Source
var TracerType_value = map[string]int32{
	"Java":      0,
	"Database":  1,
	"Redis":     2,
	"Memcached": 3,
	"Mongo":     4,
	"External":  5,
	"MQP":       6,
	"MQC":       7,
}
View Source
var UserInfoOriginType_name = map[int32]string{
	0: "SELF",
	1: "SERVER",
	2: "APP",
	3: "BROWSER",
	4: "NETWORK",
}
View Source
var UserInfoOriginType_value = map[string]int32{
	"SELF":    0,
	"SERVER":  1,
	"APP":     2,
	"BROWSER": 3,
	"NETWORK": 4,
}

Functions

This section is empty.

Types

type ActionTrace

type ActionTrace struct {
	Time                 int64        `protobuf:"varint,1,opt,name=time,proto3" json:"time,omitempty"`
	Tid                  string       `protobuf:"bytes,2,opt,name=tid,proto3" json:"tid,omitempty"`
	Rid                  string       `protobuf:"bytes,3,opt,name=rid,proto3" json:"rid,omitempty"`
	Refid                string       `protobuf:"bytes,4,opt,name=refid,proto3" json:"refid,omitempty"`
	Duration             int64        `protobuf:"varint,5,opt,name=duration,proto3" json:"duration,omitempty"`
	Tmd5                 string       `protobuf:"bytes,6,opt,name=tmd5,proto3" json:"tmd5,omitempty"`
	Action               string       `protobuf:"bytes,7,opt,name=action,proto3" json:"action,omitempty"`
	Cross                string       `protobuf:"bytes,9,opt,name=cross,proto3" json:"cross,omitempty"`
	UnableBack           bool         `protobuf:"varint,10,opt,name=unableBack,proto3" json:"unableBack,omitempty"`
	User                 *UserInfo    `protobuf:"bytes,12,opt,name=user,proto3" json:"user,omitempty"`
	Detail               *TraceDetail `protobuf:"bytes,13,opt,name=detail,proto3" json:"detail,omitempty"`
	Ip                   string       `protobuf:"bytes,14,opt,name=ip,proto3" json:"ip,omitempty"`
	Method               HttpMethod   `protobuf:"varint,15,opt,name=method,proto3,enum=protoc.HttpMethod" json:"method,omitempty"`
	Status               int32        `protobuf:"varint,16,opt,name=status,proto3" json:"status,omitempty"`
	Url                  string       `protobuf:"bytes,17,opt,name=url,proto3" json:"url,omitempty"`
	NoSample             bool         `protobuf:"varint,18,opt,name=noSample,proto3" json:"noSample,omitempty"`
	XXX_NoUnkeyedLiteral struct{}     `json:"-"`
	XXX_unrecognized     []byte       `json:"-"`
	XXX_sizecache        int32        `json:"-"`
}

func (*ActionTrace) Descriptor

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

func (*ActionTrace) GetAction

func (m *ActionTrace) GetAction() string

func (*ActionTrace) GetCross

func (m *ActionTrace) GetCross() string

func (*ActionTrace) GetDetail

func (m *ActionTrace) GetDetail() *TraceDetail

func (*ActionTrace) GetDuration

func (m *ActionTrace) GetDuration() int64

func (*ActionTrace) GetIp

func (m *ActionTrace) GetIp() string

func (*ActionTrace) GetMethod

func (m *ActionTrace) GetMethod() HttpMethod

func (*ActionTrace) GetNoSample

func (m *ActionTrace) GetNoSample() bool

func (*ActionTrace) GetRefid

func (m *ActionTrace) GetRefid() string

func (*ActionTrace) GetRid

func (m *ActionTrace) GetRid() string

func (*ActionTrace) GetStatus

func (m *ActionTrace) GetStatus() int32

func (*ActionTrace) GetTid

func (m *ActionTrace) GetTid() string

func (*ActionTrace) GetTime

func (m *ActionTrace) GetTime() int64

func (*ActionTrace) GetTmd5

func (m *ActionTrace) GetTmd5() string

func (*ActionTrace) GetUnableBack

func (m *ActionTrace) GetUnableBack() bool

func (*ActionTrace) GetUrl

func (m *ActionTrace) GetUrl() string

func (*ActionTrace) GetUser

func (m *ActionTrace) GetUser() *UserInfo

func (*ActionTrace) ProtoMessage

func (*ActionTrace) ProtoMessage()

func (*ActionTrace) Reset

func (m *ActionTrace) Reset()

func (*ActionTrace) String

func (m *ActionTrace) String() string

func (*ActionTrace) XXX_DiscardUnknown

func (m *ActionTrace) XXX_DiscardUnknown()

func (*ActionTrace) XXX_Marshal

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

func (*ActionTrace) XXX_Merge

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

func (*ActionTrace) XXX_Size

func (m *ActionTrace) XXX_Size() int

func (*ActionTrace) XXX_Unmarshal

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

type ActionTraces

type ActionTraces struct {
	Traces               []*ActionTrace `protobuf:"bytes,1,rep,name=traces,proto3" json:"traces,omitempty"`
	XXX_NoUnkeyedLiteral struct{}       `json:"-"`
	XXX_unrecognized     []byte         `json:"-"`
	XXX_sizecache        int32          `json:"-"`
}

func (*ActionTraces) Descriptor

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

func (*ActionTraces) GetTraces

func (m *ActionTraces) GetTraces() []*ActionTrace

func (*ActionTraces) ProtoMessage

func (*ActionTraces) ProtoMessage()

func (*ActionTraces) Reset

func (m *ActionTraces) Reset()

func (*ActionTraces) String

func (m *ActionTraces) String() string

func (*ActionTraces) XXX_DiscardUnknown

func (m *ActionTraces) XXX_DiscardUnknown()

func (*ActionTraces) XXX_Marshal

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

func (*ActionTraces) XXX_Merge

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

func (*ActionTraces) XXX_Size

func (m *ActionTraces) XXX_Size() int

func (*ActionTraces) XXX_Unmarshal

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

type HttpMethod

type HttpMethod int32
const (
	HttpMethod_UNKNOWN HttpMethod = 0
	HttpMethod_GET     HttpMethod = 1
	HttpMethod_POST    HttpMethod = 2
	HttpMethod_PUT     HttpMethod = 3
	HttpMethod_DELETE  HttpMethod = 4
	HttpMethod_HEAD    HttpMethod = 5
	HttpMethod_CONNECT HttpMethod = 6
	HttpMethod_OPTIONS HttpMethod = 7
	HttpMethod_TRACE   HttpMethod = 8
	HttpMethod_PATCH   HttpMethod = 9
)

func (HttpMethod) EnumDescriptor

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

func (HttpMethod) String

func (x HttpMethod) String() string

type TraceDetail

type TraceDetail struct {
	// query string
	QueryStringParameters string            `protobuf:"bytes,1,opt,name=queryStringParameters,proto3" json:"queryStringParameters,omitempty"`
	Custom                map[string]string `` /* 153-byte string literal not displayed */
	Tracers               []*TracerItem     `protobuf:"bytes,3,rep,name=tracers,proto3" json:"tracers,omitempty"`
	Health                map[string]string `` /* 153-byte string literal not displayed */
	// For custom point cuts
	Posts                map[string]string `` /* 151-byte string literal not displayed */
	RequestHeader        map[string]string `` /* 167-byte string literal not displayed */
	ResponseHeader       map[string]string `` /* 169-byte string literal not displayed */
	Session              map[string]string `` /* 155-byte string literal not displayed */
	XXX_NoUnkeyedLiteral struct{}          `json:"-"`
	XXX_unrecognized     []byte            `json:"-"`
	XXX_sizecache        int32             `json:"-"`
}

func (*TraceDetail) Descriptor

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

func (*TraceDetail) GetCustom

func (m *TraceDetail) GetCustom() map[string]string

func (*TraceDetail) GetHealth

func (m *TraceDetail) GetHealth() map[string]string

func (*TraceDetail) GetPosts

func (m *TraceDetail) GetPosts() map[string]string

func (*TraceDetail) GetQueryStringParameters

func (m *TraceDetail) GetQueryStringParameters() string

func (*TraceDetail) GetRequestHeader

func (m *TraceDetail) GetRequestHeader() map[string]string

func (*TraceDetail) GetResponseHeader

func (m *TraceDetail) GetResponseHeader() map[string]string

func (*TraceDetail) GetSession

func (m *TraceDetail) GetSession() map[string]string

func (*TraceDetail) GetTracers

func (m *TraceDetail) GetTracers() []*TracerItem

func (*TraceDetail) ProtoMessage

func (*TraceDetail) ProtoMessage()

func (*TraceDetail) Reset

func (m *TraceDetail) Reset()

func (*TraceDetail) String

func (m *TraceDetail) String() string

func (*TraceDetail) XXX_DiscardUnknown

func (m *TraceDetail) XXX_DiscardUnknown()

func (*TraceDetail) XXX_Marshal

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

func (*TraceDetail) XXX_Merge

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

func (*TraceDetail) XXX_Size

func (m *TraceDetail) XXX_Size() int

func (*TraceDetail) XXX_Unmarshal

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

type TracerException

type TracerException struct {
	Name                 string   `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Msg                  string   `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"`
	Stack                []string `protobuf:"bytes,3,rep,name=stack,proto3" json:"stack,omitempty"`
	Error                bool     `protobuf:"varint,4,opt,name=error,proto3" json:"error,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*TracerException) Descriptor

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

func (*TracerException) GetError

func (m *TracerException) GetError() bool

func (*TracerException) GetMsg

func (m *TracerException) GetMsg() string

func (*TracerException) GetName

func (m *TracerException) GetName() string

func (*TracerException) GetStack

func (m *TracerException) GetStack() []string

func (*TracerException) ProtoMessage

func (*TracerException) ProtoMessage()

func (*TracerException) Reset

func (m *TracerException) Reset()

func (*TracerException) String

func (m *TracerException) String() string

func (*TracerException) XXX_DiscardUnknown

func (m *TracerException) XXX_DiscardUnknown()

func (*TracerException) XXX_Marshal

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

func (*TracerException) XXX_Merge

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

func (*TracerException) XXX_Size

func (m *TracerException) XXX_Size() int

func (*TracerException) XXX_Unmarshal

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

type TracerItem

type TracerItem struct {
	TracerId             int32              `protobuf:"varint,1,opt,name=tracerId,proto3" json:"tracerId,omitempty"`
	ParentTracerId       int32              `protobuf:"varint,2,opt,name=parentTracerId,proto3" json:"parentTracerId,omitempty"`
	Start                int64              `protobuf:"varint,3,opt,name=start,proto3" json:"start,omitempty"`
	End                  int64              `protobuf:"varint,4,opt,name=end,proto3" json:"end,omitempty"`
	Metric               string             `protobuf:"bytes,5,opt,name=metric,proto3" json:"metric,omitempty"`
	Clazz                string             `protobuf:"bytes,6,opt,name=clazz,proto3" json:"clazz,omitempty"`
	Method               string             `protobuf:"bytes,7,opt,name=method,proto3" json:"method,omitempty"`
	Type                 TracerType         `protobuf:"varint,8,opt,name=type,proto3,enum=protoc.TracerType" json:"type,omitempty"`
	Params               *TracerParams      `protobuf:"bytes,9,opt,name=params,proto3" json:"params,omitempty"`
	Datas                map[string]string  `` /* 152-byte string literal not displayed */
	Backtrace            []string           `protobuf:"bytes,11,rep,name=backtrace,proto3" json:"backtrace,omitempty"`
	Exception            []*TracerException `protobuf:"bytes,12,rep,name=exception,proto3" json:"exception,omitempty"`
	XXX_NoUnkeyedLiteral struct{}           `json:"-"`
	XXX_unrecognized     []byte             `json:"-"`
	XXX_sizecache        int32              `json:"-"`
}

func (*TracerItem) Descriptor

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

func (*TracerItem) GetBacktrace

func (m *TracerItem) GetBacktrace() []string

func (*TracerItem) GetClazz

func (m *TracerItem) GetClazz() string

func (*TracerItem) GetDatas

func (m *TracerItem) GetDatas() map[string]string

func (*TracerItem) GetEnd

func (m *TracerItem) GetEnd() int64

func (*TracerItem) GetException

func (m *TracerItem) GetException() []*TracerException

func (*TracerItem) GetMethod

func (m *TracerItem) GetMethod() string

func (*TracerItem) GetMetric

func (m *TracerItem) GetMetric() string

func (*TracerItem) GetParams

func (m *TracerItem) GetParams() *TracerParams

func (*TracerItem) GetParentTracerId

func (m *TracerItem) GetParentTracerId() int32

func (*TracerItem) GetStart

func (m *TracerItem) GetStart() int64

func (*TracerItem) GetTracerId

func (m *TracerItem) GetTracerId() int32

func (*TracerItem) GetType

func (m *TracerItem) GetType() TracerType

func (*TracerItem) ProtoMessage

func (*TracerItem) ProtoMessage()

func (*TracerItem) Reset

func (m *TracerItem) Reset()

func (*TracerItem) String

func (m *TracerItem) String() string

func (*TracerItem) XXX_DiscardUnknown

func (m *TracerItem) XXX_DiscardUnknown()

func (*TracerItem) XXX_Marshal

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

func (*TracerItem) XXX_Merge

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

func (*TracerItem) XXX_Size

func (m *TracerItem) XXX_Size() int

func (*TracerItem) XXX_Unmarshal

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

type TracerParams

type TracerParams struct {
	Vendor               string   `protobuf:"bytes,1,opt,name=vendor,proto3" json:"vendor,omitempty"`
	Protocol             string   `protobuf:"bytes,2,opt,name=protocol,proto3" json:"protocol,omitempty"`
	Instance             string   `protobuf:"bytes,3,opt,name=instance,proto3" json:"instance,omitempty"`
	Operation            string   `protobuf:"bytes,4,opt,name=operation,proto3" json:"operation,omitempty"`
	Key                  string   `protobuf:"bytes,5,opt,name=key,proto3" json:"key,omitempty"`
	Bytes                int32    `protobuf:"varint,6,opt,name=bytes,proto3" json:"bytes,omitempty"`
	ExternalId           string   `protobuf:"bytes,7,opt,name=externalId,proto3" json:"externalId,omitempty"`
	TxData               string   `protobuf:"bytes,8,opt,name=txData,proto3" json:"txData,omitempty"`
	AsyncWait            bool     `protobuf:"varint,9,opt,name=asyncWait,proto3" json:"asyncWait,omitempty"`
	AsyncContext         string   `protobuf:"bytes,10,opt,name=asyncContext,proto3" json:"asyncContext,omitempty"`
	HandleRows           int32    `protobuf:"varint,11,opt,name=handleRows,proto3" json:"handleRows,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*TracerParams) Descriptor

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

func (*TracerParams) GetAsyncContext

func (m *TracerParams) GetAsyncContext() string

func (*TracerParams) GetAsyncWait

func (m *TracerParams) GetAsyncWait() bool

func (*TracerParams) GetBytes

func (m *TracerParams) GetBytes() int32

func (*TracerParams) GetExternalId

func (m *TracerParams) GetExternalId() string

func (*TracerParams) GetHandleRows

func (m *TracerParams) GetHandleRows() int32

func (*TracerParams) GetInstance

func (m *TracerParams) GetInstance() string

func (*TracerParams) GetKey

func (m *TracerParams) GetKey() string

func (*TracerParams) GetOperation

func (m *TracerParams) GetOperation() string

func (*TracerParams) GetProtocol

func (m *TracerParams) GetProtocol() string

func (*TracerParams) GetTxData

func (m *TracerParams) GetTxData() string

func (*TracerParams) GetVendor

func (m *TracerParams) GetVendor() string

func (*TracerParams) ProtoMessage

func (*TracerParams) ProtoMessage()

func (*TracerParams) Reset

func (m *TracerParams) Reset()

func (*TracerParams) String

func (m *TracerParams) String() string

func (*TracerParams) XXX_DiscardUnknown

func (m *TracerParams) XXX_DiscardUnknown()

func (*TracerParams) XXX_Marshal

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

func (*TracerParams) XXX_Merge

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

func (*TracerParams) XXX_Size

func (m *TracerParams) XXX_Size() int

func (*TracerParams) XXX_Unmarshal

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

type TracerType

type TracerType int32
const (
	TracerType_Java      TracerType = 0
	TracerType_Database  TracerType = 1
	TracerType_Redis     TracerType = 2
	TracerType_Memcached TracerType = 3
	TracerType_Mongo     TracerType = 4
	TracerType_External  TracerType = 5
	TracerType_MQP       TracerType = 6
	TracerType_MQC       TracerType = 7
)

func (TracerType) EnumDescriptor

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

func (TracerType) String

func (x TracerType) String() string

type UserInfo

type UserInfo struct {
	Origin               UserInfoOriginType `protobuf:"varint,1,opt,name=origin,proto3,enum=protoc.UserInfoOriginType" json:"origin,omitempty"`
	Value                string             `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
	Error                string             `protobuf:"bytes,3,opt,name=error,proto3" json:"error,omitempty"`
	XXX_NoUnkeyedLiteral struct{}           `json:"-"`
	XXX_unrecognized     []byte             `json:"-"`
	XXX_sizecache        int32              `json:"-"`
}

func (*UserInfo) Descriptor

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

func (*UserInfo) GetError

func (m *UserInfo) GetError() string

func (*UserInfo) GetOrigin

func (m *UserInfo) GetOrigin() UserInfoOriginType

func (*UserInfo) GetValue

func (m *UserInfo) GetValue() string

func (*UserInfo) ProtoMessage

func (*UserInfo) ProtoMessage()

func (*UserInfo) Reset

func (m *UserInfo) Reset()

func (*UserInfo) String

func (m *UserInfo) String() string

func (*UserInfo) XXX_DiscardUnknown

func (m *UserInfo) XXX_DiscardUnknown()

func (*UserInfo) XXX_Marshal

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

func (*UserInfo) XXX_Merge

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

func (*UserInfo) XXX_Size

func (m *UserInfo) XXX_Size() int

func (*UserInfo) XXX_Unmarshal

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

type UserInfoOriginType

type UserInfoOriginType int32
const (
	UserInfoOriginType_SELF    UserInfoOriginType = 0
	UserInfoOriginType_SERVER  UserInfoOriginType = 1
	UserInfoOriginType_APP     UserInfoOriginType = 2
	UserInfoOriginType_BROWSER UserInfoOriginType = 3
	UserInfoOriginType_NETWORK UserInfoOriginType = 4
)

func (UserInfoOriginType) EnumDescriptor

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

func (UserInfoOriginType) String

func (x UserInfoOriginType) String() string

Jump to

Keyboard shortcuts

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