Versions in this module Expand all Collapse all v1 v1.0.0 Jun 11, 2024 Changes in this version + 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 struct + func (s *ProfileServer) GetProfiles(ctx context.Context, req *hotelpb.GetProfilesRequest) (*hotelpb.GetProfilesResponse, error) + func (s *ProfileServer) StoreProfile(ctx context.Context, req *hotelpb.StoreProfileRequest) (*hotelpb.StoreProfileResponse, error) + type RateServer struct + func (s *RateServer) GetRates(ctx context.Context, req *hotelpb.GetRatesRequest) (*hotelpb.GetRatesResponse, error) + func (s *RateServer) StoreRate(ctx context.Context, req *hotelpb.StoreRateRequest) (*hotelpb.StoreRateResponse, error) + type ReservationServer struct + 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 struct + func (s *SearchServer) Nearby(ctx context.Context, req *hotelpb.NearbyRequest) (*hotelpb.NearbyResponse, error) + func (s *SearchServer) StoreHotelLocation(ctx context.Context, req *hotelpb.StoreHotelLocationRequest) (*hotelpb.StoreHotelLocationResponse, error) + type User struct + Password []byte + Salt string + UserId string + Username string + type UserServer struct + func (s *UserServer) Login(ctx context.Context, req *hotelpb.LoginRequest) (*hotelpb.LoginResponse, error) + func (s *UserServer) RegisterUser(ctx context.Context, req *hotelpb.RegisterUserRequest) (*hotelpb.RegisterUserResponse, error)