Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GoogleAuth ¶
func GoogleAuth()
func TestKarmaErrorPackage ¶ added in v1.2.24
func TestKarmaErrorPackage()
func TestKarmaFiles ¶ added in v1.3.26
func TestKarmaFiles()
func TestSendingSingleMail ¶ added in v1.4.37
func TestSendingSingleMail()
Types ¶
type Booking ¶ added in v1.5.49
type Booking struct { TableName string `karma_table:"bookings"` BookingId string `json:"booking_id"` UserId string `json:"user_id"` ServiceProviderId string `json:"service_provider_id"` ServiceId string `json:"service_id"` VenueId string `json:"venue_id"` BookingDate time.Time `json:"booking_date"` Status string `json:"status"` AdvancePaid int `json:"advance_paid"` PlanId string `json:"plan_id"` }
type JoinedBookingResult ¶ added in v1.5.49
type JoinedBookingResult struct { Users map[string]interface{} `json:"users"` Bookings map[string]interface{} `json:"bookings"` }
func GetBookingsWithUsers ¶ added in v1.5.49
func GetBookingsWithUsers(serviceProviderId string) ([]*JoinedBookingResult, error)
type JoinedResult ¶ added in v1.5.49
type JoinedResult struct { ServiceProviders ServiceProvider `json:"service_providers" db:"service_providers"` Venues Venue `json:"venues" db:"venues"` }
func GetVenues ¶ added in v1.5.49
func GetVenues(serviceProviderId string) ([]*JoinedResult, error)
type Service ¶ added in v1.3.30
type Service struct { TableName string `karma_table:"services"` ServiceId string `json:"service_id" karma:"primary;unique"` Type string `json:"type"` //"local", "online", "offline" Name string `json:"name"` Icon string `json:"icon"` Banner string `json:"banner"` Category string `json:"category"` // "food", "clothing", "electronics", "services", "entertainment", "education", "health", "beauty", "travel", "venues OfferedBy string `json:"offered_by"` // "global", "service_provider_id" Timestamp time.Time `json:"timestamp"` }
type ServicePolicies ¶ added in v1.5.49
type ServiceProvider ¶ added in v1.5.49
type ServiceProvider struct { TableName string `karma_table:"service_providers"` Id string `json:"id"` Name string `json:"name"` Email string `json:"email"` Password string `json:"password"` Phone string `json:"phone"` LogoImage string `json:"logo_image"` BannerImage string `json:"banner_image"` Address string `json:"address"` RegionsAvailable []string `json:"regions_available" db:"regions_available"` LegalName string `json:"legal_name"` LegalDocuments []string `json:"legal_documents" db:"legal_documents"` Policies ServicePolicies `json:"policies" db:"policies"` }
type User ¶ added in v1.5.49
type User struct { TableName string `karma_table:"users"` Id string `json:"id"` Email string `json:"email"` Phone string `json:"phone"` Region string `json:"region"` Address string `json:"address"` Password string `json:"password"` Name string `json:"name"` Age int `json:"age"` ProfileImage string `json:"profile_image"` Location string `json:"location"` ReferralCode string `json:"referral_code"` }
type Users ¶ added in v1.3.30
type Users struct { TableName string `karma_table:"users"` Id string `json:"id"` Email string `json:"email"` Username string `json:"username"` Name string `json:"name"` Phone string `json:"phone"` Profile string `json:"profile"` Bio string `json:"bio"` College string `json:"college"` Year int `json:"year"` Branch string `json:"branch"` Roll string `json:"roll"` JoinedAt time.Time `json:"joined_at"` }
type Venue ¶ added in v1.5.49
type Venue struct { TableName string `karma_table:"venues"` Id string `json:"id"` ServiceProvider string `json:"service_provider"` Name string `json:"name"` Address string `json:"address"` Description string `json:"description"` Media []string `json:"media" db:"media"` Location string `json:"location"` Slots []DaySlot `json:"slots" db:"slots"` PricePerSlot int `json:"price_per_slot"` MaxCapacity int `json:"max_capacity"` Region string `json:"region"` Essentials []string `json:"essentials" db:"essentials"` Accessibility bool `json:"accessibility"` Catering bool `json:"catering"` Dining bool `json:"dining"` Type string `json:"type"` }
Click to show internal directories.
Click to hide internal directories.