jobCounter

package
v0.0.0-...-e50112c Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2024 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Counter

type Counter struct {
	// contains filtered or unexported fields
}

func AllCounter

func AllCounter() []*Counter

func New

func New(name string) *Counter

func (*Counter) Add

func (this *Counter) Add(jobId string, state ...string)

func (*Counter) ClientId

func (this *Counter) ClientId() string

func (*Counter) Done

func (this *Counter) Done(jobId string)

func (*Counter) Name

func (this *Counter) Name() string

func (*Counter) RunningJobs

func (this *Counter) RunningJobs() (jobs []*Job)

func (*Counter) SetState

func (this *Counter) SetState(jobId, state string)

func (*Counter) Size

func (this *Counter) Size() int

type Job

type Job struct {
	JobId string    `json:"job_id,omitempty"`
	Time  time.Time `json:"time,omitempty"`
	State string    `json:"state,omitempty"`
}

Jump to

Keyboard shortcuts

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