datatypes

package
v1.5.6-reproduce-mqtt2 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func JSONScan

func JSONScan(dbv interface{}, v interface{}) error

func JSONValue

func JSONValue(v interface{}) (driver.Value, error)

Types

type Bool

type Bool int

openapi:type boolean

const (
	TRUE  Bool // true
	FALSE      // false
)

func BooleanValue added in v1.1.0

func BooleanValue(v bool) Bool

func (Bool) MarshalJSON

func (v Bool) MarshalJSON() ([]byte, error)

func (Bool) MarshalText

func (v Bool) MarshalText() ([]byte, error)

func (*Bool) UnmarshalJSON

func (v *Bool) UnmarshalJSON(data []byte) (err error)

func (*Bool) UnmarshalText

func (v *Bool) UnmarshalText(data []byte) (err error)

type OperationTimes

type OperationTimes struct {
	CreatedAt types.Timestamp `db:"f_created_at,default='0'" json:"createdAt"`
	UpdatedAt types.Timestamp `db:"f_updated_at,default='0'" json:"updatedAt"`
}

func (*OperationTimes) Additions

func (o *OperationTimes) Additions() builder.Additions

type OperationTimesWithDeleted

type OperationTimesWithDeleted struct {
	OperationTimes
	DeletedAt types.Timestamp `db:"f_deleted_at,default='0'" json:"-"`
}

func (*OperationTimesWithDeleted) Condition

type Pager

type Pager struct {
	Size   int64 `name:"size,omitempty"   in:"query" default:"10" validate:"@int64[-1,]"`
	Offset int64 `name:"offset,omitempty" in:"query" default:"0"  validate:"@int64[0,]"`
}

func (*Pager) Addition

func (p *Pager) Addition() builder.Addition

type PrimaryID

type PrimaryID struct {
	ID uint64 `db:"f_id,autoincrement" json:"-"`
}

Jump to

Keyboard shortcuts

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