cartservice

package
v0.0.0-...-3e4c4f8 Latest Latest
Warning

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

Go to latest
Published: May 7, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CartItem

type CartItem struct {
	weaver.AutoMarshal
	ProductID string
	Quantity  int32
}

func (*CartItem) WeaverMarshal

func (x *CartItem) WeaverMarshal(enc *codegen.Encoder)

func (*CartItem) WeaverUnmarshal

func (x *CartItem) WeaverUnmarshal(dec *codegen.Decoder)

type CartService

type CartService interface {
	AddItem(ctx context.Context, userID string, item CartItem) error
	GetCart(ctx context.Context, userID string) ([]CartItem, error)
	EmptyCart(ctx context.Context, userID string) error
}

Jump to

Keyboard shortcuts

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