service

package
v0.0.29 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2024 License: Apache-2.0 Imports: 3 Imported by: 3

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
)
View Source
const (
	GET     byte = 1
	POST    byte = 2
	PUT     byte = 3
	DELETE  byte = 4
	PATCH   byte = 5
	OPTIONS byte = 6
	HEAD    byte = 7
	TRACE   byte = 8
)

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 FIELD

type FIELD struct {
	Id    byte
	Value string
}

func NewFIELD

func NewFIELD() *FIELD

type Service

type Service interface {
	GetServiceType() byte
	Write(out *io.DataOutputX)
	Read(in *io.DataInputX)
}

func CreateService

func CreateService(t byte) Service

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) Read

func (this *TxRecord) Read(din *io.DataInputX) *TxRecord

func (*TxRecord) ToBytes

func (this *TxRecord) ToBytes() []byte

func (*TxRecord) ToObject

func (this *TxRecord) ToObject(b []byte) *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)

Jump to

Keyboard shortcuts

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