Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ProductServer ¶
type ProductServer struct {
// contains filtered or unexported fields
}
func NewProductServer ¶
func NewProductServer(service ProductService) *ProductServer
func (*ProductServer) Fetch ¶
func (s *ProductServer) Fetch(ctx context.Context, req *products.FetchRequest) (*products.FetchResponse, error)
func (*ProductServer) List ¶
func (s *ProductServer) List(ctx context.Context, req *products.ListRequest) (*products.ListResponse, error)
type ProductService ¶
type ProductService interface { List(ctx context.Context, req *products.ListRequest) (*products.ListResponse, error) Fetch(ctx context.Context, req *products.FetchRequest) (*products.FetchResponse, error) }
Click to show internal directories.
Click to hide internal directories.