Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConfirmationTokenStatusType ¶
type ConfirmationTokenStatusType string
const ( CONFIRMATION_TOKEN_VALID ConfirmationTokenStatusType = "valid" CONFIRMATION_TOKEN_INVALID ConfirmationTokenStatusType = "invalid" )
type Event ¶
type Event struct { Id bson.ObjectId `json:"id" bson:"_id"` DisplayId string `json:"display_id" bson:"display_id"` AdminUser string `json:"admin_user" bson:"admin_user"` Slots []Slot `json:"slots" bson:"slots"` Name string `json:"name" bson:"name"` Meetings []Meeting `json:"meetings" bson:"meetings"` GuestWebsite string `json:"guest_website" bson:"-"` CreatedAt time.Time `json:"created_at" bson:"created_at"` UpdatedAt time.Time `json:"updated_at" bson:"updated_at"` }
type Guest ¶
type Guest struct { Id bson.ObjectId `json:"id" bson:"_id"` DisplayId string `json:"display_id" bson:"display_id"` FirstName string `json:"first_name" bson:"first_name"` LastName string `json:"last_name" bson:"last_name"` Email string `json:"email" bson:"email"` Phone string `json:"phone" bson:"phone"` Details map[string]string `json:"details" bson:"details"` CreatedAt time.Time `json:"created_at" bson:"created_at"` UpdatedAt time.Time `json:"updated_at" bson:"updated_at"` }
type Meeting ¶
type Meeting struct { Id bson.ObjectId `json:"id" bson:"_id"` DisplayId string `json:"display_id" bson:"display_id"` StartTime time.Time `json:"start_time" bson:"start_time"` EndTime time.Time `json:"end_time" bson:"end_time"` Guest Guest `json:"guest" bson:"guest"` UserId string `json:"user_id" bson:"user_id"` CreatedAt time.Time `json:"created_at" bson:"created_at"` UpdatedAt time.Time `json:"updated_at" bson:"updated_at"` }
type RecoverTokenStatusType ¶
type RecoverTokenStatusType string
const ( RECOVER_TOKEN_VALID RecoverTokenStatusType = "valid" RECOVER_TOKEN_INVALID RecoverTokenStatusType = "invalid" )
type Slot ¶
type Slot struct { Id bson.ObjectId `json:"id" bson:"_id"` DisplayId string `json:"display_id" bson:"display_id"` StartTime time.Time `json:"start_time" bson:"start_time"` EndTime time.Time `json:"end_time" bson:"end_time"` User string `json:"user" bson:"user"` Interval uint `json:"interval" bson:"interval"` CreatedAt time.Time `json:"created_at" bson:"created_at"` UpdatedAt time.Time `json:"updated_at" bson:"updated_at"` }
type User ¶
type User struct { Id bson.ObjectId `json:"id" bson:"_id"` DisplayId string `json:"display_id" bson:"display_id"` FirstName string `json:"first_name" bson:"first_name"` LastName string `json:"last_name" bson:"last_name"` Email string `json:"email" bson:"email"` Hash []byte `json:"-" bson:"hash"` ConfirmationToken string `json:"-" bson:"confirmation_token"` ConfirmationTokenStatus ConfirmationTokenStatusType `json:"-" bson:"confirmation_token_status"` Confirmed bool `json:"-" bson:"confirmed"` Status UserStatusType `json:"-" bson:"status"` RecoverToken string `json:"-" bson:"recovery_token"` RecoverTokenExpiry time.Time `json:"-" bson:"recovery_token_expiry"` RecoverTokenStatus RecoverTokenStatusType `json:"-" bson:"recovery_token_status"` CreatedAt time.Time `json:"created_at" bson:"created_at"` UpdatedAt time.Time `json:"updated_at" bson:"updated_at"` }
type UserStatusType ¶
type UserStatusType string
const ( USER_NOT_CONFIRMED UserStatusType = "not_confirmed" USER_CONFIRMED UserStatusType = "confirmed" )
Click to show internal directories.
Click to hide internal directories.