Documentation ¶
Index ¶
- Variables
- func RegisterListingServiceServer(s grpc.ServiceRegistrar, srv ListingServiceServer)
- type Entity
- func (*Entity) Descriptor() ([]byte, []int)deprecated
- func (x *Entity) GetBusinessName() string
- func (x *Entity) GetBusinessUuid() string
- func (x *Entity) GetCityName() string
- func (x *Entity) GetCountryName() string
- func (x *Entity) GetDescription() string
- func (x *Entity) GetDistrictName() string
- func (x *Entity) GetImages() []*Image
- func (x *Entity) GetIsActive() bool
- func (x *Entity) GetSlug() string
- func (x *Entity) GetTitle() string
- func (x *Entity) GetUuid() string
- func (*Entity) ProtoMessage()
- func (x *Entity) ProtoReflect() protoreflect.Message
- func (x *Entity) Reset()
- func (x *Entity) String() string
- type GetEntityRequest
- func (*GetEntityRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetEntityRequest) GetLocale() string
- func (x *GetEntityRequest) GetUuid() string
- func (*GetEntityRequest) ProtoMessage()
- func (x *GetEntityRequest) ProtoReflect() protoreflect.Message
- func (x *GetEntityRequest) Reset()
- func (x *GetEntityRequest) String() string
- type Image
- type ListingServiceClient
- type ListingServiceServer
- type UnimplementedListingServiceServer
- type UnsafeListingServiceServer
Constants ¶
This section is empty.
Variables ¶
var File_protos_listing_detail_proto protoreflect.FileDescriptor
var ListingService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "listing.ListingService", HandlerType: (*ListingServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetEntity", Handler: _ListingService_GetEntity_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "protos/listing_detail.proto", }
ListingService_ServiceDesc is the grpc.ServiceDesc for ListingService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterListingServiceServer ¶
func RegisterListingServiceServer(s grpc.ServiceRegistrar, srv ListingServiceServer)
Types ¶
type Entity ¶
type Entity struct { Uuid string `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty"` Title string `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"` Slug string `protobuf:"bytes,3,opt,name=slug,proto3" json:"slug,omitempty"` Description string `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"` BusinessUuid string `protobuf:"bytes,5,opt,name=business_uuid,json=businessUuid,proto3" json:"business_uuid,omitempty"` BusinessName string `protobuf:"bytes,6,opt,name=business_name,json=businessName,proto3" json:"business_name,omitempty"` CityName string `protobuf:"bytes,7,opt,name=city_name,json=cityName,proto3" json:"city_name,omitempty"` DistrictName string `protobuf:"bytes,8,opt,name=district_name,json=districtName,proto3" json:"district_name,omitempty"` CountryName string `protobuf:"bytes,9,opt,name=country_name,json=countryName,proto3" json:"country_name,omitempty"` Images []*Image `protobuf:"bytes,10,rep,name=images,proto3" json:"images,omitempty"` IsActive bool `protobuf:"varint,11,opt,name=is_active,json=isActive,proto3" json:"is_active,omitempty"` // contains filtered or unexported fields }
func (*Entity) Descriptor
deprecated
func (*Entity) GetBusinessName ¶
func (*Entity) GetBusinessUuid ¶
func (*Entity) GetCityName ¶
func (*Entity) GetCountryName ¶
func (*Entity) GetDescription ¶
func (*Entity) GetDistrictName ¶
func (*Entity) GetIsActive ¶
func (*Entity) ProtoMessage ¶
func (*Entity) ProtoMessage()
func (*Entity) ProtoReflect ¶
func (x *Entity) ProtoReflect() protoreflect.Message
type GetEntityRequest ¶
type GetEntityRequest struct { Uuid string `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty"` Locale string `protobuf:"bytes,2,opt,name=locale,proto3" json:"locale,omitempty"` // contains filtered or unexported fields }
func (*GetEntityRequest) Descriptor
deprecated
func (*GetEntityRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetEntityRequest.ProtoReflect.Descriptor instead.
func (*GetEntityRequest) GetLocale ¶
func (x *GetEntityRequest) GetLocale() string
func (*GetEntityRequest) GetUuid ¶
func (x *GetEntityRequest) GetUuid() string
func (*GetEntityRequest) ProtoMessage ¶
func (*GetEntityRequest) ProtoMessage()
func (*GetEntityRequest) ProtoReflect ¶
func (x *GetEntityRequest) ProtoReflect() protoreflect.Message
func (*GetEntityRequest) Reset ¶
func (x *GetEntityRequest) Reset()
func (*GetEntityRequest) String ¶
func (x *GetEntityRequest) String() string
type Image ¶
type Image struct { Url string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"` Order int32 `protobuf:"varint,2,opt,name=order,proto3" json:"order,omitempty"` // contains filtered or unexported fields }
func (*Image) Descriptor
deprecated
func (*Image) ProtoMessage ¶
func (*Image) ProtoMessage()
func (*Image) ProtoReflect ¶
func (x *Image) ProtoReflect() protoreflect.Message
type ListingServiceClient ¶
type ListingServiceClient interface {
GetEntity(ctx context.Context, in *GetEntityRequest, opts ...grpc.CallOption) (*Entity, error)
}
ListingServiceClient is the client API for ListingService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewListingServiceClient ¶
func NewListingServiceClient(cc grpc.ClientConnInterface) ListingServiceClient
type ListingServiceServer ¶
type ListingServiceServer interface { GetEntity(context.Context, *GetEntityRequest) (*Entity, error) // contains filtered or unexported methods }
ListingServiceServer is the server API for ListingService service. All implementations must embed UnimplementedListingServiceServer for forward compatibility
type UnimplementedListingServiceServer ¶
type UnimplementedListingServiceServer struct { }
UnimplementedListingServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedListingServiceServer) GetEntity ¶
func (UnimplementedListingServiceServer) GetEntity(context.Context, *GetEntityRequest) (*Entity, error)
type UnsafeListingServiceServer ¶
type UnsafeListingServiceServer interface {
// contains filtered or unexported methods
}
UnsafeListingServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ListingServiceServer will result in compilation errors.