Documentation ¶
Index ¶
- func AddHotelAvailability(ctx context.Context, hotelId string, capacity int) string
- func CheckAvailability(ctx context.Context, customerName string, hotelIds []string, inDate string, ...) []string
- func FrontendReservation(ctx context.Context, hotelId string, inDate string, outDate string, rooms int, ...) bool
- func GetProfiles(ctx context.Context, hotelIds []string) []*hotelpb.HotelProfile
- func GetRates(ctx context.Context, hotelIds []string) []*hotelpb.Rate
- func GetUserId(ctx context.Context, username string) string
- func Login(ctx context.Context, username string, password string) string
- func MakeReservation(ctx context.Context, customerName string, hotelId string, inDate string, ...) bool
- func Nearby(ctx context.Context, inDate string, outDate string, location string) []*hotelpb.Rate
- func RegisterUser(ctx context.Context, username string, password string) bool
- func SearchHotels(ctx context.Context, inDate string, outDate string, location string) []*hotelpb.HotelProfile
- func StoreHotel(ctx context.Context, hotelId string, name string, phone string, ...) string
- func StoreHotelLocation(ctx context.Context, hotelId string, location string) string
- func StoreProfile(ctx context.Context, profile *hotelpb.HotelProfile) string
- func StoreRate(ctx context.Context, rate *hotelpb.Rate) string
- type ProfileServer
- type RateServer
- type ReservationServer
- func (s *ReservationServer) AddHotelAvailability(ctx context.Context, req *hotelpb.AddHotelAvailabilityRequest) (*hotelpb.AddHotelAvailabilityResponse, error)
- func (s *ReservationServer) CheckAvailability(ctx context.Context, req *hotelpb.CheckAvailabilityRequest) (*hotelpb.CheckAvailabilityResponse, error)
- func (s *ReservationServer) MakeReservation(ctx context.Context, req *hotelpb.MakeReservationRequest) (*hotelpb.MakeReservationResponse, error)
- type SearchServer
- type User
- type UserServer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddHotelAvailability ¶
func CheckAvailability ¶
func FrontendReservation ¶
func GetProfiles ¶
func GetProfiles(ctx context.Context, hotelIds []string) []*hotelpb.HotelProfile
func MakeReservation ¶
func SearchHotels ¶
func StoreHotel ¶
func StoreHotelLocation ¶
func StoreProfile ¶
func StoreProfile(ctx context.Context, profile *hotelpb.HotelProfile) string
Types ¶
type ProfileServer ¶
type ProfileServer struct {
hotelpb.UnimplementedProfileServiceServer
}
func (*ProfileServer) GetProfiles ¶
func (s *ProfileServer) GetProfiles(ctx context.Context, req *hotelpb.GetProfilesRequest) (*hotelpb.GetProfilesResponse, error)
func (*ProfileServer) StoreProfile ¶
func (s *ProfileServer) StoreProfile(ctx context.Context, req *hotelpb.StoreProfileRequest) (*hotelpb.StoreProfileResponse, error)
type RateServer ¶
type RateServer struct {
hotelpb.UnimplementedRateServiceServer
}
func (*RateServer) GetRates ¶
func (s *RateServer) GetRates(ctx context.Context, req *hotelpb.GetRatesRequest) (*hotelpb.GetRatesResponse, error)
func (*RateServer) StoreRate ¶
func (s *RateServer) StoreRate(ctx context.Context, req *hotelpb.StoreRateRequest) (*hotelpb.StoreRateResponse, error)
type ReservationServer ¶
type ReservationServer struct {
hotelpb.UnimplementedReservationServiceServer
}
func (*ReservationServer) AddHotelAvailability ¶
func (s *ReservationServer) AddHotelAvailability(ctx context.Context, req *hotelpb.AddHotelAvailabilityRequest) (*hotelpb.AddHotelAvailabilityResponse, error)
func (*ReservationServer) CheckAvailability ¶
func (s *ReservationServer) CheckAvailability(ctx context.Context, req *hotelpb.CheckAvailabilityRequest) (*hotelpb.CheckAvailabilityResponse, error)
func (*ReservationServer) MakeReservation ¶
func (s *ReservationServer) MakeReservation(ctx context.Context, req *hotelpb.MakeReservationRequest) (*hotelpb.MakeReservationResponse, error)
type SearchServer ¶
type SearchServer struct {
hotelpb.UnimplementedSearchServiceServer
}
func (*SearchServer) Nearby ¶
func (s *SearchServer) Nearby(ctx context.Context, req *hotelpb.NearbyRequest) (*hotelpb.NearbyResponse, error)
func (*SearchServer) StoreHotelLocation ¶
func (s *SearchServer) StoreHotelLocation(ctx context.Context, req *hotelpb.StoreHotelLocationRequest) (*hotelpb.StoreHotelLocationResponse, error)
type UserServer ¶
type UserServer struct {
hotelpb.UnimplementedUserServiceServer
}
func (*UserServer) Login ¶
func (s *UserServer) Login(ctx context.Context, req *hotelpb.LoginRequest) (*hotelpb.LoginResponse, error)
func (*UserServer) RegisterUser ¶
func (s *UserServer) RegisterUser(ctx context.Context, req *hotelpb.RegisterUserRequest) (*hotelpb.RegisterUserResponse, error)
Click to show internal directories.
Click to hide internal directories.