types

package
v0.5.7 Latest Latest
Warning

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

Go to latest
Published: May 27, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BigInt added in v0.2.5

type BigInt struct {
	big.Int
}

func NewBigInt added in v0.2.5

func NewBigInt(bi *big.Int) *BigInt

func NewBigIntFromString added in v0.3.9

func NewBigIntFromString(bi string) (*BigInt, error)

func (BigInt) MarshalJSON added in v0.2.5

func (b BigInt) MarshalJSON() ([]byte, error)

func (*BigInt) UnmarshalJSON added in v0.2.5

func (b *BigInt) UnmarshalJSON(p []byte) error

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
}

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
}

func NewQuantity

func NewQuantity(bi *BigInt) Quantity

func NewQuantityFromInt64

func NewQuantityFromInt64(i int64) Quantity

func NewQuantityFromString added in v0.1.6

func NewQuantityFromString(text string) (Quantity, error)

func (*Quantity) Add added in v0.1.0

func (b *Quantity) Add(o Quantity) error

Add adds n to q, returning an error if n < 0 or n == nil.

func (*Quantity) Equals

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

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 NewTimeFromSeconds

func NewTimeFromSeconds(seconds uint64) *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()
}

Jump to

Keyboard shortcuts

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