Documentation
¶
Index ¶
- func GetAllQueries() []*netstorage.QueryExeInfo
- func VisitManagers(fn func(*Manager))
- type IQuery
- type Item
- type Manager
- func (qm *Manager) Abort(qid uint64)
- func (qm *Manager) Aborted(qid uint64) bool
- func (qm *Manager) Add(qid uint64, v IQuery)
- func (qm *Manager) Crash(qid uint64)
- func (qm *Manager) Finish(qid uint64, v IQuery)
- func (qm *Manager) FinishAll(qid uint64)
- func (qm *Manager) Get(qid uint64) []IQuery
- func (qm *Manager) GetAll() []*netstorage.QueryExeInfo
- func (qm *Manager) IsKilled(qid uint64) bool
- func (qm *Manager) Kill(qid uint64)
- func (qm *Manager) SetAbortedExpire(d time.Duration)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetAllQueries ¶ added in v1.1.0
func GetAllQueries() []*netstorage.QueryExeInfo
func VisitManagers ¶ added in v1.1.0
func VisitManagers(fn func(*Manager))
VisitManagers can do something foreach every manager. Like get all queries.
Types ¶
type IQuery ¶
type IQuery interface { Abort() Crash() GetQueryExeInfo() *netstorage.QueryExeInfo }
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
func NewManager ¶
func (*Manager) GetAll ¶ added in v1.1.0
func (qm *Manager) GetAll() []*netstorage.QueryExeInfo
GetAll return the all query exe infos keeping by a manager
func (*Manager) SetAbortedExpire ¶
Click to show internal directories.
Click to hide internal directories.