types

package
v1.9.2-0...-41919f1 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2022 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const EmailSize = uint16(255)

Variables

This section is empty.

Functions

func ParseTZ

func ParseTZ(tzs string) (zh, zm int, err error)

func TZOfTime

func TZOfTime(t time.Time) (zh, zm int)

Types

type Email

type Email string

func (Email) IsZero

func (this Email) IsZero() bool

func (Email) PrimaryGoValue

func (this Email) PrimaryGoValue() interface{}

type EmailAssigner

type EmailAssigner struct {
}

func (EmailAssigner) SQLSize

func (EmailAssigner) SQLSize(_ aorm.Dialector) int

func (EmailAssigner) SQLType

func (EmailAssigner) Scaner

func (EmailAssigner) Scaner(_ *aorm.Scope, dest *aorm.Field) aorm.Scanner

func (EmailAssigner) Type

func (EmailAssigner) Type() reflect.Type

func (EmailAssigner) Valuer

func (EmailAssigner) Valuer(_ aorm.Dialector, value interface{}) driver.Valuer

type Gzb

type Gzb struct {
	Compressed bool
	Data       []byte
}

func (*Gzb) Get

func (this *Gzb) Get() (_ []byte, err error)

func (Gzb) IsZero

func (this Gzb) IsZero() bool

func (*Gzb) MustGet

func (this *Gzb) MustGet() (b []byte)

func (*Gzb) Scan

func (this *Gzb) Scan(src interface{}) error

func (*Gzb) String

func (this *Gzb) String() string

func (Gzb) Value

func (this Gzb) Value() (driver.Value, error)

type GzbAssigner

type GzbAssigner struct {
}

func (GzbAssigner) SQLSize

func (GzbAssigner) SQLSize(_ aorm.Dialector) int

func (GzbAssigner) SQLType

func (GzbAssigner) Scaner

func (GzbAssigner) Scaner(_ *aorm.Scope, dest *aorm.Field) aorm.Scanner

func (GzbAssigner) Type

func (GzbAssigner) Type() reflect.Type

func (GzbAssigner) Valuer

func (GzbAssigner) Valuer(_ aorm.Dialector, value interface{}) driver.Valuer

type Strings

type Strings []string

func (*Strings) Append

func (this *Strings) Append(value ...string)

func (Strings) IsZero

func (this Strings) IsZero() bool

func (Strings) PrimaryGoValue

func (this Strings) PrimaryGoValue() interface{}

func (*Strings) Scan

func (this *Strings) Scan(src interface{}) (err error)

func (Strings) Value

func (this Strings) Value() (driver.Value, error)

type StringsAssigner

type StringsAssigner struct {
}

func (StringsAssigner) SQLSize

func (StringsAssigner) SQLSize(_ aorm.Dialector) int

func (StringsAssigner) SQLType

func (StringsAssigner) Scaner

func (StringsAssigner) Scaner(_ *aorm.Scope, dest *aorm.Field) aorm.Scanner

func (StringsAssigner) Type

func (StringsAssigner) Type() reflect.Type

func (StringsAssigner) Valuer

func (StringsAssigner) Valuer(_ aorm.Dialector, value interface{}) driver.Valuer

type Time

type Time struct {
	// contains filtered or unexported fields
}

func NewTime

func NewTime(h, m, s int) Time

func (Time) AormDataType

func (Time) AormDataType(aorm.Dialector) string

func (Time) Hour

func (this Time) Hour() int

func (Time) Minute

func (this Time) Minute() int

func (*Time) Scan

func (this *Time) Scan(src interface{}) (err error)

func (Time) Second

func (this Time) Second() int

func (Time) String

func (this Time) String() string

func (Time) Time

func (this Time) Time() time.Time

func (Time) Value

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

type TimeZ

type TimeZ struct {
	// contains filtered or unexported fields
}

func NewTimeZ

func NewTimeZ(h, m, s, zh, zm int) TimeZ

func (TimeZ) AormDataType

func (TimeZ) AormDataType(aorm.Dialector) string

func (TimeZ) Hour

func (this TimeZ) Hour() int

func (TimeZ) Minute

func (this TimeZ) Minute() int

func (*TimeZ) Scan

func (this *TimeZ) Scan(src interface{}) (err error)

func (TimeZ) Second

func (this TimeZ) Second() int

func (TimeZ) String

func (this TimeZ) String() string

func (TimeZ) Time

func (this TimeZ) Time() time.Time

func (TimeZ) Value

func (this TimeZ) Value() (driver.Value, error)

func (TimeZ) Zone

func (this TimeZ) Zone() (h, m int)

type UrlList

type UrlList []UrlListItem

func (UrlList) IsZero

func (this UrlList) IsZero() bool

func (UrlList) PrimaryGoValue

func (this UrlList) PrimaryGoValue() interface{}

func (*UrlList) Scan

func (this *UrlList) Scan(src interface{}) (err error)

func (UrlList) Value

func (this UrlList) Value() (driver.Value, error)

type UrlListAssigner

type UrlListAssigner struct {
}

func (UrlListAssigner) SQLSize

func (UrlListAssigner) SQLSize(aorm.Dialector) int

func (UrlListAssigner) SQLType

func (UrlListAssigner) Scaner

func (UrlListAssigner) Scaner(_ *aorm.Scope, dest *aorm.Field) aorm.Scanner

func (UrlListAssigner) Type

func (UrlListAssigner) Type() reflect.Type

func (UrlListAssigner) Valuer

func (UrlListAssigner) Valuer(_ aorm.Dialector, value interface{}) driver.Valuer

type UrlListItem

type UrlListItem struct{ Label, Url string }

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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