Documentation ¶
Overview ¶
Package profile is a generated protocol buffer package.
It is generated from these files:
github.com/micro/examples/booking/srv/profile/proto/profile.proto
It has these top-level messages:
Request Result Hotel Address Image
Package profile is a generated protocol buffer package.
It is generated from these files:
github.com/micro/examples/booking/srv/profile/proto/profile.proto
It has these top-level messages:
Request Result Hotel Address Image
Index ¶
- func RegisterProfileHandler(s server.Server, hdlr ProfileHandler, opts ...server.HandlerOption)
- type Address
- func (*Address) Descriptor() ([]byte, []int)
- func (m *Address) GetCity() string
- func (m *Address) GetCountry() string
- 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 Profile
- type ProfileClient
- type ProfileHandler
- type Request
- type Result
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) 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" 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) 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 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) 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.