infrastructure

package
v3.10.0 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2024 License: MIT Imports: 4 Imported by: 1

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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