application

package
v0.0.0-...-bb92df6 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2021 License: OSL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func URL

func URL(code string) (string, map[string]string)

URL to page with name

func URLWithName

func URLWithName(code, name string) (string, map[string]string)

URLWithName points to a category with a given name

Types

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

BreadcrumbService struct

func (bs *BreadcrumbService) AddBreadcrumb(ctx context.Context, tree domain.Tree)

AddBreadcrumb - add a breadcrumb based on a root category

func (bs *BreadcrumbService) Inject(router RouterRouter)

Inject required dependencies

type RouterRouter

type RouterRouter interface {
	URL(name string, params map[string]string) (*url.URL, error)
}

RouterRouter defines a interface for testing

Jump to

Keyboard shortcuts

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