dto

package
v0.0.0-...-e3601d1 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2025 License: MulanPSL-2.0 Imports: 3 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 {
	Ctx context.Context
	//协程数
	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