Documentation
¶
Index ¶
- Constants
- Variables
- func UnmarshalExtra(ext url.Values, v any) error
- type Address
- type Binary
- type CanBeZero
- type DefaultSetter
- type Endpoint
- type ErrUnmarshalExtraNonPointer
- type ErrUnmarshalExtraNonStruct
- type JSONValue
- type Password
- type SFID
- type SFIDs
- type SecurityStringer
- type SqlValue
- type Stringer
- type TextValue
- type Timestamp
- func (Timestamp) DataType(_ string) string
- func (t *Timestamp) Equal(compared Timestamp) bool
- func (t *Timestamp) EqualMicroSeconds(compared Timestamp) bool
- func (t *Timestamp) EqualMillionSeconds(compared Timestamp) bool
- func (t *Timestamp) EqualSeconds(compared Timestamp) bool
- func (t Timestamp) IsZero() bool
- func (t Timestamp) MarshalText() ([]byte, error)
- func (t *Timestamp) Scan(value any) error
- func (t Timestamp) String() string
- func (t *Timestamp) UnmarshalText(data []byte) error
- func (t Timestamp) Value() (driver.Value, error)
- type UUID
Constants ¶
View Source
const AddressSchemeName = "asset"
View Source
const (
// DefaultTimestampLayout default timestamp layout
DefaultTimestampLayout = "2006-01-02T15:04:05.000Z07:00"
)
View Source
const MaskedPassword = "--------"
Variables ¶
View Source
var ( UTC = time.UTC CST = time.FixedZone("CST", 8*60*60) TimestampZero = Timestamp{time.Time{}} TimestampUnixZero = Timestamp{time.Unix(0, 0)} )
View Source
var ( RtTextUnmarshaller = reflect.TypeOf((*encoding.TextUnmarshaler)(nil)).Elem() RtTextMarshaller = reflect.TypeOf((*encoding.TextMarshaler)(nil)).Elem() )
Reflects
Functions ¶
Types ¶
type Address ¶
type Address struct {
// contains filtered or unexported fields
}
func NewAddress ¶
func ParseAddress ¶
func (Address) MarshalText ¶
func (*Address) UnmarshalText ¶
type Endpoint ¶
type Endpoint struct { Scheme string Host string Port uint16 Base string Path string Username string Password Password Param url.Values }
func ParseEndpoint ¶
func (Endpoint) MarshalText ¶
func (Endpoint) SecurityString ¶
func (*Endpoint) UnmarshalText ¶
type ErrUnmarshalExtraNonPointer ¶
type ErrUnmarshalExtraNonPointer string
func (ErrUnmarshalExtraNonPointer) Error ¶
func (e ErrUnmarshalExtraNonPointer) Error() string
type ErrUnmarshalExtraNonStruct ¶
type ErrUnmarshalExtraNonStruct string
func (ErrUnmarshalExtraNonStruct) Error ¶
func (e ErrUnmarshalExtraNonStruct) Error() string
type TextValue ¶ added in v0.0.8
type TextValue interface { encoding.TextUnmarshaler encoding.TextMarshaler }
type Timestamp ¶
openapi:strfmt date-time
func (*Timestamp) EqualMicroSeconds ¶
func (*Timestamp) EqualMillionSeconds ¶
func (*Timestamp) EqualSeconds ¶
func (Timestamp) MarshalText ¶
func (*Timestamp) UnmarshalText ¶
Source Files
¶
Click to show internal directories.
Click to hide internal directories.