controller

package
v3.0.0-beta.1 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2019 License: OSL-3.0 Imports: 10 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Entity

type Entity struct {
	// contains filtered or unexported fields
}

Entity controller for category entity retrieval

func (*Entity) Data

func (controller *Entity) Data(c context.Context, r *web.Request, params web.RequestParams) interface{}

Data controller for category entities

func (*Entity) Inject

func (controller *Entity) Inject(service domain.CategoryService)

Inject the Entity controller required dependencies

type Tree

type Tree struct {
	// contains filtered or unexported fields
}

Tree controller for category tree retrieval

func (*Tree) Data

func (controller *Tree) Data(c context.Context, r *web.Request, params web.RequestParams) interface{}

Data controller for category trees

func (*Tree) Inject

func (controller *Tree) Inject(service domain.CategoryService)

Inject the Tree controller required dependencies

type ViewController

type ViewController struct {
	domain.CategoryService
	SearchService *application.ProductSearchService
	// contains filtered or unexported fields
}

ViewController prividing actions for category single view

func (*ViewController) Get

func (vc *ViewController) Get(c context.Context, request *web.Request) web.Result

Get Action to display a category page

func (*ViewController) Inject

func (vc *ViewController) Inject(
	responder *web.Responder,
	categoryService domain.CategoryService,
	searchService *application.ProductSearchService,
	router *web.Router,
	logger flamingo.Logger,
	paginationInfoFactory *utils.PaginationInfoFactory,
	breadcrumbService *breadcrumb.BreadcrumbService,

	config *struct {
		Template       string `inject:"config:commerce.category.view.template"`
		TeaserTemplate string `inject:"config:commerce.category.view.teaserTemplate"`
	},
)

Inject the ViewController controller required dependencies

type ViewData

type ViewData struct {
	ProductSearchResult *application.SearchResult
	Category            domain.Category
	CategoryTree        domain.Tree
	SearchMeta          searchdomain.SearchMeta
	PaginationInfo      utils.PaginationInfo
}

ViewData for rendering context

Jump to

Keyboard shortcuts

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