hotel

package
v0.0.0-...-fd3f3a4 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2016 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package hotel is a generated protocol buffer package.

It is generated from these files:

github.com/micro/micro/examples/booking/api/hotel/proto/hotel.proto

It has these top-level messages:

Request
Response

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterHotelHandler

func RegisterHotelHandler(s server.Server, hdlr HotelHandler, opts ...server.HandlerOption)

Types

type Hotel

type Hotel struct {
	HotelHandler
}

func (*Hotel) Rates

func (h *Hotel) Rates(ctx context.Context, in *Request, out *Response) error

type HotelClient

type HotelClient interface {
	Rates(ctx context.Context, in *Request, opts ...client.CallOption) (*Response, error)
}

func NewHotelClient

func NewHotelClient(serviceName string, c client.Client) HotelClient

type HotelHandler

type HotelHandler interface {
	Rates(context.Context, *Request, *Response) error
}

type Request

type Request struct {
	InDate  string `protobuf:"bytes,1,opt,name=inDate" json:"inDate,omitempty"`
	OutDate string `protobuf:"bytes,2,opt,name=outDate" json:"outDate,omitempty"`
}

func (*Request) Descriptor

func (*Request) Descriptor() ([]byte, []int)

func (*Request) ProtoMessage

func (*Request) ProtoMessage()

func (*Request) Reset

func (m *Request) Reset()

func (*Request) String

func (m *Request) String() string

type Response

type Response struct {
	Hotels    []*profile.Hotel `protobuf:"bytes,1,rep,name=hotels" json:"hotels,omitempty"`
	RatePlans []*rate.RatePlan `protobuf:"bytes,2,rep,name=ratePlans" json:"ratePlans,omitempty"`
}

func (*Response) Descriptor

func (*Response) Descriptor() ([]byte, []int)

func (*Response) GetHotels

func (m *Response) GetHotels() []*profile.Hotel

func (*Response) GetRatePlans

func (m *Response) GetRatePlans() []*rate.RatePlan

func (*Response) ProtoMessage

func (*Response) ProtoMessage()

func (*Response) Reset

func (m *Response) Reset()

func (*Response) String

func (m *Response) String() string

Jump to

Keyboard shortcuts

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