Documentation ¶
Overview ¶
Package profile is a generated protocol buffer package.
It is generated from these files:
services/profile/proto/profile.proto
It has these top-level messages:
Request Result Hotel Address Image
Index ¶
- func RegisterProfileServer(s *grpc.Server, srv ProfileServer)
- type Address
- func (*Address) Descriptor() ([]byte, []int)
- func (m *Address) GetCity() string
- func (m *Address) GetCountry() string
- func (m *Address) GetLat() float32
- func (m *Address) GetLon() float32
- func (m *Address) GetPostalCode() string
- func (m *Address) GetState() string
- func (m *Address) GetStreetName() string
- func (m *Address) GetStreetNumber() string
- func (*Address) ProtoMessage()
- func (m *Address) Reset()
- func (m *Address) String() string
- type Hotel
- func (*Hotel) Descriptor() ([]byte, []int)
- func (m *Hotel) GetAddress() *Address
- func (m *Hotel) GetDescription() string
- func (m *Hotel) GetId() string
- func (m *Hotel) GetImages() []*Image
- func (m *Hotel) GetName() string
- func (m *Hotel) GetPhoneNumber() string
- func (*Hotel) ProtoMessage()
- func (m *Hotel) Reset()
- func (m *Hotel) String() string
- type Image
- type ProfileClient
- type ProfileServer
- type Request
- type Result
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterProfileServer ¶
func RegisterProfileServer(s *grpc.Server, srv ProfileServer)
Types ¶
type Address ¶
type Address struct { StreetNumber string `protobuf:"bytes,1,opt,name=streetNumber" bson:"streetNumber,omitempty"` StreetName string `protobuf:"bytes,2,opt,name=streetName" bson:"streetName,omitempty"` City string `protobuf:"bytes,3,opt,name=city" bson:"city,omitempty"` State string `protobuf:"bytes,4,opt,name=state" bson:"state,omitempty"` Country string `protobuf:"bytes,5,opt,name=country" bson:"country,omitempty"` PostalCode string `protobuf:"bytes,6,opt,name=postalCode" bson:"postalCode,omitempty"` Lat float32 `protobuf:"fixed32,7,opt,name=lat" bson:"lat,omitempty"` Lon float32 `protobuf:"fixed32,8,opt,name=lon" bson:"lon,omitempty"` }
func (*Address) Descriptor ¶
func (*Address) GetCountry ¶
func (*Address) GetPostalCode ¶
func (*Address) GetStreetName ¶
func (*Address) GetStreetNumber ¶
func (*Address) ProtoMessage ¶
func (*Address) ProtoMessage()
type Hotel ¶
type Hotel struct { Id string `protobuf:"bytes,1,opt,name=id" bson:"id,omitempty"` Name string `protobuf:"bytes,2,opt,name=name" bson:"name,omitempty"` PhoneNumber string `protobuf:"bytes,3,opt,name=phoneNumber" bson:"phoneNumber,omitempty"` Description string `protobuf:"bytes,4,opt,name=description" bson:"description,omitempty"` Address *Address `protobuf:"bytes,5,opt,name=address" bson:"address,omitempty"` Images []*Image `protobuf:"bytes,6,rep,name=images" bson:"images,omitempty"` }
func (*Hotel) Descriptor ¶
func (*Hotel) GetAddress ¶
func (*Hotel) GetDescription ¶
func (*Hotel) GetPhoneNumber ¶
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) GetDefault ¶
func (*Image) ProtoMessage ¶
func (*Image) ProtoMessage()
type ProfileClient ¶
type ProfileClient interface {
GetProfiles(ctx context.Context, in *Request, opts ...grpc.CallOption) (*Result, error)
}
func NewProfileClient ¶
func NewProfileClient(cc *grpc.ClientConn) ProfileClient
type ProfileServer ¶
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) GetHotelIds ¶
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.