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 State
- func (o *State) CountryCode() string
- func (o *State) CreatedAt() string
- func (o *State) DeletedAt() string
- func (o *State) Name() string
- func (o *State) SetCountryCode(countryCodeIso2 string) *State
- func (o *State) SetCreatedAt(createdAt string) *State
- func (o *State) SetDeletedAt(deletedAt string) *State
- func (o *State) SetName(name string) *State
- func (o *State) SetStateCode(stateCode string) *State
- func (o *State) SetStatus(status string) *State
- func (o *State) SetUpdatedAt(updatedAt string) *State
- func (o *State) StateCode() string
- func (o *State) Status() string
- func (o *State) UpdatedAt() string
- type StateQueryOptions
- type Store
- func (store *Store) AutoMigrate() error
- func (store *Store) CountryCreate(ctx context.Context, country *Country) error
- func (store *Store) CountryDelete(ctx context.Context, country *Country) error
- func (store *Store) CountryDeleteByID(ctx context.Context, id string) error
- func (store *Store) CountryFindByID(ctx context.Context, id string) (*Country, error)
- func (store *Store) CountryFindByIso2(ctx context.Context, iso2Code string) (*Country, error)
- func (store *Store) CountryList(ctx context.Context, options CountryQueryOptions) ([]Country, error)
- func (store *Store) CountryNameFindByIso2(ctx context.Context, iso2Code string) (string, error)
- func (store *Store) CountrySoftDelete(ctx context.Context, country *Country) error
- func (store *Store) CountrySoftDeleteByID(ctx context.Context, id string) error
- func (store *Store) CountryUpdate(ctx context.Context, country *Country) error
- func (st *Store) EnableDebug(debug bool)
- func (store *Store) StateCreate(state *State) error
- func (store *Store) StateList(ctx context.Context, options StateQueryOptions) ([]State, error)
- func (store *Store) StatesCreate(states []*State) error
- func (store *Store) TimezoneCreate(ctx context.Context, timezone *Timezone) error
- func (store *Store) TimezoneList(ctx context.Context, 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_STATE_CODE = "state_code"
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 STATE_STATUS_ACTIVE = "active"
View Source
const STATE_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 State ¶
type State struct {
dataobject.DataObject
}
func (*State) CountryCode ¶
func (*State) SetCountryCode ¶
func (*State) SetCreatedAt ¶
func (*State) SetDeletedAt ¶
func (*State) SetStateCode ¶
func (*State) SetUpdatedAt ¶
type StateQueryOptions ¶
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) CountryFindByID ¶
func (*Store) CountryFindByIso2 ¶
func (*Store) CountryList ¶
func (*Store) CountryNameFindByIso2 ¶
func (*Store) CountrySoftDelete ¶
func (*Store) CountrySoftDeleteByID ¶
func (*Store) CountryUpdate ¶
func (*Store) EnableDebug ¶
EnableDebug - enables the debug option
func (*Store) StateCreate ¶
func (*Store) StatesCreate ¶
func (*Store) TimezoneCreate ¶
func (*Store) TimezoneList ¶
type StoreInterface ¶
type StoreInterface interface {
AutoMigrate() error
EnableDebug(debug bool)
CountryCreate(ctx context.Context, country *Country) error
CountryDelete(ctx context.Context, country *Country) error
CountryDeleteByID(ctx context.Context, countryID string) error
CountryFindByID(ctx context.Context, countryID string) (*Country, error)
CountryFindByIso2(ctx context.Context, iso2Code string) (*Country, error)
CountryList(ctx context.Context, options CountryQueryOptions) ([]Country, error)
CountrySoftDelete(ctx context.Context, discount *Country) error
CountrySoftDeleteByID(ctx context.Context, discountID string) error
CountryUpdate(ctx context.Context, country *Country) error
TimezoneCreate(ctx context.Context, timezone *Timezone) error
TimezoneList(ctx context.Context, options TimezoneQueryOptions) ([]Timezone, error)
}
type Timezone ¶
type Timezone struct {
dataobject.DataObject
}
func NewTimezone ¶
func NewTimezone() *Timezone
func (*Timezone) CountryCode ¶
func (*Timezone) CreatedAtCarbon ¶
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 ¶
Click to show internal directories.
Click to hide internal directories.