resolvers

package
v0.0.0-...-7639478 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2024 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddArticle

func AddArticle(ctx context.Context, articleID string, quantity int) (bool, error)

func CheckoutResolver

func CheckoutResolver(ctx context.Context) (bool, error)

func CurrentCartResolver

func CurrentCartResolver(ctx context.Context) (*model.Cart, error)

func DecrementArticleResolver

func DecrementArticleResolver(ctx context.Context, articleID string) (bool, error)

func FindCartById

func FindCartById(ctx context.Context, id string) (*model.Cart, error)

func IncrementArticleResolver

func IncrementArticleResolver(ctx context.Context, articleID string) (bool, error)

func RemoveArticleResolver

func RemoveArticleResolver(ctx context.Context, articleID string) (bool, error)

func ValidateCartResolver

func ValidateCartResolver(ctx context.Context) (bool, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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