Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateRandomMonth ¶
GenerateRandomMonth : generates a random month
func GenerateRandomTime ¶
GenerateRandomTime : generates a random datetime
Types ¶
type Booking ¶
type Booking struct { Form FormInput Property Property Arrival time.Time Departure time.Time BookingDate time.Time BookingFee float64 HouseOwnerFee float64 Net float64 TotalFees float64 OwnerIncome float64 }
Booking holds a booking
type Date ¶
type Date int64
Date creates a random date useful for randomness
type FormInput ¶
type FormInput struct { BookingRef string FirstName string LastName string Email string Mobile string Notes string Source Source NumberOfPeople int Gross float64 IsGreeting bool IsLaundry bool IsCleaning bool IsConsumables bool BookingDate time.Time }
FormInput holds all the form Inputs from the user
type Property ¶
type Property struct { LongName string ShortName string Calendar string Commission float64 BookingCommission float64 HouseOwnerCommission float64 Greeting float64 Laundry []float64 Cleaning float64 Consumables []float64 }
Property is used to unmarshal a JSON file of the above form
type Settings ¶
type Settings struct {
Properties []Property `json:"properties"`
}
Settings holds the settings for each property
Click to show internal directories.
Click to hide internal directories.