Documentation
¶
Index ¶
Constants ¶
View Source
const ( SERVICE_WAS = 1 SERVICE_APP = 2 SERVICE_WAS_2 = 3 )
View Source
const ( FATAL byte = 30 WARNING byte = 20 INFO byte = 10 NONE byte = 0 )
Variables ¶
View Source
var WebMethodName = map[string]byte{"GET": 1, "POST": 2, "PUT": 3, "DELETE": 4, "PATCH": 5, "OPTIONS": 6, "HEAD": 7, "TRACE": 8}
View Source
var WebMethodValue = map[byte]string{1: "GET", 2: "POST", 3: "PUT", 4: "DELETE", 5: "PATCH", 6: "OPTIONS", 7: "HEAD", 8: "TRACE"}
Functions ¶
func ToBytes ¶
func ToBytes(s Service, dout *io.DataOutputX)
Types ¶
type AbstractService ¶
type AbstractService struct { Seq int64 EndTime int64 Service int32 Elapsed int32 Error int64 CpuTime int32 Malloc int64 SqlCount int32 SqlTime int32 SqlFetchCount int32 SqlFetchTime int32 HttpcCount int32 HttpcTime int32 Active bool Steps_data_pos int64 Mtid int64 Mdepth int32 Mcaller int64 }
func (*AbstractService) Read ¶
func (this *AbstractService) Read(din *io.DataInputX)
func (*AbstractService) Write ¶
func (this *AbstractService) Write(dout *io.DataOutputX)
type AppService ¶
type AppService struct {
AbstractService
}
func NewAppService ¶
func NewAppService() *AppService
func (*AppService) GetServiceType ¶
func (this *AppService) GetServiceType() byte
func (*AppService) Read ¶
func (this *AppService) Read(in *io.DataInputX)
func (*AppService) Write ¶
func (this *AppService) Write(out *io.DataOutputX)
type Service ¶
type Service interface { GetServiceType() byte Write(out *io.DataOutputX) Read(in *io.DataInputX) }
func CreateService ¶
func ToObject ¶
func ToObject(din *io.DataInputX) Service
type TxRecord ¶
type TxRecord struct { Txid int64 EndTime int64 Service int32 Elapsed int32 Error int64 CpuTime int32 Malloc int64 SqlCount int32 SqlTime int32 SqlFetchCount int32 SqlFetchTime int32 HttpcCount int32 HttpcTime int32 Active bool StepsDataPos int64 Cipher int32 IpAddr int32 WClientId int64 UserAgent int32 Referer int32 Status int32 Mtid int64 Mdepth int32 Mcaller int64 McallerPcode int64 McallerOkind int32 McallerOid int32 McallerSpec int32 McallerUrl int32 MthisSpec int32 HttpMethod byte Domain int32 Fields *value.MapValue Login int32 ErrorLevel byte Oid int32 Okind int32 Onode int32 Uuid string DbcTime int32 //20210628 - Apdex byte McallerStepId int64 OriginUrl string StepSplitCount int }
func NewTxRecord ¶
func NewTxRecord() *TxRecord
func (*TxRecord) Write ¶
func (this *TxRecord) Write(dout *io.DataOutputX)
type WasService ¶
type WasService struct { AbstractService IpAddr int32 WClientId int64 UserAgent int32 Referer int32 Status int32 Mtid int64 Mdepth int32 Mcaller int64 }
func NewWasService ¶
func NewWasService() *WasService
func (*WasService) GetServiceType ¶
func (this *WasService) GetServiceType() byte
func (*WasService) Read ¶
func (this *WasService) Read(in *io.DataInputX)
func (*WasService) Write ¶
func (this *WasService) Write(out *io.DataOutputX)
type WasService2 ¶
type WasService2 struct {
WasService
}
func NewWasService2 ¶
func NewWasService2() *WasService2
func (*WasService2) GetServiceType ¶
func (this *WasService2) GetServiceType() byte
func (*WasService2) Read ¶
func (this *WasService2) Read(in *io.DataInputX)
func (*WasService2) Write ¶
func (this *WasService2) Write(out *io.DataOutputX)
Click to show internal directories.
Click to hide internal directories.