Documentation
¶
Index ¶
- Variables
- func RegisterListingsServer(s grpc.ServiceRegistrar, srv ListingsServer)
- type BulkGetListingsRequest
- func (*BulkGetListingsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *BulkGetListingsRequest) GetListingIds() []string
- func (*BulkGetListingsRequest) ProtoMessage()
- func (x *BulkGetListingsRequest) ProtoReflect() protoreflect.Message
- func (x *BulkGetListingsRequest) Reset()
- func (x *BulkGetListingsRequest) String() string
- type BulkGetListingsResponse
- func (*BulkGetListingsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *BulkGetListingsResponse) GetListings() []*Listing
- func (*BulkGetListingsResponse) ProtoMessage()
- func (x *BulkGetListingsResponse) ProtoReflect() protoreflect.Message
- func (x *BulkGetListingsResponse) Reset()
- func (x *BulkGetListingsResponse) String() string
- type GetListingRequest
- type GetListingResponse
- func (*GetListingResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetListingResponse) GetListing() *Listing
- func (*GetListingResponse) ProtoMessage()
- func (x *GetListingResponse) ProtoReflect() protoreflect.Message
- func (x *GetListingResponse) Reset()
- func (x *GetListingResponse) String() string
- type Listing
- func (*Listing) Descriptor() ([]byte, []int)deprecated
- func (x *Listing) GetDescription() string
- func (x *Listing) GetId() string
- func (x *Listing) GetMediaId() string
- func (x *Listing) GetTitle() string
- func (*Listing) ProtoMessage()
- func (x *Listing) ProtoReflect() protoreflect.Message
- func (x *Listing) Reset()
- func (x *Listing) String() string
- type ListingsClient
- type ListingsServer
- type UnimplementedListingsServer
- type UnsafeListingsServer
Constants ¶
This section is empty.
Variables ¶
var File_listing_listing_proto protoreflect.FileDescriptor
var Listings_ServiceDesc = grpc.ServiceDesc{ ServiceName: "listing.Listings", HandlerType: (*ListingsServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "BulkGetListings", Handler: _Listings_BulkGetListings_Handler, }, { MethodName: "GetListing", Handler: _Listings_GetListing_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "listing/listing.proto", }
Listings_ServiceDesc is the grpc.ServiceDesc for Listings service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterListingsServer ¶
func RegisterListingsServer(s grpc.ServiceRegistrar, srv ListingsServer)
Types ¶
type BulkGetListingsRequest ¶
type BulkGetListingsRequest struct { ListingIds []string `protobuf:"bytes,1,rep,name=listing_ids,json=listingIds,proto3" json:"listing_ids,omitempty"` // contains filtered or unexported fields }
func (*BulkGetListingsRequest) Descriptor
deprecated
func (*BulkGetListingsRequest) Descriptor() ([]byte, []int)
Deprecated: Use BulkGetListingsRequest.ProtoReflect.Descriptor instead.
func (*BulkGetListingsRequest) GetListingIds ¶
func (x *BulkGetListingsRequest) GetListingIds() []string
func (*BulkGetListingsRequest) ProtoMessage ¶
func (*BulkGetListingsRequest) ProtoMessage()
func (*BulkGetListingsRequest) ProtoReflect ¶
func (x *BulkGetListingsRequest) ProtoReflect() protoreflect.Message
func (*BulkGetListingsRequest) Reset ¶
func (x *BulkGetListingsRequest) Reset()
func (*BulkGetListingsRequest) String ¶
func (x *BulkGetListingsRequest) String() string
type BulkGetListingsResponse ¶
type BulkGetListingsResponse struct { Listings []*Listing `protobuf:"bytes,1,rep,name=listings,proto3" json:"listings,omitempty"` // contains filtered or unexported fields }
func (*BulkGetListingsResponse) Descriptor
deprecated
func (*BulkGetListingsResponse) Descriptor() ([]byte, []int)
Deprecated: Use BulkGetListingsResponse.ProtoReflect.Descriptor instead.
func (*BulkGetListingsResponse) GetListings ¶
func (x *BulkGetListingsResponse) GetListings() []*Listing
func (*BulkGetListingsResponse) ProtoMessage ¶
func (*BulkGetListingsResponse) ProtoMessage()
func (*BulkGetListingsResponse) ProtoReflect ¶
func (x *BulkGetListingsResponse) ProtoReflect() protoreflect.Message
func (*BulkGetListingsResponse) Reset ¶
func (x *BulkGetListingsResponse) Reset()
func (*BulkGetListingsResponse) String ¶
func (x *BulkGetListingsResponse) String() string
type GetListingRequest ¶
type GetListingRequest struct { ListingId string `protobuf:"bytes,1,opt,name=listing_id,json=listingId,proto3" json:"listing_id,omitempty"` // contains filtered or unexported fields }
func (*GetListingRequest) Descriptor
deprecated
func (*GetListingRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetListingRequest.ProtoReflect.Descriptor instead.
func (*GetListingRequest) GetListingId ¶
func (x *GetListingRequest) GetListingId() string
func (*GetListingRequest) ProtoMessage ¶
func (*GetListingRequest) ProtoMessage()
func (*GetListingRequest) ProtoReflect ¶
func (x *GetListingRequest) ProtoReflect() protoreflect.Message
func (*GetListingRequest) Reset ¶
func (x *GetListingRequest) Reset()
func (*GetListingRequest) String ¶
func (x *GetListingRequest) String() string
type GetListingResponse ¶
type GetListingResponse struct { Listing *Listing `protobuf:"bytes,1,opt,name=listing,proto3" json:"listing,omitempty"` // contains filtered or unexported fields }
func (*GetListingResponse) Descriptor
deprecated
func (*GetListingResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetListingResponse.ProtoReflect.Descriptor instead.
func (*GetListingResponse) GetListing ¶
func (x *GetListingResponse) GetListing() *Listing
func (*GetListingResponse) ProtoMessage ¶
func (*GetListingResponse) ProtoMessage()
func (*GetListingResponse) ProtoReflect ¶
func (x *GetListingResponse) ProtoReflect() protoreflect.Message
func (*GetListingResponse) Reset ¶
func (x *GetListingResponse) Reset()
func (*GetListingResponse) String ¶
func (x *GetListingResponse) String() string
type Listing ¶
type Listing struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Title string `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"` Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"` MediaId string `protobuf:"bytes,4,opt,name=media_id,json=mediaId,proto3" json:"media_id,omitempty"` // contains filtered or unexported fields }
func (*Listing) Descriptor
deprecated
func (*Listing) GetDescription ¶
func (*Listing) GetMediaId ¶
func (*Listing) ProtoMessage ¶
func (*Listing) ProtoMessage()
func (*Listing) ProtoReflect ¶
func (x *Listing) ProtoReflect() protoreflect.Message
type ListingsClient ¶
type ListingsClient interface { BulkGetListings(ctx context.Context, in *BulkGetListingsRequest, opts ...grpc.CallOption) (*BulkGetListingsResponse, error) GetListing(ctx context.Context, in *GetListingRequest, opts ...grpc.CallOption) (*GetListingResponse, error) }
ListingsClient is the client API for Listings 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 NewListingsClient ¶
func NewListingsClient(cc grpc.ClientConnInterface) ListingsClient
type ListingsServer ¶
type ListingsServer interface { BulkGetListings(context.Context, *BulkGetListingsRequest) (*BulkGetListingsResponse, error) GetListing(context.Context, *GetListingRequest) (*GetListingResponse, error) // contains filtered or unexported methods }
ListingsServer is the server API for Listings service. All implementations must embed UnimplementedListingsServer for forward compatibility
type UnimplementedListingsServer ¶
type UnimplementedListingsServer struct { }
UnimplementedListingsServer must be embedded to have forward compatible implementations.
func (UnimplementedListingsServer) BulkGetListings ¶
func (UnimplementedListingsServer) BulkGetListings(context.Context, *BulkGetListingsRequest) (*BulkGetListingsResponse, error)
func (UnimplementedListingsServer) GetListing ¶
func (UnimplementedListingsServer) GetListing(context.Context, *GetListingRequest) (*GetListingResponse, error)
type UnsafeListingsServer ¶
type UnsafeListingsServer interface {
// contains filtered or unexported methods
}
UnsafeListingsServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ListingsServer will result in compilation errors.