Versions in this module Expand all Collapse all v1 v1.4.4 Sep 4, 2024 v1.4.3 Sep 2, 2024 v1.4.2 Aug 29, 2024 Changes in this version type DateRange + func (m DateRange) Includes(other DateRange) bool + func (m DateRange) OverlapsWith(other DateRange) bool v1.4.1 Aug 29, 2024 Changes in this version + type Contact struct + Email string + Phone string + Website string v1.4.0 Aug 29, 2024 v1.3.0 Aug 28, 2024 v1.2.0 Aug 22, 2024 v1.1.0 Aug 22, 2024 Changes in this version + func GetCredentialOrDefault[T any](creds Credentials, key string, defaultValue T) T + func GetCredential[T any](creds Credentials, key string) (T, bool) + func GetHook[T any](acco Accommodation, name string) (*T, bool) + func NewDate(year int, month time.Month, day int) time.Time + type Accommodation struct + CreatedAt string + Externals []NameValuePair + Features []Feature + HookData map[string]HookEntry + ID string + Place string + References []AccommodationReference + Type string + UpdatedAt string + Visible bool + func (a *Accommodation) GetExternal(key string) interface{} + func (a *Accommodation) HasFeature(name string) bool + type AccommodationReference struct + BookingUrl TextMap + Calendar *ReferenceCalendar + City string + Country string + Description TextMap + DescriptionArrival TextMap + DescriptionConditions TextMap + Email string + ExternalID string + Externals []FullExternal + Facts *TypeFacts + FeaturesUnmapped [][]string + ID string + Images []Image + ImagesServices []Image + IsMaster bool + Media []Media + Name TextMap + NameAdd TextMap + NameCode TextMap + OnDemand bool + Phone string + Plz string + Position GeoCoordinates + Provider string + ProviderName string + Quality *string + Ranks []Rank + ReferenceID int + ResolverExternal map[string]string + Rooms []Room + Source []byte + Street string + Superior bool + Tags []string + Type string + URL string + XHookdata map[string]any + func (r *AccommodationReference) GetName() string + type ApartmentFacts struct + Bedrooms int + Beds int + MaxAdults int + MaxChildren int + MinAdults int + Sqm float64 + Type string + type Booking struct + Adults int + Booked string + Checkin string + Checkout string + Children int + Currency string + ExternalID string + Group string + Price float64 + Provider string + ReferenceExternalID string + ReferenceName string + Status string + Type string + func (b *Booking) FormatedPrice() string + func (b *Booking) Shortdate(d string) string + type BookingMapper interface + MapBookings func(provider *Provider) []Booking + type BookingReader interface + ReadBookings func(fromDate time.Time, toDate time.Time) (BookingMapper, error) + type CampingFacts struct + type CitiFact struct + ExternalID string + MaxAdults int32 + type CodedText struct + Code string + Name string + type CodedTextMap struct + Code string + Name TextMap + type CodedTextMaps []CodedTextMap + func (m *CodedTextMaps) Scan(src interface{}) error + func (m CodedTextMaps) Value() (driver.Value, error) + type ContentLanguage string + type Credentials map[string]interface + type CurrencyValue struct + Converted bool + Currency string + Description TextMap + Value string + func (m *CurrencyValue) Scan(src interface{}) error + type CurrencyValues []CurrencyValue + func (m *CurrencyValues) Scan(src interface{}) error + func (m CurrencyValues) Value() (driver.Value, error) + type DateRange struct + FromDate string + ToDate string + type DateRanges []DateRange + func (m *DateRanges) Scan(src interface{}) error + func (m DateRanges) Compress() (DateRanges, error) + func (m DateRanges) Value() (driver.Value, error) + type DesklineAvailability struct + AV []string + ProductId string + type DesklineOccupancies struct + Availabilities []DesklineAvailability + XMLName xml.Name + type EngineJob struct + ExternalIDs []string + Filter Filter + JobId int64 + Provider JobProvider + Query *Query + type EngineResponseRecord struct + Engine string + Group string + Name string + OrigTime float64 + Retrieved int + Time time.Time + Value float64 + type Feature struct + ID interface{} + Name string + type Filter struct + Places []string + ResolverExternal map[string]string + Type string + type FullExternal struct + Source string + TS time.Time + type GeoCoordinates struct + Lat float64 + Lng float64 + func (p *GeoCoordinates) Scan(src interface{}) error + func (p GeoCoordinates) Value() (driver.Value, error) + type GracFacts struct + AccessibleBeds int + Bathrooms int + Bedrooms int + Beds int + Catering []string + ConferenceRooms int + DiningLounges int + Showers int + SittingLounges int + Toilets int + type Group struct + ID string + Name string + type GroupVisibility struct + CreatedAt time.Time + Group string + Visible bool + type HookEntry struct + Data json.RawMessage + Executed string + StatusCode int + type HookTrigger struct + AccommodationID string + Source string + type HotelFacts struct + Beds int + Rooms int + type IOfferMapper interface + Accommodation func() *OfferAccommodation + Activities func() []string + Description func() TextMap + DescriptionHTML func() TextMap + Duration func() TextMap + EventAddress func() OfferAddress + EventDates func() DateRanges + EventLocation func() GeoCoordinates + Images func() []OfferImage + ImportantInfo func() TextMap + ImportantInfoHTML func() TextMap + InfoURL func() TextMap + MaxCapacity func() int + MeetingPoint func() TextMap + MeetingPointHTML func() TextMap + Meta func() map[string]string + PriceAdvertised func() string + PricesFrom func() []CurrencyValue + PromoCode func() string + ProviderName func() TextMap + Segments func() []CodedTextMap + ServicesIncluded func() TextMap + ServicesIncludedHTML func() TextMap + Setting func() string + Source func() ([]byte, error) + SpokenLanguages func() []SpokenLanguage + Tags func() []string + Teaser func() TextMap + TicketInfo func() TextMap + Title func() TextMap + Transport func() []string + Validity func() DateRanges + Weekdays func() []string + WidgetData func() any + type Image struct + Description TextMap + Favourite bool + Season string + SortOrder int + Title TextMap + URL string + type Images []Image + func (i *Images) Scan(src interface{}) error + func (i Images) Value() (driver.Value, error) + type ImportStat struct + Apierrors int + Country string + Filterfetch int + Place string + Provider string + Region string + Successful int + User string + Xmlerrors []string + type ImportTypes struct + Apartment bool + Hotel bool + type JSONDate struct + func NewJSONDate(year int, month time.Month, day int) JSONDate + func NewJSONDateFromTime(t time.Time) JSONDate + type JobProvider struct + CacheMinutes int + CreatedAt *time.Time + Credentials Credentials + DeeplinkTemplate *string + Engine string + Group string + Id string + Name string + Preferred bool + ResolverUrl string + SoftTimeout int + UpdatedAt *time.Time + Visible bool + type JobRoom struct + Adults int + Children int + ChildrenAge []int + type JobRooms []JobRoom + func (rooms JobRooms) PersonCount() int + type Media struct + Description string + Favourite bool + Type string + URL string + URLParameter string + type Meta map[string]string + func (m *Meta) Scan(src interface{}) error + func (m Meta) Value() (driver.Value, error) + type MinimalReference struct + Engine string + ExternalID string + ID string + Provider string + ReferenceID int + ResolverExternal map[string]string + type NameValuePair struct + Name string + Value string + type OccupyReader interface + PrepareData func() error + ReadOccupancies func(acco *MinimalReference) (*PostableOccupancies, error) + Whoami func() string + type Offer struct + Activities []string + Description TextMap + DescriptionHTML TextMap + Duration TextMap + EventAddress OfferAddress + EventDates []DateRange + EventLocation GeoCoordinates + Images []OfferImage + InfoURL TextMap + MaxCapacity int + Meta map[string]string + Place string + PricesFrom []CurrencyValue + Segments []CodedTextMap + Setting []CodedTextMap + SpokenLanguages []SpokenLanguage + Tags []string + Teaser TextMap + TicketInfo TextMap + Title TextMap + WidgetData any + func (m *Offer) Scan(src interface{}) error + func (m Offer) Value() (driver.Value, error) + type OfferAccommodation struct + AccommodationID string + Nights int + RoomCategory TextMap + RoomCategoryID int + func (m *OfferAccommodation) Scan(src interface{}) error + func (m OfferAccommodation) Value() (driver.Value, error) + type OfferAddress struct + City string + Country string + ID string + Name string + Street string + ZIP string + func (m *OfferAddress) Scan(src interface{}) error + func (m OfferAddress) IsEmpty() bool + func (m OfferAddress) Value() (driver.Value, error) + type OfferFacts struct + AdventureSeasons []string + AdventureTypes []string + ID string + Price float64 + Rkey string + type OfferImage struct + Copyright string + Title TextMap + URL string + type OfferImages []OfferImage + func (m *OfferImages) Scan(src interface{}) error + func (m OfferImages) Value() (driver.Value, error) + type OfferPlace struct + ID string + Name TextMap + type Place struct + Additionalzips []string + Type string + Zip string + type PostableOccupancies struct + AccomondationID string + ArrivalDays []int64 + FreeDays []int64 + MinStay []int64 + Provider string + Rawdata interface{} + ReferenceID int + type PostableOccupanciesExternal struct + ArrivalDays []int64 + ExternalID string + FreeDays []int64 + MinStay []int64 + ProviderID string + type Price struct + Currency string + Taxed bool + Value float64 + type Provider struct + Credentials Credentials + Engine string + Group string + ID string + ImportUrl string + Importkey string + Name string + Visible bool + func (p *Provider) GetImportTypes() ImportTypes + type Providers []Provider + func (ps Providers) SelectEngine(engine string) (newP Providers) + type Query struct + Checkin time.Time + Checkout time.Time + Currency string + Group string + Language string + Rooms []JobRoom + func (q *Query) GetAdults() int + func (q *Query) GetChildren() []int + func (q *Query) GetChildrenFromAge(age int) int + func (q *Query) GetChildrenFromToAge(minAge, maxAge int) int + func (q *Query) GetGuests() int + func (q *Query) GetGuestsFromAge(age int) int + func (q *Query) GetTravelDays() int + type Rank struct + Data map[string]interface{} + ExternalID string + Provider string + type RawResult struct + Board string + Checkin JSONDate + Checkout JSONDate + Description string + DescriptionRateCode string + ExternalId string + Includes []string + Language string + Price Price + RateCode string + ReferenceExternalId string + RoomExternalId *string + Rooms JobRooms + Terms string + Title string + Url string + type ReferenceCalendar struct + Arrival []int64 + Free []int64 + Minstay []int64 + type ReferencePost struct + Data AccommodationReference + Group string + type ResultDeliveredRecord struct + Count int + Group string + ID string + OrigTime float64 + Reference string + Time time.Time + Type string + type Room struct + Currency string + Description TextMap + ExternalID string + ID int + ImagesServices []Image + Name TextMap + ReferenceID string + type Settings []string + type SpokenLanguage struct + Code string + Name string + func SpokenLanguageFromAny(code string) (*SpokenLanguage, bool) + func SpokenLanguageFromISO839_1(code string) (*SpokenLanguage, bool) + func SpokenLanguageFromISO839_2(code string) (*SpokenLanguage, bool) + func SpokenLanguageFromISO839_3(code string) (*SpokenLanguage, bool) + type SpokenLanguages []SpokenLanguage + func (m *SpokenLanguages) Scan(src interface{}) error + func (m SpokenLanguages) Value() (driver.Value, error) + type TextMap map[string]string + func NewDefaultTextMap(langs []string, defValue string) (newMap TextMap) + func (p *TextMap) Scan(src interface{}) error + func (p TextMap) Collect() string + func (p TextMap) Empty(lang string) bool + func (p TextMap) Lang(lang string) string + func (p TextMap) LangOr(lang, fallback string) string + func (p TextMap) LangOrFirst(lang string) (string, string, bool) + func (p TextMap) Only(lang string, defaultLang string) TextMap + func (p TextMap) SetDefault(str string, langs []string) + func (p TextMap) Value() (driver.Value, error) + func (p TextMap) WithLangs(langs []string) TextMap + type TypeFacts struct + Apartment *ApartmentFacts + Camping *CampingFacts + Crac *GracFacts + Hotel *HotelFacts + Offer *OfferFacts v1.0.0 Aug 22, 2024