dynamodb

package
v0.6.1-0...-0fdad61 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2018 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CardService

type CardService struct{}

CardService represents an dynamodb implementation of tuc.CardService.

func (*CardService) Create

func (s *CardService) Create(card *tuc.Card) error

Create a new card.

func (*CardService) Delete

func (s *CardService) Delete(userID, cardID string) error

Delete card.

func (*CardService) Get

func (s *CardService) Get(userID, cardID string) (*tuc.Card, error)

Get individual card.

func (*CardService) List

func (s *CardService) List(userID string) ([]tuc.Card, error)

List all Cards.

func (*CardService) Update

func (s *CardService) Update(userID, cardID string, balance float64) (*tuc.Card, error)

Update a card.

type LoginRequestService

type LoginRequestService struct{}

LoginRequestService represents an dynamodb implementation of tuc.LoginRequestService.

func (*LoginRequestService) Create

func (s *LoginRequestService) Create(request *tuc.LoginRequest) error

Create a new login request.

func (*LoginRequestService) Delete

func (s *LoginRequestService) Delete(email, code string) error

Delete a login request.

func (*LoginRequestService) Verify

func (s *LoginRequestService) Verify(email, token string) error

Verify a login request.

type UserService

type UserService struct{}

UserService represents an dynamodb implementation of tuc.UserService.

func (*UserService) Create

func (s *UserService) Create(user *tuc.User) error

Create creates a new user.

func (*UserService) Find

func (s *UserService) Find(id string) (*tuc.User, error)

Find returns the User with the specified id.

func (*UserService) Update

func (s *UserService) Update(user *tuc.User) error

Update an user.

Jump to

Keyboard shortcuts

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