pkg

package
v0.0.0-...-82292ab Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2020 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewRunnerHandle

func NewRunnerHandle(rf RunnerFactory) http.HandlerFunc

Types

type BookRQ

type BookRQ struct {
	OptionID string
}

type BookResponse

type BookResponse struct {
	Response
	hotelx.Book
}

type DestinationSearcherResponse

type DestinationSearcherResponse struct {
	hotelx.Destination
}

type Error

type Error struct {
	Code        string
	Description string
}

type Response

type Response struct {
	Errors []Error
}

type Runner

type Runner interface {
	Run(context.Context, io.Reader) interface{}
}

type RunnerFactory

type RunnerFactory interface {
	NewRunner() Runner
}

type SearchResponse

type SearchResponse struct {
	Response
	hotelx.Search
}

type Service

type Service interface {
	Search(input conversation.Criteria) SearchResponse
	Book(optionID string) BookResponse
}

Jump to

Keyboard shortcuts

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