Documentation ¶
Index ¶
- Variables
- func CreateAttribute(ctx context.Context, attribute *domain.Attribute) error
- func CreateAttributeValue(ctx context.Context, val *domain.AttributeValue) error
- func DeleteAttribute(ctx context.Context, attribute *domain.Attribute) error
- func DeleteAttributeValue(ctx context.Context, val *domain.AttributeValue) error
- func Init() io.Closer
- func ListAttributes(ctx context.Context) ([]*domain.Attribute, error)
- func ListAttributesByItem(ctx context.Context, itemID string) ([]*domain.AttributeValue, error)
- func ReadAttribute(ctx context.Context, id string) (*domain.Attribute, error)
- func ReadAttributeBySlug(ctx context.Context, slug string) (*domain.Attribute, error)
- func ReadAttributeValue(ctx context.Context, id string) (*domain.AttributeValue, error)
- func UpdateAttribute(ctx context.Context, attribute *domain.Attribute) error
- func UpdateAttributeValue(ctx context.Context, val *domain.AttributeValue) error
Constants ¶
This section is empty.
Variables ¶
View Source
var (
Firestore *firestore.Client
)
Functions ¶
func CreateAttributeValue ¶
func CreateAttributeValue(ctx context.Context, val *domain.AttributeValue) error
func DeleteAttributeValue ¶
func DeleteAttributeValue(ctx context.Context, val *domain.AttributeValue) error
func ListAttributesByItem ¶
func ReadAttributeBySlug ¶
func ReadAttributeValue ¶
func UpdateAttributeValue ¶
func UpdateAttributeValue(ctx context.Context, val *domain.AttributeValue) error
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.