status

package
v1.8.9 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GlobalStatus

type GlobalStatus struct {
	Errors      *joberror.ErrorList `json:"errors,omitempty"`
	WriteOps    Uint64              `json:"write_ops"`
	WriteErrors Uint64              `json:"write_errors"`
	ReadOps     Uint64              `json:"read_ops"`
	ReadErrors  Uint64              `json:"read_errors"`
}

func NewGlobalStatus

func NewGlobalStatus(limit int32) *GlobalStatus

func (*GlobalStatus) AddReadError

func (gs *GlobalStatus) AddReadError(err *joberror.JobError)

func (*GlobalStatus) AddWriteError

func (gs *GlobalStatus) AddWriteError(err *joberror.JobError)

func (*GlobalStatus) HasErrors

func (gs *GlobalStatus) HasErrors() bool

func (*GlobalStatus) PrintResult

func (gs *GlobalStatus) PrintResult(w io.Writer, schema *typedef.Schema, version string)

func (*GlobalStatus) PrintResultAsJSON

func (gs *GlobalStatus) PrintResultAsJSON(w io.Writer, schema *typedef.Schema, version string) error

func (*GlobalStatus) String

func (gs *GlobalStatus) String() string

type Uint64

type Uint64 struct {
	atomic.Uint64
}

func (*Uint64) MarshalJSON

func (u *Uint64) MarshalJSON() ([]byte, error)

Jump to

Keyboard shortcuts

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