profile

package
v0.0.0-...-102771f Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2018 License: Apache-2.0 Imports: 6 Imported by: 0

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

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) Descriptor() ([]byte, []int)

func (*Address) GetCity

func (m *Address) GetCity() string

func (*Address) GetCountry

func (m *Address) GetCountry() string

func (*Address) GetPostalCode

func (m *Address) GetPostalCode() string

func (*Address) GetState

func (m *Address) GetState() string

func (*Address) GetStreetName

func (m *Address) GetStreetName() string

func (*Address) GetStreetNumber

func (m *Address) GetStreetNumber() string

func (*Address) ProtoMessage

func (*Address) ProtoMessage()

func (*Address) Reset

func (m *Address) Reset()

func (*Address) String

func (m *Address) String() string

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) Descriptor() ([]byte, []int)

func (*Hotel) GetAddress

func (m *Hotel) GetAddress() *Address

func (*Hotel) GetDescription

func (m *Hotel) GetDescription() string

func (*Hotel) GetId

func (m *Hotel) GetId() string

func (*Hotel) GetImages

func (m *Hotel) GetImages() []*Image

func (*Hotel) GetName

func (m *Hotel) GetName() string

func (*Hotel) GetPhoneNumber

func (m *Hotel) GetPhoneNumber() string

func (*Hotel) ProtoMessage

func (*Hotel) ProtoMessage()

func (*Hotel) Reset

func (m *Hotel) Reset()

func (*Hotel) String

func (m *Hotel) String() string

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) Descriptor() ([]byte, []int)

func (*Image) GetDefault

func (m *Image) GetDefault() bool

func (*Image) GetUrl

func (m *Image) GetUrl() string

func (*Image) ProtoMessage

func (*Image) ProtoMessage()

func (*Image) Reset

func (m *Image) Reset()

func (*Image) String

func (m *Image) String() string

type Profile

type Profile struct {
	ProfileHandler
}

func (*Profile) GetProfiles

func (h *Profile) GetProfiles(ctx context.Context, in *Request, out *Result) error

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 ProfileHandler interface {
	GetProfiles(context.Context, *Request, *Result) error
}

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) Descriptor() ([]byte, []int)

func (*Request) GetHotelIds

func (m *Request) GetHotelIds() []string

func (*Request) GetLocale

func (m *Request) GetLocale() string

func (*Request) ProtoMessage

func (*Request) ProtoMessage()

func (*Request) Reset

func (m *Request) Reset()

func (*Request) String

func (m *Request) String() string

type Result

type Result struct {
	Hotels []*Hotel `protobuf:"bytes,1,rep,name=hotels" json:"hotels,omitempty"`
}

func (*Result) Descriptor

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

func (*Result) GetHotels

func (m *Result) GetHotels() []*Hotel

func (*Result) ProtoMessage

func (*Result) ProtoMessage()

func (*Result) Reset

func (m *Result) Reset()

func (*Result) String

func (m *Result) String() string

Jump to

Keyboard shortcuts

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