Documentation ¶
Index ¶
- func LoadEngin(project_id int, group_id int, local_server bool, config_file string, ...)
- func Task_start_callback(task_id int, project_id int, machine_id int, run_number int, parms *C.char)
- func Task_stop_callback(task_id C.int)
- func Task_user_create_callback(user_handle uintptr, ud *unsafe.Pointer, task_id int)
- type BaseUser
- func (B *BaseUser) ConfigGetBool(section string, key string, def bool) bool
- func (B *BaseUser) ConfigGetNumber(section string, key string, def int) int
- func (B *BaseUser) ConfigGetString(section string, key string, def string) string
- func (B *BaseUser) GetHostByName(name string)
- func (B *BaseUser) KcpCreate(hsock uintptr, conv int, stream int)
- func (B *BaseUser) KcpDebug(hsock uintptr) string
- func (B *BaseUser) KcpNodelay(hsock uintptr, nodelay int, interval int, resend int, nc int)
- func (B *BaseUser) KcpWndsize(hsock uintptr, snwd int, rcwn int)
- func (B *BaseUser) Log(log_level int, msg string)
- func (B *BaseUser) Microsecond() int64
- func (B *BaseUser) PlayAction(action int)
- func (B *BaseUser) PlayBack(step int)
- func (B *BaseUser) PlayFast(fast bool)
- func (B *BaseUser) PlayNoStop()
- func (B *BaseUser) PlayNoraml()
- func (B *BaseUser) PlayOver()
- func (B *BaseUser) PlayPause()
- func (B *BaseUser) PlayStep() int
- func (B *BaseUser) PlayStepNote() string
- func (B *BaseUser) PlayStepSession() int
- func (B *BaseUser) PlayStop(err string)
- func (B *BaseUser) ReportAPIRecv(api string, flow int, count int)
- func (B *BaseUser) ReportAPIResponse(api string, response_time int)
- func (B *BaseUser) ReportAPISend(api string, flow int, count int)
- func (B *BaseUser) ReportCounter(key string, value int, report_type int, space_time int)
- func (B *BaseUser) ReportOffline()
- func (B *BaseUser) ReportOnline()
- func (B *BaseUser) ReportOverMessage(message string)
- func (B *BaseUser) SocketClose(hsock uintptr)
- func (B *BaseUser) SocketConnect(ip string, port int, protocol int) uintptr
- func (B *BaseUser) SocketLocalAddrGet(hsock uintptr) (string, int)
- func (B *BaseUser) SocketPeerAddrGet(hsock uintptr) (string, int)
- func (B *BaseUser) SocketPeerAddrSet(hsock uintptr, ip string, port int)
- func (B *BaseUser) SocketSend(hsock uintptr, data []byte, len int) int8
- type BaseUserCall
- type TaskConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Task_start_callback ¶
func Task_stop_callback ¶
Types ¶
type BaseUser ¶
type BaseUser struct {
// contains filtered or unexported fields
}
func (*BaseUser) ConfigGetBool ¶
func (*BaseUser) ConfigGetNumber ¶
func (*BaseUser) ConfigGetString ¶
func (*BaseUser) GetHostByName ¶
func (*BaseUser) KcpNodelay ¶
func (*BaseUser) Microsecond ¶
func (*BaseUser) PlayAction ¶
func (*BaseUser) PlayNoStop ¶
func (B *BaseUser) PlayNoStop()
func (*BaseUser) PlayNoraml ¶
func (B *BaseUser) PlayNoraml()
func (*BaseUser) PlayStepNote ¶
func (*BaseUser) PlayStepSession ¶
func (*BaseUser) ReportAPIResponse ¶
func (*BaseUser) ReportCounter ¶
func (*BaseUser) ReportOffline ¶
func (B *BaseUser) ReportOffline()
func (*BaseUser) ReportOnline ¶
func (B *BaseUser) ReportOnline()
func (*BaseUser) ReportOverMessage ¶
func (*BaseUser) SocketClose ¶
func (*BaseUser) SocketConnect ¶
func (*BaseUser) SocketLocalAddrGet ¶
func (*BaseUser) SocketPeerAddrGet ¶
func (*BaseUser) SocketPeerAddrSet ¶
type BaseUserCall ¶
type BaseUserCall interface { EventStart(taskcfg *TaskConfig, user_number int) EventConnectOpen(ip string, port int, protocol int) EventConnectMade(hsock uintptr) EventConnectFailed(hsock uintptr, errno int) EventConnectSend(ip string, port int, data []byte, protocol int) EventConnectRecved(hsock uintptr, data []byte) EventConnectClose(ip string, port int, protocol int) EventConnectClosed(hsock uintptr, errno int) EventTimeOut() EventStop(errmsg string) // contains filtered or unexported methods }
Click to show internal directories.
Click to hide internal directories.