listingpb

package
v0.0.0-...-4b190b9 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: AGPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_pkg_listings_pb_listings_proto protoreflect.FileDescriptor
View Source
var ListingsService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "listings.ListingsService",
	HandlerType: (*ListingsServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "CreateListing",
			Handler:    _ListingsService_CreateListing_Handler,
		},
		{
			MethodName: "GetListing",
			Handler:    _ListingsService_GetListing_Handler,
		},
		{
			MethodName: "GetListings",
			Handler:    _ListingsService_GetListings_Handler,
		},
		{
			MethodName: "GetListingsByUser",
			Handler:    _ListingsService_GetListingsByUser_Handler,
		},
		{
			MethodName: "UpdateListing",
			Handler:    _ListingsService_UpdateListing_Handler,
		},
		{
			MethodName: "UpdateListingStatus",
			Handler:    _ListingsService_UpdateListingStatus_Handler,
		},
		{
			MethodName: "DeleteListing",
			Handler:    _ListingsService_DeleteListing_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "pkg/listings/pb/listings.proto",
}

ListingsService_ServiceDesc is the grpc.ServiceDesc for ListingsService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterListingsServiceServer

func RegisterListingsServiceServer(s grpc.ServiceRegistrar, srv ListingsServiceServer)

Types

type CreateListingRequest

type CreateListingRequest struct {
	Name        string   `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Description string   `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
	Price       string   `protobuf:"bytes,3,opt,name=price,proto3" json:"price,omitempty"`
	Chunk       []byte   `protobuf:"bytes,4,opt,name=chunk,proto3" json:"chunk,omitempty"`
	TagNames    []string `protobuf:"bytes,5,rep,name=tag_names,json=tagNames,proto3" json:"tag_names,omitempty"`
	UserId      string   `protobuf:"bytes,6,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateListingRequest) Descriptor deprecated

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

Deprecated: Use CreateListingRequest.ProtoReflect.Descriptor instead.

func (*CreateListingRequest) GetChunk

func (x *CreateListingRequest) GetChunk() []byte

func (*CreateListingRequest) GetDescription

func (x *CreateListingRequest) GetDescription() string

func (*CreateListingRequest) GetName

func (x *CreateListingRequest) GetName() string

func (*CreateListingRequest) GetPrice

func (x *CreateListingRequest) GetPrice() string

func (*CreateListingRequest) GetTagNames

func (x *CreateListingRequest) GetTagNames() []string

func (*CreateListingRequest) GetUserId

func (x *CreateListingRequest) GetUserId() string

func (*CreateListingRequest) ProtoMessage

func (*CreateListingRequest) ProtoMessage()

func (*CreateListingRequest) ProtoReflect

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

func (*CreateListingRequest) Reset

func (x *CreateListingRequest) Reset()

func (*CreateListingRequest) String

func (x *CreateListingRequest) String() string

type CreateListingResponse

type CreateListingResponse struct {
	Id  string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Uri string `protobuf:"bytes,2,opt,name=uri,proto3" json:"uri,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateListingResponse) Descriptor deprecated

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

Deprecated: Use CreateListingResponse.ProtoReflect.Descriptor instead.

func (*CreateListingResponse) GetId

func (x *CreateListingResponse) GetId() string

func (*CreateListingResponse) GetUri

func (x *CreateListingResponse) GetUri() string

func (*CreateListingResponse) ProtoMessage

func (*CreateListingResponse) ProtoMessage()

func (*CreateListingResponse) ProtoReflect

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

func (*CreateListingResponse) Reset

func (x *CreateListingResponse) Reset()

func (*CreateListingResponse) String

func (x *CreateListingResponse) String() string

type DeleteListingRequest

type DeleteListingRequest struct {
	Id     string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	UserId string `protobuf:"bytes,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	// contains filtered or unexported fields
}

func (*DeleteListingRequest) Descriptor deprecated

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

Deprecated: Use DeleteListingRequest.ProtoReflect.Descriptor instead.

func (*DeleteListingRequest) GetId

func (x *DeleteListingRequest) GetId() string

func (*DeleteListingRequest) GetUserId

func (x *DeleteListingRequest) GetUserId() string

func (*DeleteListingRequest) ProtoMessage

func (*DeleteListingRequest) ProtoMessage()

func (*DeleteListingRequest) ProtoReflect

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

func (*DeleteListingRequest) Reset

func (x *DeleteListingRequest) Reset()

func (*DeleteListingRequest) String

func (x *DeleteListingRequest) String() string

type GetListingRequest

type GetListingRequest struct {
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*GetListingRequest) Descriptor deprecated

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

Deprecated: Use GetListingRequest.ProtoReflect.Descriptor instead.

func (*GetListingRequest) GetId

func (x *GetListingRequest) GetId() 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 {
	Id          string   `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Name        string   `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	Description string   `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`
	Price       string   `protobuf:"bytes,4,opt,name=price,proto3" json:"price,omitempty"`
	Uri         string   `protobuf:"bytes,5,opt,name=uri,proto3" json:"uri,omitempty"`
	TagNames    []string `protobuf:"bytes,6,rep,name=tag_names,json=tagNames,proto3" json:"tag_names,omitempty"`
	UserId      string   `protobuf:"bytes,7,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	Username    string   `protobuf:"bytes,8,opt,name=username,proto3" json:"username,omitempty"`
	// contains filtered or unexported fields
}

func (*GetListingResponse) Descriptor deprecated

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

Deprecated: Use GetListingResponse.ProtoReflect.Descriptor instead.

func (*GetListingResponse) GetDescription

func (x *GetListingResponse) GetDescription() string

func (*GetListingResponse) GetId

func (x *GetListingResponse) GetId() string

func (*GetListingResponse) GetName

func (x *GetListingResponse) GetName() string

func (*GetListingResponse) GetPrice

func (x *GetListingResponse) GetPrice() string

func (*GetListingResponse) GetTagNames

func (x *GetListingResponse) GetTagNames() []string

func (*GetListingResponse) GetUri

func (x *GetListingResponse) GetUri() string

func (*GetListingResponse) GetUserId

func (x *GetListingResponse) GetUserId() string

func (*GetListingResponse) GetUsername

func (x *GetListingResponse) GetUsername() string

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 GetListingsByUserRequest

type GetListingsByUserRequest struct {
	UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	// contains filtered or unexported fields
}

func (*GetListingsByUserRequest) Descriptor deprecated

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

Deprecated: Use GetListingsByUserRequest.ProtoReflect.Descriptor instead.

func (*GetListingsByUserRequest) GetUserId

func (x *GetListingsByUserRequest) GetUserId() string

func (*GetListingsByUserRequest) ProtoMessage

func (*GetListingsByUserRequest) ProtoMessage()

func (*GetListingsByUserRequest) ProtoReflect

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

func (*GetListingsByUserRequest) Reset

func (x *GetListingsByUserRequest) Reset()

func (*GetListingsByUserRequest) String

func (x *GetListingsByUserRequest) String() string

type GetListingsResponse

type GetListingsResponse struct {
	Listings []*GetListingResponse `protobuf:"bytes,1,rep,name=listings,proto3" json:"listings,omitempty"`
	// contains filtered or unexported fields
}

func (*GetListingsResponse) Descriptor deprecated

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

Deprecated: Use GetListingsResponse.ProtoReflect.Descriptor instead.

func (*GetListingsResponse) GetListings

func (x *GetListingsResponse) GetListings() []*GetListingResponse

func (*GetListingsResponse) ProtoMessage

func (*GetListingsResponse) ProtoMessage()

func (*GetListingsResponse) ProtoReflect

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

func (*GetListingsResponse) Reset

func (x *GetListingsResponse) Reset()

func (*GetListingsResponse) String

func (x *GetListingsResponse) String() string

type Listing

type Listing struct {
	Id          string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Name        string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`
	Price       string `protobuf:"bytes,4,opt,name=price,proto3" json:"price,omitempty"`
	Uri         string `protobuf:"bytes,5,opt,name=uri,proto3" json:"uri,omitempty"`
	CreatedAt   string `protobuf:"bytes,6,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	UpdatedAt   string `protobuf:"bytes,7,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`
	Tags        []*Tag `protobuf:"bytes,8,rep,name=tags,proto3" json:"tags,omitempty"`
	// contains filtered or unexported fields
}

func (*Listing) Descriptor deprecated

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

Deprecated: Use Listing.ProtoReflect.Descriptor instead.

func (*Listing) GetCreatedAt

func (x *Listing) GetCreatedAt() string

func (*Listing) GetDescription

func (x *Listing) GetDescription() string

func (*Listing) GetId

func (x *Listing) GetId() string

func (*Listing) GetName

func (x *Listing) GetName() string

func (*Listing) GetPrice

func (x *Listing) GetPrice() string

func (*Listing) GetTags

func (x *Listing) GetTags() []*Tag

func (*Listing) GetUpdatedAt

func (x *Listing) GetUpdatedAt() string

func (*Listing) GetUri

func (x *Listing) GetUri() 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 ListingsServiceClient

type ListingsServiceClient interface {
	CreateListing(ctx context.Context, in *CreateListingRequest, opts ...grpc.CallOption) (*CreateListingResponse, error)
	GetListing(ctx context.Context, in *GetListingRequest, opts ...grpc.CallOption) (*GetListingResponse, error)
	GetListings(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*GetListingsResponse, error)
	GetListingsByUser(ctx context.Context, in *GetListingsByUserRequest, opts ...grpc.CallOption) (*GetListingsResponse, error)
	UpdateListing(ctx context.Context, in *UpdateListingRequest, opts ...grpc.CallOption) (*UpdateListingResponse, error)
	UpdateListingStatus(ctx context.Context, in *UpdateListingStatusRequest, opts ...grpc.CallOption) (*UpdateListingStatusResponse, error)
	DeleteListing(ctx context.Context, in *DeleteListingRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
}

ListingsServiceClient is the client API for ListingsService 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 ListingsServiceServer

type ListingsServiceServer interface {
	CreateListing(context.Context, *CreateListingRequest) (*CreateListingResponse, error)
	GetListing(context.Context, *GetListingRequest) (*GetListingResponse, error)
	GetListings(context.Context, *emptypb.Empty) (*GetListingsResponse, error)
	GetListingsByUser(context.Context, *GetListingsByUserRequest) (*GetListingsResponse, error)
	UpdateListing(context.Context, *UpdateListingRequest) (*UpdateListingResponse, error)
	UpdateListingStatus(context.Context, *UpdateListingStatusRequest) (*UpdateListingStatusResponse, error)
	DeleteListing(context.Context, *DeleteListingRequest) (*emptypb.Empty, error)
	// contains filtered or unexported methods
}

ListingsServiceServer is the server API for ListingsService service. All implementations must embed UnimplementedListingsServiceServer for forward compatibility

type Tag

type Tag struct {
	Id   string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

func (*Tag) Descriptor deprecated

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

Deprecated: Use Tag.ProtoReflect.Descriptor instead.

func (*Tag) GetId

func (x *Tag) GetId() string

func (*Tag) GetName

func (x *Tag) GetName() string

func (*Tag) ProtoMessage

func (*Tag) ProtoMessage()

func (*Tag) ProtoReflect

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

func (*Tag) Reset

func (x *Tag) Reset()

func (*Tag) String

func (x *Tag) String() string

type UnimplementedListingsServiceServer

type UnimplementedListingsServiceServer struct {
}

UnimplementedListingsServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedListingsServiceServer) CreateListing

func (UnimplementedListingsServiceServer) DeleteListing

func (UnimplementedListingsServiceServer) GetListing

func (UnimplementedListingsServiceServer) GetListings

func (UnimplementedListingsServiceServer) GetListingsByUser

func (UnimplementedListingsServiceServer) UpdateListing

func (UnimplementedListingsServiceServer) UpdateListingStatus

type UnsafeListingsServiceServer

type UnsafeListingsServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeListingsServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ListingsServiceServer will result in compilation errors.

type UpdateListingRequest

type UpdateListingRequest struct {
	Id          string   `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Name        string   `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	Description string   `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`
	Price       string   `protobuf:"bytes,4,opt,name=price,proto3" json:"price,omitempty"`
	TagNames    []string `protobuf:"bytes,5,rep,name=tag_names,json=tagNames,proto3" json:"tag_names,omitempty"`
	UserId      string   `protobuf:"bytes,6,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateListingRequest) Descriptor deprecated

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

Deprecated: Use UpdateListingRequest.ProtoReflect.Descriptor instead.

func (*UpdateListingRequest) GetDescription

func (x *UpdateListingRequest) GetDescription() string

func (*UpdateListingRequest) GetId

func (x *UpdateListingRequest) GetId() string

func (*UpdateListingRequest) GetName

func (x *UpdateListingRequest) GetName() string

func (*UpdateListingRequest) GetPrice

func (x *UpdateListingRequest) GetPrice() string

func (*UpdateListingRequest) GetTagNames

func (x *UpdateListingRequest) GetTagNames() []string

func (*UpdateListingRequest) GetUserId

func (x *UpdateListingRequest) GetUserId() string

func (*UpdateListingRequest) ProtoMessage

func (*UpdateListingRequest) ProtoMessage()

func (*UpdateListingRequest) ProtoReflect

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

func (*UpdateListingRequest) Reset

func (x *UpdateListingRequest) Reset()

func (*UpdateListingRequest) String

func (x *UpdateListingRequest) String() string

type UpdateListingResponse

type UpdateListingResponse struct {
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateListingResponse) Descriptor deprecated

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

Deprecated: Use UpdateListingResponse.ProtoReflect.Descriptor instead.

func (*UpdateListingResponse) GetId

func (x *UpdateListingResponse) GetId() string

func (*UpdateListingResponse) ProtoMessage

func (*UpdateListingResponse) ProtoMessage()

func (*UpdateListingResponse) ProtoReflect

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

func (*UpdateListingResponse) Reset

func (x *UpdateListingResponse) Reset()

func (*UpdateListingResponse) String

func (x *UpdateListingResponse) String() string

type UpdateListingStatusRequest

type UpdateListingStatusRequest struct {
	Id     string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Status string `protobuf:"bytes,2,opt,name=status,proto3" json:"status,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateListingStatusRequest) Descriptor deprecated

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

Deprecated: Use UpdateListingStatusRequest.ProtoReflect.Descriptor instead.

func (*UpdateListingStatusRequest) GetId

func (*UpdateListingStatusRequest) GetStatus

func (x *UpdateListingStatusRequest) GetStatus() string

func (*UpdateListingStatusRequest) ProtoMessage

func (*UpdateListingStatusRequest) ProtoMessage()

func (*UpdateListingStatusRequest) ProtoReflect

func (*UpdateListingStatusRequest) Reset

func (x *UpdateListingStatusRequest) Reset()

func (*UpdateListingStatusRequest) String

func (x *UpdateListingStatusRequest) String() string

type UpdateListingStatusResponse

type UpdateListingStatusResponse struct {
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateListingStatusResponse) Descriptor deprecated

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

Deprecated: Use UpdateListingStatusResponse.ProtoReflect.Descriptor instead.

func (*UpdateListingStatusResponse) GetId

func (*UpdateListingStatusResponse) ProtoMessage

func (*UpdateListingStatusResponse) ProtoMessage()

func (*UpdateListingStatusResponse) ProtoReflect

func (*UpdateListingStatusResponse) Reset

func (x *UpdateListingStatusResponse) Reset()

func (*UpdateListingStatusResponse) String

func (x *UpdateListingStatusResponse) String() string

Jump to

Keyboard shortcuts

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