Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CategoryServiceFixed

type CategoryServiceFixed struct {

	// contains filtered or unexported fields

}

CategoryServiceFixed - a secondary adapter for category service that returns simple categories based from configuration

func (*CategoryServiceFixed) Get

func (c *CategoryServiceFixed) Get(ctx context.Context, categoryCode string) (domain.Category, error)

Get a category with more data

func (*CategoryServiceFixed) Inject

func (c *CategoryServiceFixed) Inject(config *struct {
	Tree config.Map `inject:"config:commerce.category.categoryServiceFixed.tree"`
})

Inject - dingo injector

func (*CategoryServiceFixed) Tree

func (c *CategoryServiceFixed) Tree(ctx context.Context, activeCategoryCode string) (domain.Tree, error)

Tree a category