types

package
v0.13.0 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HttpHandler

type HttpHandler interface {
	Handle(*gin.Context)
}

type ID

type ID int64

func (ID) Equal

func (h ID) Equal(o ID) bool

func (ID) Valid

func (h ID) Valid() bool

type Jsonb

type Jsonb struct {
	json.RawMessage
}

Jsonb is a wrapper for json.RawMessage glob

func (*Jsonb) Scan

func (j *Jsonb) Scan(value interface{}) error

func (Jsonb) Valid

func (j Jsonb) Valid() bool

func (Jsonb) Value

func (j Jsonb) Value() (driver.Value, error)

type Quantity

type Quantity struct {
	big.Int
}

Quantity is a wrapper for big.Int

func NewQuantity

func NewQuantity(i *big.Int) Quantity

func NewQuantityFromBytes

func NewQuantityFromBytes(bytes []byte) Quantity

func NewQuantityFromInt64

func NewQuantityFromInt64(i int64) Quantity

func NewQuantityFromString added in v0.5.0

func NewQuantityFromString(val string) (Quantity, error)

NewQuantityFromString creates a new Quantity from a string

func (*Quantity) Add added in v0.6.0

func (b *Quantity) Add(o Quantity)

Add adds o to b

func (*Quantity) Clone added in v0.9.0

func (b *Quantity) Clone() Quantity

Clone copies a Quantity.

func (*Quantity) Equals

func (b *Quantity) Equals(o Quantity) bool

func (*Quantity) IsZero added in v0.5.0

func (b *Quantity) IsZero() bool

IsZero returns true iff b equals zero

func (*Quantity) Scan

func (b *Quantity) Scan(value interface{}) error

func (*Quantity) Valid

func (b *Quantity) Valid() bool

func (*Quantity) Value

func (b *Quantity) Value() (driver.Value, error)

Value implement sql.Scanner

type SummaryInterval

type SummaryInterval string

SummaryInterval type represents summary interval

const (
	IntervalHourly SummaryInterval = "hour"
	IntervalDaily  SummaryInterval = "day"
)

func (SummaryInterval) Duration

func (s SummaryInterval) Duration() (*time.Duration, error)

func (SummaryInterval) Equal

func (SummaryInterval) Valid

func (s SummaryInterval) Valid() bool

type Time

type Time struct {
	time.Time
}

func NewTimeFromTime

func NewTimeFromTime(t time.Time) *Time

func NewTimeFromTimestamp

func NewTimeFromTimestamp(timestamp timestamp.Timestamp) *Time

func (*Time) Duration

func (t *Time) Duration(m Time) int64

func (*Time) Equal

func (t *Time) Equal(m Time) bool

func (*Time) Scan

func (t *Time) Scan(value interface{}) error

func (Time) Value

func (t Time) Value() (driver.Value, error)

type WorkerHandler

type WorkerHandler interface {
	Handle()
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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