hotel

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2019 License: Apache-2.0 Imports: 10 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package hotel is a generated protocol buffer package.

It is generated from these files:

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

It has these top-level messages:

Request
Response

Package hotel is a generated protocol buffer package.

It is generated from these files:

github.com/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)

func RegisterHotelServer

func RegisterHotelServer(s *grpc.Server, srv HotelServer)

Types

type HotelClient

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

func NewHotelClient

func NewHotelClient(cc *grpc.ClientConn) HotelClient

type HotelHandler

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

type HotelServer

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

type HotelService

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

func NewHotelService

func NewHotelService(serviceName string, c client.Client) HotelService

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) GetInDate

func (m *Request) GetInDate() string

func (*Request) GetOutDate

func (m *Request) GetOutDate() string

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