Documentation
¶
Index ¶
- Constants
- type Country
- func (o *Country) Continent() string
- func (o *Country) CreatedAt() string
- func (o *Country) DeletedAt() string
- func (o *Country) IsoCode2() string
- func (o *Country) IsoCode3() string
- func (o *Country) Name() string
- func (o *Country) PhonePrefix() string
- func (o *Country) SetContinent(continent string) *Country
- func (o *Country) SetCreatedAt(createdAt string) *Country
- func (o *Country) SetDeletedAt(deletedAt string) *Country
- func (o *Country) SetIsoCode2(isoCode2 string) *Country
- func (o *Country) SetIsoCode3(isoCode3 string) *Country
- func (o *Country) SetName(name string) *Country
- func (o *Country) SetPhonePrefix(phonePrefix string) *Country
- func (o *Country) SetStatus(status string) *Country
- func (o *Country) SetUpdatedAt(updatedAt string) *Country
- func (o *Country) Status() string
- func (o *Country) UpdatedAt() string
- type CountryQueryOptions
- type NewStoreOptions
- type Store
- func (store *Store) AutoMigrate() error
- func (store *Store) CountryCreate(country *Country) error
- func (store *Store) CountryDelete(country *Country) error
- func (store *Store) CountryDeleteByID(id string) error
- func (store *Store) CountryFindByID(id string) (*Country, error)
- func (store *Store) CountryFindByIso2(iso2Code string) (*Country, error)
- func (store *Store) CountryList(options CountryQueryOptions) ([]Country, error)
- func (store *Store) CountryNameFindByIso2(iso2Code string) (string, error)
- func (store *Store) CountrySoftDelete(country *Country) error
- func (store *Store) CountrySoftDeleteByID(id string) error
- func (store *Store) CountryUpdate(country *Country) error
- func (st *Store) EnableDebug(debug bool)
- func (store *Store) TimezoneCreate(timezone *Timezone) error
- func (store *Store) TimezoneList(options TimezoneQueryOptions) ([]Timezone, error)
- type StoreInterface
- type Timezone
- func (o *Timezone) CountryCode() string
- func (o *Timezone) CreatedAt() string
- func (o *Timezone) CreatedAtCarbon() carbon.Carbon
- func (o *Timezone) DeletedAt() string
- func (o *Timezone) GlobalName() string
- func (o *Timezone) Offset() string
- func (o *Timezone) SetCountryCode(countryCode string) *Timezone
- func (o *Timezone) SetCreatedAt(createdAt string) *Timezone
- func (o *Timezone) SetDeletedAt(deletedAt string) *Timezone
- func (o *Timezone) SetGlobalName(globalName string) *Timezone
- func (o *Timezone) SetOffset(offset string) *Timezone
- func (o *Timezone) SetStatus(status string) *Timezone
- func (o *Timezone) SetTimezone(timezone string) *Timezone
- func (o *Timezone) SetUpdatedAt(updatedAt string) *Timezone
- func (o *Timezone) SetZoneName(zoneName string) *Timezone
- func (o *Timezone) Status() string
- func (o *Timezone) Timezone() string
- func (o *Timezone) UpdatedAt() string
- func (o *Timezone) UpdatedAtCarbon() carbon.Carbon
- func (o *Timezone) ZoneName() string
- type TimezoneQueryOptions
Constants ¶
View Source
const COLUMN_CONTINENT = "continent"
View Source
const COLUMN_COUNTRY_CODE = "country_code"
View Source
const COLUMN_CREATED_AT = "created_at"
View Source
const COLUMN_DELETED_AT = "deleted_at"
View Source
const COLUMN_GLOBAL_NAME = "global_name"
View Source
const COLUMN_ID = "id"
View Source
const COLUMN_ISO2_CODE = "iso2_code"
View Source
const COLUMN_ISO3_CODE = "iso3_code"
View Source
const COLUMN_NAME = "name"
View Source
const COLUMN_OFFSET = "offset"
View Source
const COLUMN_PHONE_PREFIX = "phone_prefix"
View Source
const COLUMN_STATUS = "status"
View Source
const COLUMN_TIMEZONE = "timezone"
View Source
const COLUMN_UPDATED_AT = "updated_at"
View Source
const COLUMN_ZONE_NAME = "zone_name"
View Source
const COUNTRY_STATUS_ACTIVE = "active"
View Source
const COUNTRY_STATUS_INACTIVE = "inactive"
View Source
const TIMEZONE_STATUS_ACTIVE = "active"
View Source
const TIMEZONE_STATUS_INACTIVE = "inactive"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Country ¶
type Country struct {
dataobject.DataObject
}
func NewCountry ¶
func NewCountry() *Country
func (*Country) PhonePrefix ¶
func (*Country) SetContinent ¶
func (*Country) SetCreatedAt ¶
func (*Country) SetDeletedAt ¶
func (*Country) SetIsoCode2 ¶
func (*Country) SetIsoCode3 ¶
func (*Country) SetPhonePrefix ¶
func (*Country) SetUpdatedAt ¶
type CountryQueryOptions ¶
type NewStoreOptions ¶
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
func NewStore ¶
func NewStore(options NewStoreOptions) (*Store, error)
func (*Store) CountryCreate ¶
func (*Store) CountryDelete ¶
func (*Store) CountryDeleteByID ¶
func (*Store) CountryFindByIso2 ¶
func (*Store) CountryList ¶
func (store *Store) CountryList(options CountryQueryOptions) ([]Country, error)
func (*Store) CountryNameFindByIso2 ¶ added in v0.5.0
func (*Store) CountrySoftDelete ¶
func (*Store) CountrySoftDeleteByID ¶
func (*Store) CountryUpdate ¶
func (*Store) EnableDebug ¶
EnableDebug - enables the debug option
func (*Store) TimezoneCreate ¶
func (*Store) TimezoneList ¶
func (store *Store) TimezoneList(options TimezoneQueryOptions) ([]Timezone, error)
type StoreInterface ¶
type StoreInterface interface { CountryCreate(country *Country) error CountryDelete(country *Country) error CountryDeleteByID(countryID string) error CountryFindByID(countryID string) (*Country, error) CountryFindByIso2(iso2Code string) (*Country, error) CountryList(options CountryQueryOptions) ([]Country, error) CountrySoftDelete(discount *Country) error CountrySoftDeleteByID(discountID string) error CountryUpdate(country *Country) error TimezoneCreate(timezone *Timezone) error TimezoneList(options TimezoneQueryOptions) ([]Timezone, error) }
type Timezone ¶
type Timezone struct {
dataobject.DataObject
}
func NewTimezone ¶
func NewTimezone() *Timezone
func (*Timezone) CountryCode ¶
func (*Timezone) CreatedAtCarbon ¶
func (o *Timezone) CreatedAtCarbon() carbon.Carbon
func (*Timezone) GlobalName ¶
func (*Timezone) SetCountryCode ¶
func (*Timezone) SetCreatedAt ¶
func (*Timezone) SetDeletedAt ¶
func (*Timezone) SetGlobalName ¶
func (*Timezone) SetTimezone ¶
func (*Timezone) SetUpdatedAt ¶
func (*Timezone) SetZoneName ¶
func (*Timezone) UpdatedAtCarbon ¶
func (o *Timezone) UpdatedAtCarbon() carbon.Carbon
Click to show internal directories.
Click to hide internal directories.