Documentation
¶
Index ¶
- Constants
- type Base
- type Base64Email
- type Base64EmailNull
- type Bool
- type BoolNull
- type ByteArray
- type DateTime
- func (parameter DateTime) Add(d time.Duration) DateTime
- func (parameter DateTime) After(u DateTime) bool
- func (parameter DateTime) Before(u DateTime) bool
- func (parameter DateTime) DateTimeNull() DateTimeNull
- func (parameter DateTime) Day() int
- func (parameter DateTime) Equal(u DateTime) bool
- func (parameter DateTime) Format(layout string) string
- func (parameter DateTime) Hour() int
- func (parameter DateTime) MarshalJSON() ([]byte, error)
- func (parameter DateTime) Minute() int
- func (parameter DateTime) Month() time.Month
- func (parameter DateTime) Nanosecond() int
- func (parameter DateTime) Native() time.Time
- func (parameter DateTime) Second() int
- func (parameter DateTime) String() string
- func (parameter DateTime) Sub(u DateTime) time.Duration
- func (parameter DateTime) Truncate(d time.Duration) DateTime
- func (parameter DateTime) Unix() int64
- func (parameter *DateTime) UnmarshalJSON(data []byte) error
- func (parameter DateTime) Year() int
- type DateTimeArray
- type DateTimeNull
- type Decimal
- func (parameter Decimal) Add(d2 Decimal) Decimal
- func (parameter Decimal) DecimalNull() DecimalNull
- func (parameter Decimal) Div(d2 Decimal) Decimal
- func (parameter Decimal) Float() Float
- func (parameter Decimal) MarshalJSON() ([]byte, error)
- func (parameter Decimal) Mul(d2 Decimal) Decimal
- func (parameter Decimal) Native() decimal.Decimal
- func (parameter Decimal) Sub(d2 Decimal) Decimal
- func (parameter *Decimal) UnmarshalJSON(data []byte) error
- type DecimalNull
- type Email
- type EmailNull
- type EmptyString
- type EmptyStringNull
- type File
- type FileNull
- type Float
- type FloatArray
- type FloatArrayNull
- type FloatNull
- type Int
- type Int64
- type Int64Array
- type Int64Null
- type IntArray
- type IntNull
- type Ipv4
- type Ipv4Null
- type Ipv6
- type Ipv6Null
- type JsonRawMessage
- type JsonRawMessageArray
- type Map
- type MapNull
- type MediumText
- type MediumTextNull
- type Object
- type ObjectArray
- type ObjectNull
- type String
- type StringArray
- type StringArrayNull
- type StringDate
- type StringDateNull
- type StringId
- type StringIdNull
- type StringNull
- type Text
- type TextNull
- type TypeScope
- type UrlEncodedBase64Email
- type UrlEncodedBase64EmailNull
- type UuidShort
- type UuidShortNull
Constants ¶
View Source
const ( TypeScopeInput = TypeScope(iota) TypeScopeOutput TypeScopePath TypeScopeQuery )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Base ¶
type Base struct {
// contains filtered or unexported fields
}
func (Base) MarshalJSON ¶
func (*Base) UnmarshalJSON ¶
type Base64Email ¶
type Base64Email string
func NewBase64Email ¶
func NewBase64Email(value string) Base64Email
func (Base64Email) Decoded ¶
func (parameter Base64Email) Decoded() (string, error)
func (Base64Email) Native ¶
func (parameter Base64Email) Native() string
type Base64EmailNull ¶
type Base64EmailNull struct {
// contains filtered or unexported fields
}
func NewBase64EmailNull ¶
func NewBase64EmailNull(value string) Base64EmailNull
func (Base64EmailNull) Filled ¶
func (parameter Base64EmailNull) Filled() bool
func (Base64EmailNull) Get ¶
func (parameter Base64EmailNull) Get() (Base64Email, bool)
func (Base64EmailNull) MarshalJSON ¶
func (parameter Base64EmailNull) MarshalJSON() ([]byte, error)
func (*Base64EmailNull) UnmarshalJSON ¶
func (parameter *Base64EmailNull) UnmarshalJSON(data []byte) error
type BoolNull ¶
type BoolNull struct {
// contains filtered or unexported fields
}
func NewBoolNull ¶
func NewBoolNullFromString ¶
func (BoolNull) MarshalJSON ¶
func (*BoolNull) UnmarshalJSON ¶
type DateTime ¶
func NewDateTime ¶
func NewDateTimeFromString ¶
func NewDateTimeFromUnix ¶
func (DateTime) DateTimeNull ¶
func (parameter DateTime) DateTimeNull() DateTimeNull
func (DateTime) MarshalJSON ¶
func (DateTime) Nanosecond ¶
func (*DateTime) UnmarshalJSON ¶
type DateTimeArray ¶
func NewDateTimeArray ¶
func NewDateTimeArray(value []time.Time) DateTimeArray
func (DateTimeArray) MarshalJSON ¶
func (parameter DateTimeArray) MarshalJSON() ([]byte, error)
func (DateTimeArray) Native ¶
func (parameter DateTimeArray) Native() []time.Time
func (*DateTimeArray) UnmarshalJSON ¶
func (parameter *DateTimeArray) UnmarshalJSON(data []byte) error
type DateTimeNull ¶
type DateTimeNull struct {
// contains filtered or unexported fields
}
func NewDateTimeNull ¶
func NewDateTimeNull(value time.Time) DateTimeNull
func NewDateTimeNullFromString ¶
func NewDateTimeNullFromString(value string) (out DateTimeNull, err error)
func NewDateTimeNullFromUnix ¶
func NewDateTimeNullFromUnix(seconds int64, nanos int64) DateTimeNull
func (DateTimeNull) Filled ¶
func (parameter DateTimeNull) Filled() bool
func (DateTimeNull) Get ¶
func (parameter DateTimeNull) Get() (DateTime, bool)
func (DateTimeNull) MarshalJSON ¶
func (parameter DateTimeNull) MarshalJSON() ([]byte, error)
func (*DateTimeNull) UnmarshalJSON ¶
func (parameter *DateTimeNull) UnmarshalJSON(data []byte) error
type Decimal ¶
func NewDecimal ¶
func NewDecimalFromFloat ¶
func NewDecimalFromInt ¶
func NewDecimalFromString ¶
func (Decimal) DecimalNull ¶
func (parameter Decimal) DecimalNull() DecimalNull
func (Decimal) MarshalJSON ¶
func (*Decimal) UnmarshalJSON ¶
type DecimalNull ¶
type DecimalNull struct {
// contains filtered or unexported fields
}
func NewDecimalNull ¶
func NewDecimalNull(value decimal.Decimal) DecimalNull
func (DecimalNull) Filled ¶
func (parameter DecimalNull) Filled() bool
func (DecimalNull) Get ¶
func (parameter DecimalNull) Get() (Decimal, bool)
func (DecimalNull) MarshalJSON ¶
func (parameter DecimalNull) MarshalJSON() ([]byte, error)
func (*DecimalNull) UnmarshalJSON ¶
func (parameter *DecimalNull) UnmarshalJSON(data []byte) error
type EmailNull ¶
type EmailNull struct {
// contains filtered or unexported fields
}
func NewEmailNull ¶
func (EmailNull) MarshalJSON ¶
func (*EmailNull) UnmarshalJSON ¶
type EmptyString ¶
type EmptyString string
func NewEmptyString ¶
func NewEmptyString(value string) EmptyString
func NewEmptyStringFromString ¶
func NewEmptyStringFromString(value string) (out EmptyString, err error)
func (EmptyString) EmptyStringNull ¶
func (parameter EmptyString) EmptyStringNull() EmptyStringNull
func (EmptyString) Native ¶
func (parameter EmptyString) Native() string
type EmptyStringNull ¶
type EmptyStringNull struct {
// contains filtered or unexported fields
}
func NewEmptyStringNull ¶
func NewEmptyStringNull(value string) EmptyStringNull
func NewEmptyStringNullFromString ¶
func NewEmptyStringNullFromString(value string) (EmptyStringNull, error)
func (EmptyStringNull) Filled ¶
func (parameter EmptyStringNull) Filled() bool
func (EmptyStringNull) Get ¶
func (parameter EmptyStringNull) Get() (EmptyString, bool)
func (EmptyStringNull) MarshalJSON ¶
func (parameter EmptyStringNull) MarshalJSON() ([]byte, error)
func (*EmptyStringNull) UnmarshalJSON ¶
func (parameter *EmptyStringNull) UnmarshalJSON(data []byte) error
type FileNull ¶
type FileNull struct {
// contains filtered or unexported fields
}
func NewFileNull ¶
func (FileNull) MarshalJSON ¶
func (*FileNull) UnmarshalJSON ¶
type FloatArray ¶
type FloatArray []float64
func NewFloatArray ¶
func NewFloatArray(value []float64) FloatArray
func (FloatArray) MarshalJSON ¶
func (parameter FloatArray) MarshalJSON() ([]byte, error)
func (FloatArray) Native ¶
func (parameter FloatArray) Native() []float64
func (*FloatArray) UnmarshalJSON ¶
func (parameter *FloatArray) UnmarshalJSON(data []byte) error
type FloatArrayNull ¶
type FloatArrayNull struct {
// contains filtered or unexported fields
}
func NewFloatArrayNull ¶
func NewFloatArrayNull(value []float64) FloatArrayNull
func (FloatArrayNull) Filled ¶
func (parameter FloatArrayNull) Filled() bool
func (FloatArrayNull) Get ¶
func (parameter FloatArrayNull) Get() (FloatArray, bool)
func (FloatArrayNull) MarshalJSON ¶
func (parameter FloatArrayNull) MarshalJSON() ([]byte, error)
func (*FloatArrayNull) UnmarshalJSON ¶
func (parameter *FloatArrayNull) UnmarshalJSON(data []byte) error
type FloatNull ¶
type FloatNull struct {
// contains filtered or unexported fields
}
func NewFloatNull ¶
func (FloatNull) MarshalJSON ¶
func (*FloatNull) UnmarshalJSON ¶
type Int64Array ¶
type Int64Array []int64
func NewInt64Array ¶
func NewInt64Array(value []int64) Int64Array
func (Int64Array) MarshalJSON ¶
func (parameter Int64Array) MarshalJSON() ([]byte, error)
func (Int64Array) Native ¶
func (parameter Int64Array) Native() []int64
func (*Int64Array) UnmarshalJSON ¶
func (parameter *Int64Array) UnmarshalJSON(data []byte) error
type Int64Null ¶
type Int64Null struct {
// contains filtered or unexported fields
}
func NewInt64Null ¶
func NewInt64NullFromString ¶
func (Int64Null) MarshalJSON ¶
func (*Int64Null) UnmarshalJSON ¶
type IntArray ¶
type IntArray []int
func NewIntArray ¶
func (IntArray) MarshalJSON ¶
func (*IntArray) UnmarshalJSON ¶
type IntNull ¶
type IntNull struct {
// contains filtered or unexported fields
}
func NewIntNull ¶
func NewIntNullFromString ¶
func (IntNull) MarshalJSON ¶
func (*IntNull) UnmarshalJSON ¶
type Ipv4Null ¶
type Ipv4Null struct {
// contains filtered or unexported fields
}
func NewIpv4Null ¶
func (Ipv4Null) MarshalJSON ¶
func (*Ipv4Null) UnmarshalJSON ¶
type Ipv6Null ¶
type Ipv6Null struct {
// contains filtered or unexported fields
}
func NewIpv6Null ¶
func (Ipv6Null) MarshalJSON ¶
func (*Ipv6Null) UnmarshalJSON ¶
type JsonRawMessage ¶
type JsonRawMessage []byte
func NewJsonRawMessage ¶
func NewJsonRawMessage(value string) JsonRawMessage
func (JsonRawMessage) MarshalJSON ¶
func (parameter JsonRawMessage) MarshalJSON() ([]byte, error)
func (JsonRawMessage) Native ¶
func (parameter JsonRawMessage) Native() []byte
func (*JsonRawMessage) UnmarshalJSON ¶
func (parameter *JsonRawMessage) UnmarshalJSON(data []byte) error
type JsonRawMessageArray ¶ added in v1.0.13
type JsonRawMessageArray []byte
func NewJsonRawMessageArray ¶ added in v1.0.13
func NewJsonRawMessageArray(value string) JsonRawMessageArray
func (JsonRawMessageArray) MarshalJSON ¶ added in v1.0.13
func (parameter JsonRawMessageArray) MarshalJSON() ([]byte, error)
func (JsonRawMessageArray) Native ¶ added in v1.0.13
func (parameter JsonRawMessageArray) Native() []byte
func (*JsonRawMessageArray) UnmarshalJSON ¶ added in v1.0.13
func (parameter *JsonRawMessageArray) UnmarshalJSON(data []byte) error
type MapNull ¶
type MapNull struct {
// contains filtered or unexported fields
}
func NewMapNull ¶
func (MapNull) MarshalJSON ¶
func (*MapNull) UnmarshalJSON ¶
type MediumText ¶
type MediumText string
func NewMediumText ¶
func NewMediumText(value string) MediumText
func (MediumText) Native ¶
func (parameter MediumText) Native() string
type MediumTextNull ¶
type MediumTextNull struct {
// contains filtered or unexported fields
}
func NewMediumTextNull ¶
func NewMediumTextNull(value string) MediumTextNull
func (MediumTextNull) Filled ¶
func (parameter MediumTextNull) Filled() bool
func (MediumTextNull) Get ¶
func (parameter MediumTextNull) Get() (MediumText, bool)
func (MediumTextNull) MarshalJSON ¶
func (parameter MediumTextNull) MarshalJSON() ([]byte, error)
func (*MediumTextNull) UnmarshalJSON ¶
func (parameter *MediumTextNull) UnmarshalJSON(data []byte) error
type ObjectArray ¶
type ObjectArray []string
func NewObjectArray ¶
func NewObjectArray(value []string) ObjectArray
func (ObjectArray) MarshalJSON ¶
func (parameter ObjectArray) MarshalJSON() ([]byte, error)
func (ObjectArray) Native ¶
func (parameter ObjectArray) Native() []string
func (*ObjectArray) UnmarshalJSON ¶
func (parameter *ObjectArray) UnmarshalJSON(data []byte) error
type ObjectNull ¶
type ObjectNull struct {
// contains filtered or unexported fields
}
func NewObjectNull ¶
func NewObjectNull(value string) ObjectNull
func (ObjectNull) Filled ¶
func (parameter ObjectNull) Filled() bool
func (ObjectNull) Get ¶
func (parameter ObjectNull) Get() (Object, bool)
func (ObjectNull) MarshalJSON ¶
func (parameter ObjectNull) MarshalJSON() ([]byte, error)
func (*ObjectNull) UnmarshalJSON ¶
func (parameter *ObjectNull) UnmarshalJSON(data []byte) error
type String ¶
type String string
func NewStringFromString ¶
func (String) StringNull ¶
func (parameter String) StringNull() StringNull
type StringArray ¶
type StringArray []string
func NewStringArray ¶
func NewStringArray(value []string) StringArray
func (StringArray) MarshalJSON ¶
func (parameter StringArray) MarshalJSON() ([]byte, error)
func (StringArray) Native ¶
func (parameter StringArray) Native() []string
func (*StringArray) UnmarshalJSON ¶
func (parameter *StringArray) UnmarshalJSON(data []byte) error
type StringArrayNull ¶
type StringArrayNull struct {
// contains filtered or unexported fields
}
func NewStringArrayNull ¶
func NewStringArrayNull(value []string) StringArrayNull
func (StringArrayNull) Filled ¶
func (parameter StringArrayNull) Filled() bool
func (StringArrayNull) Get ¶
func (parameter StringArrayNull) Get() (StringArray, bool)
func (StringArrayNull) MarshalJSON ¶
func (parameter StringArrayNull) MarshalJSON() ([]byte, error)
func (*StringArrayNull) UnmarshalJSON ¶
func (parameter *StringArrayNull) UnmarshalJSON(data []byte) error
type StringDate ¶
type StringDate string
func NewStringDate ¶
func NewStringDate(value string) StringDate
func NewStringDateFromString ¶
func NewStringDateFromString(value string) (out StringDate, err error)
func (StringDate) Native ¶
func (parameter StringDate) Native() string
type StringDateNull ¶
type StringDateNull struct {
// contains filtered or unexported fields
}
func NewStringDateNull ¶
func NewStringDateNull(value string) StringDateNull
func NewStringDateNullFromString ¶
func NewStringDateNullFromString(value string) (StringDateNull, error)
func (StringDateNull) Filled ¶
func (parameter StringDateNull) Filled() bool
func (StringDateNull) Get ¶
func (parameter StringDateNull) Get() (StringDate, bool)
func (StringDateNull) MarshalJSON ¶
func (parameter StringDateNull) MarshalJSON() ([]byte, error)
func (*StringDateNull) UnmarshalJSON ¶
func (parameter *StringDateNull) UnmarshalJSON(data []byte) error
type StringId ¶
type StringId string
func NewStringId ¶
func NewStringIdFromString ¶
func (StringId) StringIdNull ¶
func (parameter StringId) StringIdNull() StringIdNull
type StringIdNull ¶
type StringIdNull struct {
// contains filtered or unexported fields
}
func NewStringIdNull ¶
func NewStringIdNull(value string) StringIdNull
func NewStringIdNullFromString ¶
func NewStringIdNullFromString(value string) (StringIdNull, error)
func (StringIdNull) Filled ¶
func (parameter StringIdNull) Filled() bool
func (StringIdNull) Get ¶
func (parameter StringIdNull) Get() (StringId, bool)
func (StringIdNull) MarshalJSON ¶
func (parameter StringIdNull) MarshalJSON() ([]byte, error)
func (*StringIdNull) UnmarshalJSON ¶
func (parameter *StringIdNull) UnmarshalJSON(data []byte) error
type StringNull ¶
type StringNull struct {
// contains filtered or unexported fields
}
func NewStringNull ¶
func NewStringNull(value string) StringNull
func NewStringNullFromString ¶
func NewStringNullFromString(value string) (StringNull, error)
func (StringNull) Filled ¶
func (parameter StringNull) Filled() bool
func (StringNull) Get ¶
func (parameter StringNull) Get() (String, bool)
func (StringNull) MarshalJSON ¶
func (parameter StringNull) MarshalJSON() ([]byte, error)
func (*StringNull) UnmarshalJSON ¶
func (parameter *StringNull) UnmarshalJSON(data []byte) error
type TextNull ¶
type TextNull struct {
// contains filtered or unexported fields
}
func NewTextNull ¶
func (TextNull) MarshalJSON ¶
func (*TextNull) UnmarshalJSON ¶
type UrlEncodedBase64Email ¶
type UrlEncodedBase64Email string
func NewUrlEncodedBase64Email ¶
func NewUrlEncodedBase64Email(value string) UrlEncodedBase64Email
func (UrlEncodedBase64Email) Decoded ¶
func (parameter UrlEncodedBase64Email) Decoded() (string, error)
func (UrlEncodedBase64Email) Native ¶
func (parameter UrlEncodedBase64Email) Native() string
type UrlEncodedBase64EmailNull ¶
type UrlEncodedBase64EmailNull struct {
// contains filtered or unexported fields
}
func NewUrlEncodedBase64EmailNull ¶
func NewUrlEncodedBase64EmailNull(value string) UrlEncodedBase64EmailNull
func (UrlEncodedBase64EmailNull) Filled ¶
func (parameter UrlEncodedBase64EmailNull) Filled() bool
func (UrlEncodedBase64EmailNull) Get ¶
func (parameter UrlEncodedBase64EmailNull) Get() (UrlEncodedBase64Email, bool)
func (UrlEncodedBase64EmailNull) MarshalJSON ¶
func (parameter UrlEncodedBase64EmailNull) MarshalJSON() ([]byte, error)
func (*UrlEncodedBase64EmailNull) UnmarshalJSON ¶
func (parameter *UrlEncodedBase64EmailNull) UnmarshalJSON(data []byte) error
type UuidShort ¶
type UuidShort string
func NewUuidShort ¶
func NewUuidShortFromString ¶
func (UuidShort) UuidShortNull ¶
func (parameter UuidShort) UuidShortNull() UuidShortNull
type UuidShortNull ¶
type UuidShortNull struct {
// contains filtered or unexported fields
}
func NewUuidShortNull ¶
func NewUuidShortNull(value string) UuidShortNull
func NewUuidShortNullFromString ¶
func NewUuidShortNullFromString(value string) (UuidShortNull, error)
func (UuidShortNull) Filled ¶
func (parameter UuidShortNull) Filled() bool
func (UuidShortNull) Get ¶
func (parameter UuidShortNull) Get() (UuidShort, bool)
func (UuidShortNull) MarshalJSON ¶
func (parameter UuidShortNull) MarshalJSON() ([]byte, error)
func (*UuidShortNull) UnmarshalJSON ¶
func (parameter *UuidShortNull) UnmarshalJSON(data []byte) error
Source Files
¶
- base.go
- base64Email.go
- base64EmailNull.go
- bool.go
- boolNull.go
- byteArray.go
- dateTime.go
- dateTimeArray.go
- dateTimeNull.go
- decimal.go
- decimalNull.go
- email.go
- emailNull.go
- emptyString.go
- emptyStringNull.go
- file.go
- fileNull.go
- float.go
- floatArray.go
- floatArrayNull.go
- floatNull.go
- int.go
- int64.go
- int64Array.go
- int64Null.go
- intArray.go
- intNull.go
- ipv4.go
- ipv4Null.go
- ipv6.go
- ipv6Null.go
- jsonRawMessage.go
- jsonRawMessageArray.go
- map.go
- mapNull.go
- mediumText.go
- mediumTextNull.go
- object.go
- objectArray.go
- objectNull.go
- string.go
- stringArray.go
- stringArrayNull.go
- stringDate.go
- stringDateNull.go
- stringId.go
- stringIdNull.go
- stringNull.go
- text.go
- textNull.go
- urlEncodedBase64Email.go
- urlEncodedBase64EmailNull.go
- uuidShort.go
- uuidShortNull.go
Click to show internal directories.
Click to hide internal directories.