cache

package
v0.0.0-...-b784633 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cart

type Cart struct {
	Details []CartDetail `json:"details"`
}

type CartCache

type CartCache interface {
	Get(ctx context.Context, userId string) (Cart, error)
	Set(ctx context.Context, userId string, cart Cart) error
	Delete(ctx context.Context, userId string) error
}

type CartDetail

type CartDetail struct {
	ProductID string `json:"productId"`
	Quantity  int    `json:"quantity"`
}

Directories

Path Synopsis
Package cachemock is a generated GoMock package.
Package cachemock is a generated GoMock package.

Jump to

Keyboard shortcuts

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