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 Password
- type SFID
- type SFIDs
- type SecurityStringer
- type SqlValue
- type Stringer
- 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)
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 MustParseAddress ¶ added in v0.0.3
func NewAddress ¶ added in v0.0.3
func ParseAddress ¶
func (Address) MarshalText ¶
func (*Address) UnmarshalText ¶
type DefaultSetter ¶ added in v0.0.3
type DefaultSetter interface{ SetDefault() }
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 ¶ added in v0.0.2
type ErrUnmarshalExtraNonPointer string
func (ErrUnmarshalExtraNonPointer) Error ¶ added in v0.0.2
func (e ErrUnmarshalExtraNonPointer) Error() string
type ErrUnmarshalExtraNonStruct ¶ added in v0.0.2
type ErrUnmarshalExtraNonStruct string
func (ErrUnmarshalExtraNonStruct) Error ¶ added in v0.0.2
func (e ErrUnmarshalExtraNonStruct) Error() string
type SecurityStringer ¶ added in v0.0.3
type SecurityStringer interface{ SecurityString() string }
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.