cartservice

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2023 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 T

type T 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