listing

package
v0.0.0-...-588a488 Latest Latest
Warning

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

Go to latest
Published: May 10, 2021 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

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

Deprecated: Use Listing.ProtoReflect.Descriptor instead.

func (*Listing) GetDescription

func (x *Listing) GetDescription() string

func (*Listing) GetId

func (x *Listing) GetId() string

func (*Listing) GetMediaId

func (x *Listing) GetMediaId() string

func (*Listing) GetTitle

func (x *Listing) GetTitle() string

func (*Listing) ProtoMessage

func (*Listing) ProtoMessage()

func (*Listing) ProtoReflect

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

func (*Listing) Reset

func (x *Listing) Reset()

func (*Listing) String

func (x *Listing) String() string

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) GetListing

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.

Jump to

Keyboard shortcuts

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