api

package
v0.0.0-...-137c1d9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 30, 2021 License: Apache-2.0 Imports: 14 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL