Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CreatedTimeGetter ¶
type PreferredLocaleHolder ¶
type UpdateTimeGetter ¶
type WithCreatedTimestamp ¶
type WithCreatedTimestamp struct {
DtCreated time.Time `json:"dtCreated,omitempty" firestore:"dtCreated,omitempty" dalgo:"dtCreated,omitempty"`
}
func (*WithCreatedTimestamp) GetCreatedTime ¶
func (u *WithCreatedTimestamp) GetCreatedTime() time.Time
type WithPreferredLocale ¶
type WithPreferredLocale struct {
PreferredLocale string `json:"preferredLocale,omitempty" dalgo:"preferredLocale,omitempty" firestore:"preferredLocale,omitempty"`
}
WithPreferredLocale is a struct for setting preferred locale of a user or a contact
func (*WithPreferredLocale) GetPreferredLocale ¶
func (u *WithPreferredLocale) GetPreferredLocale() string
GetPreferredLocale gets preferred locale
func (*WithPreferredLocale) SetPreferredLocale ¶
func (u *WithPreferredLocale) SetPreferredLocale(v string) error
SetPreferredLocale sets preferred locale
type WithUpdatedTimestamp ¶
type WithUpdatedTimestamp struct {
DtUpdated time.Time `json:"dtUpdated,omitempty" dalgo:"dtUpdated,omitempty" firestore:"dtUpdated,omitempty" `
}
WithUpdatedTimestamp is a struct that implements UpdateTimeGetter
func (*WithUpdatedTimestamp) GetUpdatedTime ¶
func (u *WithUpdatedTimestamp) GetUpdatedTime() time.Time
GetUpdatedTime returns the time the record was last updated
func (*WithUpdatedTimestamp) SetUpdatedTime ¶
func (u *WithUpdatedTimestamp) SetUpdatedTime(t time.Time) error
Click to show internal directories.
Click to hide internal directories.