Documentation ¶
Index ¶
- func NewProductService(repository product.RepositoryProduct) pb.ProductServiceServer
- type Product
- func (p *Product) Create(ctx context.Context, request *pb.CreateRequest) (*pb.CreateResponse, error)
- func (p *Product) Downvote(ctx context.Context, request *pb.DownvoteRequest) (*pb.DownvoteResponse, error)
- func (p *Product) GetOne(ctx context.Context, request *pb.GetOneRequest) (*pb.GetOneResponse, error)
- func (p *Product) List(ctx context.Context, request *pb.ListRequest) (*pb.ListResponse, error)
- func (p *Product) Upvote(ctx context.Context, request *pb.UpvoteRequest) (*pb.UpvoteResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewProductService ¶
func NewProductService(repository product.RepositoryProduct) pb.ProductServiceServer
Types ¶
type Product ¶
type Product struct {
// contains filtered or unexported fields
}
func (*Product) Create ¶
func (p *Product) Create(ctx context.Context, request *pb.CreateRequest) (*pb.CreateResponse, error)
func (*Product) Downvote ¶
func (p *Product) Downvote(ctx context.Context, request *pb.DownvoteRequest) (*pb.DownvoteResponse, error)
func (*Product) GetOne ¶
func (p *Product) GetOne(ctx context.Context, request *pb.GetOneRequest) (*pb.GetOneResponse, error)
func (*Product) List ¶
func (p *Product) List(ctx context.Context, request *pb.ListRequest) (*pb.ListResponse, error)
func (*Product) Upvote ¶
func (p *Product) Upvote(ctx context.Context, request *pb.UpvoteRequest) (*pb.UpvoteResponse, error)
Click to show internal directories.
Click to hide internal directories.