field

package
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Labels

type Labels map[string]string

Labels treats query string liked value as a map.

func (Labels) Equal

func (l Labels) Equal(s Labels) bool

Equal reports whether l and s contain identical name-value pair.

func (Labels) MarshalJSON

func (l Labels) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler interface.

func (*Labels) Scan

func (l *Labels) Scan(value interface{}) error

Scan implements sql.Scanner interface.

func (Labels) String

func (l Labels) String() string

String returns encoded query string.

func (*Labels) UnmarshalJSON

func (l *Labels) UnmarshalJSON(data []byte) error

UnmarshalJSON implements json.Unmarshaler interface.

func (Labels) Value

func (l Labels) Value() (driver.Value, error)

Value implements driver.Valuer interface.

type NullBool added in v0.4.0

type NullBool sql.NullBool

func NewNullBool added in v0.4.0

func NewNullBool(v bool) NullBool

func (*NullBool) SetValid added in v0.4.0

func (b *NullBool) SetValid(v bool)

func (NullBool) Value added in v0.4.0

func (b NullBool) Value() bool

type NullFloat64 added in v0.4.0

type NullFloat64 sql.NullFloat64

func NewNullFloat64 added in v0.4.0

func NewNullFloat64(v float64) NullFloat64

func (*NullFloat64) SetValid added in v0.4.0

func (f *NullFloat64) SetValid(v float64)

func (NullFloat64) Value added in v0.4.0

func (f NullFloat64) Value() float64

type NullInt64 added in v0.4.0

type NullInt64 sql.NullInt64

func NewNullInt64 added in v0.4.0

func NewNullInt64(v int64) NullInt64

func (*NullInt64) SetValid added in v0.4.0

func (i *NullInt64) SetValid(v int64)

func (NullInt64) Value added in v0.4.0

func (i NullInt64) Value() int64

type NullString added in v0.4.0

type NullString sql.NullString

func NewNullString added in v0.4.0

func NewNullString(v string) NullString

func (*NullString) SetValid added in v0.4.0

func (s *NullString) SetValid(v string)

func (NullString) Value added in v0.4.0

func (s NullString) Value() string

type NullValue added in v0.4.0

type NullValue struct {
	Ref   interface{}
	Valid bool
}

func NewNullValue added in v0.4.0

func NewNullValue(v interface{}) NullValue

func (*NullValue) SetValid added in v0.4.0

func (n *NullValue) SetValid(v interface{})

func (NullValue) Value added in v0.4.0

func (n NullValue) Value() interface{}

type Time

type Time time.Time

Time wraps time.Time for database nullable timestamp.

func Now added in v0.4.0

func Now() Time

func (Time) MarshalJSON

func (t Time) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler interface.

func (*Time) Scan

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

Scan implements sql.Scanner interface.

func (Time) String

func (t Time) String() string

Strings implements fmt.Stringer interface.

func (Time) Time

func (t Time) Time() time.Time

Time returns time.Time.

func (*Time) UnmarshalJSON

func (t *Time) UnmarshalJSON(data []byte) error

UnmarshalJSON implements json.Unmarshaler interface.

func (Time) Value

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

Value implements driver.Valuer interface.

Jump to

Keyboard shortcuts

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