log

package
v1.2.2 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2024 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var LogInfos = &LogMap{TaskInfos: make(map[int]wsTaskInfo.WsTaskInfo)}

Functions

This section is empty.

Types

type LogInfo

type LogInfo struct {
	wsTaskInfo.WsTaskInfo
	// contains filtered or unexported fields
}

func (*LogInfo) CloseBound

func (ti *LogInfo) CloseBound()

func (*LogInfo) CloseSockJSSession

func (ti *LogInfo) CloseSockJSSession(reason string, status uint32)

func (*LogInfo) GetBound

func (ti *LogInfo) GetBound() chan string

func (*LogInfo) GetId

func (ti *LogInfo) GetId() int

func (*LogInfo) IntoBound

func (ti *LogInfo) IntoBound(msg string)

func (*LogInfo) SendMsg

func (ti *LogInfo) SendMsg(msg interface{})

func (*LogInfo) SetBound

func (ti *LogInfo) SetBound(c chan string)

func (*LogInfo) SetId

func (ti *LogInfo) SetId(id int)

func (*LogInfo) SetSockJSSession

func (ti *LogInfo) SetSockJSSession(s sockjs.Session)

type LogMap

type LogMap struct {
	TaskInfos map[int]wsTaskInfo.WsTaskInfo
	Lock      sync.Mutex
	wsTaskInfo.WsTask
}

func (*LogMap) Close

func (ti *LogMap) Close(id int, reason string, status uint32)

func (*LogMap) Get

func (ti *LogMap) Get(id int) wsTaskInfo.WsTaskInfo

func (*LogMap) GetCount

func (ti *LogMap) GetCount() int

GetCount 获取进行中任务数量

func (*LogMap) Set

func (ti *LogMap) Set(id int, task wsTaskInfo.WsTaskInfo)

Jump to

Keyboard shortcuts

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