Documentation ¶
Index ¶
- type FormView
- type HomeController
- type RatingController
- func (c *RatingController) Form(ctx context.Context, r *web.Request) web.Result
- func (c *RatingController) FormPost(ctx context.Context, r *web.Request) web.Result
- func (c *RatingController) Inject(r *web.Responder, ratingRepository domain.RatingRepository, ...) *RatingController
- func (c *RatingController) ProductForm(ctx context.Context, r *web.Request) web.Result
- func (c *RatingController) Success(ctx context.Context, _ *web.Request) web.Result
- func (c *RatingController) View(ctx context.Context, r *web.Request) web.Result
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FormView ¶
type FormView struct { Product *domain.Product Structure []form.RatingFormField IsValid bool }
FormView is the data object for templates with the rating form
type HomeController ¶
type HomeController struct {
// contains filtered or unexported fields
}
HomeController provides the start page
func (*HomeController) Inject ¶
func (c *HomeController) Inject( r *web.Responder, ratingRepository domain.RatingRepository, productRepository domain.ProductRepository, )
Inject the dependencies
func (*HomeController) ProductList ¶
ProductList shows a list of all products with links to their review overview pages
type RatingController ¶
type RatingController struct {
// contains filtered or unexported fields
}
RatingController provides the rating related actions
func (*RatingController) Inject ¶
func (c *RatingController) Inject( r *web.Responder, ratingRepository domain.RatingRepository, productRepository domain.ProductRepository, formHandlerFactory application.FormHandlerFactory, ratingFormDataProvider *form.RatingFormDataProvider, ) *RatingController
Inject dependencies
func (*RatingController) ProductForm ¶
ProductForm shows the product selection form
Click to show internal directories.
Click to hide internal directories.