strongomodels

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CreatedTimeGetter

type CreatedTimeGetter interface {
	GetCreatedTime() time.Time
}

type PreferredLocaleHolder

type PreferredLocaleHolder interface {
	SetPreferredLocale(code5 string) error
	GetPreferredLocale() string
}

type UpdateTimeGetter

type UpdateTimeGetter interface {
	GetUpdatedTime() time.Time
}

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

Jump to

Keyboard shortcuts

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