Documentation
¶
Overview ¶
Package api contains validation wrappers over BookingService endpoints.
Index ¶
Constants ¶
View Source
const TimeoutDuration = 30 * time.Second
TimeoutDuration represents the API response timeout duration in miliseconds.
Variables ¶
This section is empty.
Functions ¶
func BookingAvailability ¶
func BookingAvailability(reqPB *pb.BookingAvailabilityRequest, conn *HTTPConnection, endpoint string) error
BookingAvailability requests the rooms and metadata, that are available for a specified request context
func BookingSubmit ¶
func BookingSubmit(reqPB *pb.BookingSubmitRequest, conn *HTTPConnection, endpoint string) error
BookingSubmit requests the rooms and metadata, that are available for a specified request context
Types ¶
type HTTPConnection ¶
type HTTPConnection struct {
// contains filtered or unexported fields
}
HTTPConnection is a convenience struct for holding connection-related objects.
func InitHTTPConnection ¶
func InitHTTPConnection(serverAddr, credentialsFile, caFile, fullServerName string) (*HTTPConnection, error)
InitHTTPConnection creates and returns a new HTTPConnection object with a given server address and username/password.
Click to show internal directories.
Click to hide internal directories.