Documentation
¶
Index ¶
Constants ¶
View Source
const ( // CodeTypeMissingBrand indicates that brand header is no present on the request CodeTypeMissingBrand errors.CodeType = "MISSING_BRAND" )
View Source
const ContextKeyBrandID string = "brand_id"
ContextKeyBrandID is the key used to retrieve and save brand into the context
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BrandFiller ¶
type BrandFiller struct {
// contains filtered or unexported fields
}
BrandFiller structure responsible for injecting the brand into HTTP request context.
func MustNewBrandFiller ¶
func MustNewBrandFiller(logger infra.Logger) BrandFiller
MustNewBrandFiller creates a new instance of the Brand structure. It panics if any error is found.
func NewBrandFiller ¶
func NewBrandFiller(logger infra.Logger) (BrandFiller, error)
NewBrandFiller creates a new instance of the Brand structure
Click to show internal directories.
Click to hide internal directories.