webrpctypes

package
v1.28.6 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2026 License: Apache-2.0, MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NullBool

type NullBool sql.NullBool

NullBool mirrors sql.NullBool but marshals to JSON as a bool with false as the zero-value when the DB value is NULL.

func (NullBool) MarshalJSON

func (nb NullBool) MarshalJSON() ([]byte, error)

func (*NullBool) Scan

func (nb *NullBool) Scan(value any) error

func (NullBool) Value

func (nb NullBool) Value() (driver.Value, error)

type NullInt64

type NullInt64 sql.NullInt64

NullInt64 mirrors sql.NullInt64 but marshals to JSON as an int64 with 0 as the zero-value when the DB value is NULL.

func (NullInt64) MarshalJSON

func (ni NullInt64) MarshalJSON() ([]byte, error)

func (*NullInt64) Scan

func (ni *NullInt64) Scan(value any) error

func (NullInt64) Value

func (ni NullInt64) Value() (driver.Value, error)

type NullString

type NullString sql.NullString

NullString preserves the convenience of sql.NullString for scanning but marshals to JSON as a plain string, returning "" when the value is invalid.

func (NullString) MarshalJSON

func (ns NullString) MarshalJSON() ([]byte, error)

func (*NullString) Scan

func (ns *NullString) Scan(value any) error

func (NullString) Value

func (ns NullString) Value() (driver.Value, error)

type NullTime

type NullTime sql.NullTime

NullTime mirrors sql.NullTime but marshals to JSON as a time.Time, falling back to the zero time when the DB value is NULL.

func (NullTime) MarshalJSON

func (nt NullTime) MarshalJSON() ([]byte, error)

func (*NullTime) Scan

func (nt *NullTime) Scan(value any) error

func (NullTime) Value

func (nt NullTime) Value() (driver.Value, error)

type PipelineStage

type PipelineStage struct {
	Name    string
	Pending int64
	Running int64
}

type PipelineStats

type PipelineStats struct {
	Total  int64
	Stages []PipelineStage
}

Jump to

Keyboard shortcuts

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