package
1.4.5-alpha1
Repository: https://github.com/ottemo/commerce.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
Package cart represents abstraction of business layer cart object.
Package category represents abstraction of business layer category object.
Package checkout represents abstraction of business layer checkout object.
Package cms represents abstraction of business layer cms page and cms block objects.
No description provided by the author
Package order represents abstraction of business layer purchase order object.
Package product represents abstraction of business layer product object.
No description provided by the author
Package product represents abstraction of business layer product object.
Package subscription represents abstraction of business layer purchase subscription object.
Package visitor represents abstraction of business layer visitor object.

# Functions

ApplyExtraAttributes modifies given model collection with adding extra attributes to list - default attributes are specified in StructListItem as static fields - StructListItem fields can be not a direct copy of model attribute, - extra attributes are taken from model directly.
ApplyFilters modifies collection with applying filters from request URL.
GetDeclaredModels returns all currently registered in system models.
GetListLimit returns (offset, limit, error) values based on request string value "1,2" will return offset: 1, limit: 2, error: nil "2" will return offset: 0, limit: 2, error: nil "something wrong" will return offset: 0, limit: 0, error: [error msg].
GetModel returns registered in system model.
GetModelAndSetID retrieves current model implementation and sets its ID to some value.
LoadModelByID loads model data in current implementation.
RegisterModel registers new model to system.
UnRegisterModel removes registered model from system.

# Constants

Package global constants.
Package global constants.
Package global constants.

# Variables

Package global variables.
Package global variables.
Package global variables.

# Structs

StructAttributeInfo represents type to hold business layer object attribute information.
StructListItem represents type to hold business layer object information within collection.

# Interfaces

InterfaceAttributesDelegate is a minimal interface for object attribute delegate.
InterfaceCollection represents interface to access business layer implementation collection.
InterfaceCustomAttributes represents interface to access business layer implementation object custom attributes.
InterfaceExternalAttributes represents interface to access business layer implementation object external attributes.
InterfaceListable represents interface to access business layer implementation collection via object instance.
InterfaceMedia represents interface to access business layer implementation object assigned media resources.
InterfaceModel represents interface for basic business layer implementation object.
InterfaceObject represents interface to access business layer implementation object via get/set functions.
InterfaceStorable represents interface load/store business layer implementation object from database.