Documentation ¶
Overview ¶
Package profile is a generated protocol buffer package.
It is generated from these files:
srv/profile/proto/profile.proto
It has these top-level messages:
Request Result Hotel Address Image
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterProfileHandler ¶
func RegisterProfileHandler(s server.Server, hdlr ProfileHandler, opts ...server.HandlerOption)
Types ¶
type Address ¶
type Address struct { StreetNumber string `protobuf:"bytes,1,opt,name=streetNumber" json:"streetNumber,omitempty"` StreetName string `protobuf:"bytes,2,opt,name=streetName" json:"streetName,omitempty"` City string `protobuf:"bytes,3,opt,name=city" json:"city,omitempty"` State string `protobuf:"bytes,4,opt,name=state" json:"state,omitempty"` Country string `protobuf:"bytes,5,opt,name=country" json:"country,omitempty"` PostalCode string `protobuf:"bytes,6,opt,name=postalCode" json:"postalCode,omitempty"` }
func (*Address) Descriptor ¶
func (*Address) ProtoMessage ¶
func (*Address) ProtoMessage()
type Hotel ¶
type Hotel struct { Id string `protobuf:"bytes,1,opt,name=id" json:"id,omitempty"` Name string `protobuf:"bytes,2,opt,name=name" json:"name,omitempty"` PhoneNumber string `protobuf:"bytes,3,opt,name=phoneNumber" json:"phoneNumber,omitempty"` Description string `protobuf:"bytes,4,opt,name=description" json:"description,omitempty"` Address *Address `protobuf:"bytes,5,opt,name=address" json:"address,omitempty"` Images []*Image `protobuf:"bytes,6,rep,name=images" json:"images,omitempty"` }
func (*Hotel) Descriptor ¶
func (*Hotel) GetAddress ¶
func (*Hotel) ProtoMessage ¶
func (*Hotel) ProtoMessage()
type Image ¶
type Image struct { Url string `protobuf:"bytes,1,opt,name=url" json:"url,omitempty"` Default bool `protobuf:"varint,2,opt,name=default" json:"default,omitempty"` }
func (*Image) Descriptor ¶
func (*Image) ProtoMessage ¶
func (*Image) ProtoMessage()
type Profile ¶
type Profile struct {
ProfileHandler
}
type ProfileClient ¶
type ProfileClient interface {
GetProfiles(ctx context.Context, in *Request, opts ...client.CallOption) (*Result, error)
}
func NewProfileClient ¶
func NewProfileClient(serviceName string, c client.Client) ProfileClient
type ProfileHandler ¶
type Request ¶
type Request struct { HotelIds []string `protobuf:"bytes,1,rep,name=hotelIds" json:"hotelIds,omitempty"` Locale string `protobuf:"bytes,2,opt,name=locale" json:"locale,omitempty"` }
func (*Request) Descriptor ¶
func (*Request) ProtoMessage ¶
func (*Request) ProtoMessage()
type Result ¶
type Result struct {
Hotels []*Hotel `protobuf:"bytes,1,rep,name=hotels" json:"hotels,omitempty"`
}
func (*Result) Descriptor ¶
func (*Result) ProtoMessage ¶
func (*Result) ProtoMessage()
Click to show internal directories.
Click to hide internal directories.