dto

package
v1.0.1-rel-02 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2024 License: AFL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const DATA_COROUTINES_NUMBER = 2
View Source
const DATA_WAIT_TIMEOUT = 5 * 60 * time.Second

Variables

This section is empty.

Functions

This section is empty.

Types

type CoData

type CoData struct {
	//协程数
	GroupNumber int `json:"group_number"`
	//超时时间
	TimeoutSeconds time.Duration `json:"timeout_seconds"`

	GroupTasks *arraylist.List `json:"group_tasks"`
	Tasks      *arraylist.List `json:"tasks"`

	GroupOrder int `json:"group_order"`
}

func NewCoData

func NewCoData() *CoData

func (*CoData) DivideGroup

func (this *CoData) DivideGroup() *CoData

func (*CoData) GroupSize

func (this *CoData) GroupSize() int

func (*CoData) Split2Group

func (this *CoData) Split2Group()

Jump to

Keyboard shortcuts

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