step

package
v0.0.21 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2023 License: Apache-2.0 Imports: 2 Imported by: 7

Documentation

Index

Constants

View Source
const (
	SQL_XTYPE_STMT     = 0x0
	SQL_XTYPE_PREPARED = 0x1

	SQL_XTYPE_METHOD_KNOWN   = 0x00
	SQL_XTYPE_METHOD_EXECUTE = 0x10
	SQL_XTYPE_METHOD_UPDATE  = 0x20
	SQL_XTYPE_METHOD_QUERY   = 0x30
)
View Source
const (
	FLAG_NORMAL            = 0x00
	FLAG_ALREADY_SET_INDEX = 0x02

	STEP_METHOD       = 1
	STEP_SQL          = 2
	STEP_RESULTSET    = 3
	STEP_SOCKET       = 5
	STEP_ACTIVE_STACK = 6
	STEP_MESSAGE      = 7
	STEP_DBC          = 8
	STEP_SQL_2        = 9
	STEP_POSITION     = 10
	STEP_METHOD_2     = 11

	STEP_METHOD_3       = 12
	STEP_SQL_3          = 13
	STEP_HTTPCALL_3     = 14
	STEP_SECURE_MESSAGE = 15
	STEP_CHILD_THREAD   = 16

	STEP_METHOD_X   = 17
	STEP_SQL_X      = 18
	STEP_HTTPCALL_X = 19 // 14 -> 19
	STEP_REMOTE     = 20
	STEP_DBC_X      = 21
	STEP_MESSAGE_X  = 22

	STEP_RESOURCE    = 50
	STEP_RUM_ERR_MSG = 51
)
View Source
const (
	HTTPC_STEP_DEFAULT_VERSION = 2
)
View Source
const (
	SINGLE_LINE_DISPLAY = 0x00000001
)

Variables

This section is empty.

Functions

func GetSqlClassString

func GetSqlClassString(xtype byte) string

func GetSqlClassType

func GetSqlClassType(xtype byte) byte

func GetSqlMethodType

func GetSqlMethodType(xtype byte) byte

func ToBytesStep

func ToBytesStep(p []Step) []byte

func WriteStep

func WriteStep(out *io.DataOutputX, p Step) *io.DataOutputX

Types

type AbstractStep

type AbstractStep struct {
	Parent    int32
	Index     int32
	StartTime int32
	Drop      bool
	Opt       byte
}

func (*AbstractStep) GetDrop

func (this *AbstractStep) GetDrop() bool

func (*AbstractStep) GetIndex

func (this *AbstractStep) GetIndex() int32

func (*AbstractStep) GetParent

func (this *AbstractStep) GetParent() int32

func (*AbstractStep) GetStartTime

func (this *AbstractStep) GetStartTime() int32

func (*AbstractStep) IsTrue

func (this *AbstractStep) IsTrue(flag int) bool

func (*AbstractStep) Read

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

func (*AbstractStep) SetDrop

func (this *AbstractStep) SetDrop(v bool)

func (*AbstractStep) SetIndex

func (this *AbstractStep) SetIndex(v int32)

func (*AbstractStep) SetParent

func (this *AbstractStep) SetParent(v int32)

func (*AbstractStep) SetStartTime added in v0.0.16

func (this *AbstractStep) SetStartTime(t int32)

func (*AbstractStep) SetTrue

func (this *AbstractStep) SetTrue(flag int)

func (*AbstractStep) Write

func (this *AbstractStep) Write(dout *io.DataOutputX)

type ActiveStackStep

type ActiveStackStep struct {
	AbstractStep
	Seq          int64
	HasCallstack bool
}

func NewActiveStackStep

func NewActiveStackStep() *ActiveStackStep

func (*ActiveStackStep) GetElapsed

func (this *ActiveStackStep) GetElapsed() int32

func (*ActiveStackStep) GetStepType

func (this *ActiveStackStep) GetStepType() byte

func (*ActiveStackStep) Read

func (this *ActiveStackStep) Read(in *io.DataInputX)

func (*ActiveStackStep) Write

func (this *ActiveStackStep) Write(out *io.DataOutputX)

type DBCStep

type DBCStep struct {
	AbstractStep
	Hash    int32
	Elapsed int32
	Error   int32
}

func NewDBCStep

func NewDBCStep() *DBCStep

func (*DBCStep) GetElapsed

func (this *DBCStep) GetElapsed() int32

func (*DBCStep) GetStepType

func (this *DBCStep) GetStepType() byte

func (*DBCStep) Read

func (this *DBCStep) Read(in *io.DataInputX)

func (*DBCStep) Write

func (this *DBCStep) Write(out *io.DataOutputX)

type HttpcStepX

type HttpcStepX struct {
	AbstractStep

	Version byte

	Url  int32
	Host int32
	Port int32

	Elapsed int32
	Error   int64

	Status int32

	StartCpu int32
	StartMem int64
	Stack    []int32

	StepId    int64
	Driver    string
	OriginUrl string
	Param     string
}

func NewHttpcStepX

func NewHttpcStepX() *HttpcStepX

func NewHttpcStepXVersion added in v0.0.21

func NewHttpcStepXVersion(ver byte) *HttpcStepX

func (*HttpcStepX) GetElapsed

func (this *HttpcStepX) GetElapsed() int32

func (*HttpcStepX) GetStepType

func (this *HttpcStepX) GetStepType() byte

func (*HttpcStepX) Read

func (this *HttpcStepX) Read(in *io.DataInputX)

func (*HttpcStepX) Write

func (this *HttpcStepX) Write(out *io.DataOutputX)

type MessageStep

type MessageStep struct {
	AbstractStep
	Hash  int32
	Time  int32
	Value int32
	Desc  string
}

func NewMessageStep

func NewMessageStep() *MessageStep

func (*MessageStep) GetElapsed

func (this *MessageStep) GetElapsed() int32

func (*MessageStep) GetStepType

func (this *MessageStep) GetStepType() byte

func (*MessageStep) Read

func (this *MessageStep) Read(in *io.DataInputX)

func (*MessageStep) Write

func (this *MessageStep) Write(out *io.DataOutputX)

type MessageStepX added in v0.0.17

type MessageStepX struct {
	AbstractStep

	Title string
	Desc  string
	Ctr   int32
	Attr  *value.MapValue
}

func NewMessageStepX added in v0.0.17

func NewMessageStepX() *MessageStepX

func NewMessageStepXWithStartTime added in v0.0.17

func NewMessageStepXWithStartTime(startTime int32) *MessageStepX

func (*MessageStepX) CtrToJson added in v0.0.17

func (this *MessageStepX) CtrToJson() map[string]interface{}

func (*MessageStepX) GetElapsed added in v0.0.17

func (this *MessageStepX) GetElapsed() int32

func (*MessageStepX) GetStepType added in v0.0.17

func (this *MessageStepX) GetStepType() byte

func (*MessageStepX) Read added in v0.0.17

func (this *MessageStepX) Read(in *io.DataInputX)

func (*MessageStepX) ReadVer0 added in v0.0.17

func (this *MessageStepX) ReadVer0(bytes []byte)

func (*MessageStepX) SetCtr added in v0.0.17

func (this *MessageStepX) SetCtr(key int)

func (*MessageStepX) Write added in v0.0.17

func (this *MessageStepX) Write(out *io.DataOutputX)

func (*MessageStepX) WriteVer0 added in v0.0.17

func (this *MessageStepX) WriteVer0() []byte

type MethodStepX

type MethodStepX struct {
	AbstractStep
	Hash    int32
	Elapsed int32

	StartCpu int32
	StartMem int32

	Stack []int32
}

func NewMethodStepX

func NewMethodStepX() *MethodStepX

func (*MethodStepX) GetElapsed

func (this *MethodStepX) GetElapsed() int32

func (*MethodStepX) GetStepType

func (this *MethodStepX) GetStepType() byte

func (*MethodStepX) Read

func (this *MethodStepX) Read(in *io.DataInputX)

func (*MethodStepX) Write

func (this *MethodStepX) Write(out *io.DataOutputX)

type ResultSetStep

type ResultSetStep struct {
	AbstractStep
	Dbc     int32
	SqlHash int32
	Elapsed int32
	Fetch   int32
}

func NewResultSetStep

func NewResultSetStep() *ResultSetStep

func (*ResultSetStep) GetElapsed

func (this *ResultSetStep) GetElapsed() int32

func (*ResultSetStep) GetStepType

func (this *ResultSetStep) GetStepType() byte

func (*ResultSetStep) Read

func (this *ResultSetStep) Read(in *io.DataInputX)

func (*ResultSetStep) Write

func (this *ResultSetStep) Write(out *io.DataOutputX)

type SecureMsgStep

type SecureMsgStep struct {
	AbstractStep
	Hash  int32
	Opt   byte
	Crc   byte
	Value []byte
}

func NewSecureMsgStep

func NewSecureMsgStep() *SecureMsgStep

func (*SecureMsgStep) GetElapsed

func (this *SecureMsgStep) GetElapsed() int32

func (*SecureMsgStep) GetStepType

func (this *SecureMsgStep) GetStepType() byte

func (*SecureMsgStep) Read

func (this *SecureMsgStep) Read(in *io.DataInputX)

func (*SecureMsgStep) Write

func (this *SecureMsgStep) Write(out *io.DataOutputX)

type SocketStep

type SocketStep struct {
	AbstractStep
	IpAddr  []byte
	Port    int32
	Elapsed int32
	Error   int64
}

func NewSocketStep

func NewSocketStep() *SocketStep

func (*SocketStep) GetElapsed

func (this *SocketStep) GetElapsed() int32

func (*SocketStep) GetStepType

func (this *SocketStep) GetStepType() byte

func (*SocketStep) Read

func (this *SocketStep) Read(in *io.DataInputX)

func (*SocketStep) Write

func (this *SocketStep) Write(out *io.DataOutputX)

type SqlStepX

type SqlStepX struct {
	AbstractStep
	Xtype   byte
	Hash    int32
	Elapsed int32
	Error   int64
	Dbc     int32

	P1   []byte
	P2   []byte
	Pcrc byte

	StartCpu int32
	StartMem int64

	Stack []int32
}

func NewSqlStepX

func NewSqlStepX() *SqlStepX

func (*SqlStepX) GetElapsed

func (this *SqlStepX) GetElapsed() int32

func (*SqlStepX) GetStepType

func (this *SqlStepX) GetStepType() byte

func (*SqlStepX) Read

func (this *SqlStepX) Read(in *io.DataInputX)

func (*SqlStepX) Write

func (this *SqlStepX) Write(out *io.DataOutputX)

type SqlStep_3

type SqlStep_3 struct {
	AbstractStep
	Xtype   byte
	Hash    int32
	Elapsed int32
	Error   int64
	Dbc     int32

	Updated int32
	Crud    byte

	////////////////////
	Opt byte

	P1   []byte
	P2   []byte
	Pcrc byte

	StartCpu int32
	StartMem int32

	Cpu int32
	Mem int32

	Stack []int32
}

func NewSqlStep_3

func NewSqlStep_3() *SqlStep_3

func (*SqlStep_3) GetElapsed

func (this *SqlStep_3) GetElapsed() int32

func (*SqlStep_3) GetStepType

func (this *SqlStep_3) GetStepType() byte

func (*SqlStep_3) IsTrue

func (this *SqlStep_3) IsTrue(flag byte) bool

func (*SqlStep_3) Read

func (this *SqlStep_3) Read(in *io.DataInputX)

func (*SqlStep_3) SetTrue

func (this *SqlStep_3) SetTrue(flag byte)

func (*SqlStep_3) Write

func (this *SqlStep_3) Write(out *io.DataOutputX)

type Step

type Step interface {
	GetStepType() byte
	Write(out *io.DataOutputX)
	Read(in *io.DataInputX)

	// interface 함수 추가
	GetStartTime() int32
	SetStartTime(t int32)

	SetParent(v int32)
	GetParent() int32

	SetIndex(v int32)
	GetIndex() int32

	SetDrop(v bool)
	GetDrop() bool

	GetElapsed() int32

	IsTrue(flag int) bool
	SetTrue(flag int)
}

func CreateStep

func CreateStep(t byte) Step

func ReadStep

func ReadStep(in *io.DataInputX) Step

Jump to

Keyboard shortcuts

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