product

package
v0.0.0-...-6fe8f37 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

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)

Jump to

Keyboard shortcuts

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