store

package
v0.0.0-...-a07a55b Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2022 License: MIT-0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DynamoDBStore

type DynamoDBStore struct {
	// contains filtered or unexported fields
}

func NewDynamoDBStore

func NewDynamoDBStore(ctx context.Context, tableName string) *DynamoDBStore

func (*DynamoDBStore) All

func (d *DynamoDBStore) All(ctx context.Context, next *string) (types.ProductRange, error)

func (*DynamoDBStore) Delete

func (d *DynamoDBStore) Delete(ctx context.Context, id string) error

func (*DynamoDBStore) Get

func (d *DynamoDBStore) Get(ctx context.Context, id string) (*types.Product, error)

func (*DynamoDBStore) Put

func (d *DynamoDBStore) Put(ctx context.Context, product types.Product) error

type MemoryStore

type MemoryStore struct {
	// contains filtered or unexported fields
}

func NewMemoryStore

func NewMemoryStore() *MemoryStore

func (*MemoryStore) All

func (m *MemoryStore) All(ctx context.Context, next *string) (types.ProductRange, error)

func (*MemoryStore) Delete

func (m *MemoryStore) Delete(ctx context.Context, id string) error

func (*MemoryStore) Get

func (m *MemoryStore) Get(ctx context.Context, id string) (*types.Product, error)

func (*MemoryStore) Put

func (m *MemoryStore) Put(ctx context.Context, p types.Product) error

Jump to

Keyboard shortcuts

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