datastore

package
v0.0.0-...-6d949e7 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2020 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package datastore contains the interfaces that the Order service in the ACME Serverless Fitness Shop needs to store and retrieve data. In order to add a new service, the Manager interface needs to be implemented.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Manager

type Manager interface {
	AddOrder(o acmeserverless.Order) (acmeserverless.Order, error)
	AllOrders() (acmeserverless.Orders, error)
	UserOrders(userID string) (acmeserverless.Orders, error)
	UpdateStatus(s acmeserverless.ShipmentData) (acmeserverless.Order, error)
}

Manager is the interface that describes the methods the data store needs to implement to be able to work with the ACME Serverless Fitness Shop.

Directories

Path Synopsis
Package dynamodb leverages Amazon DynamoDB, a key-value and document database that delivers single-digit millisecond performance at any scale to store data.
Package dynamodb leverages Amazon DynamoDB, a key-value and document database that delivers single-digit millisecond performance at any scale to store data.
Package mongodb leverages cross-platform document-oriented database program.
Package mongodb leverages cross-platform document-oriented database program.

Jump to

Keyboard shortcuts

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