listing

package
v0.0.0-...-74567be Latest Latest
Warning

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

Go to latest
Published: May 17, 2024 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_protos_listing_detail_proto protoreflect.FileDescriptor
View Source
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) Descriptor() ([]byte, []int)

Deprecated: Use Entity.ProtoReflect.Descriptor instead.

func (*Entity) GetBusinessName

func (x *Entity) GetBusinessName() string

func (*Entity) GetBusinessUuid

func (x *Entity) GetBusinessUuid() string

func (*Entity) GetCityName

func (x *Entity) GetCityName() string

func (*Entity) GetCountryName

func (x *Entity) GetCountryName() string

func (*Entity) GetDescription

func (x *Entity) GetDescription() string

func (*Entity) GetDistrictName

func (x *Entity) GetDistrictName() string

func (*Entity) GetImages

func (x *Entity) GetImages() []*Image

func (*Entity) GetIsActive

func (x *Entity) GetIsActive() bool

func (*Entity) GetSlug

func (x *Entity) GetSlug() string

func (*Entity) GetTitle

func (x *Entity) GetTitle() string

func (*Entity) GetUuid

func (x *Entity) GetUuid() string

func (*Entity) ProtoMessage

func (*Entity) ProtoMessage()

func (*Entity) ProtoReflect

func (x *Entity) ProtoReflect() protoreflect.Message

func (*Entity) Reset

func (x *Entity) Reset()

func (*Entity) String

func (x *Entity) String() string

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

Deprecated: Use Image.ProtoReflect.Descriptor instead.

func (*Image) GetOrder

func (x *Image) GetOrder() int32

func (*Image) GetUrl

func (x *Image) GetUrl() string

func (*Image) ProtoMessage

func (*Image) ProtoMessage()

func (*Image) ProtoReflect

func (x *Image) ProtoReflect() protoreflect.Message

func (*Image) Reset

func (x *Image) Reset()

func (*Image) String

func (x *Image) String() string

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.

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

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.

Jump to

Keyboard shortcuts

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