account

package
v0.0.0-...-684a148 Latest Latest
Warning

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

Go to latest
Published: May 5, 2020 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateAccountHandler

func CreateAccountHandler(w http.ResponseWriter, r *http.Request)

func GetAccountHandler

func GetAccountHandler(w http.ResponseWriter, r *http.Request)

func UpdateAccountHandler

func UpdateAccountHandler(w http.ResponseWriter, r *http.Request)

Types

type Account

type Account struct {
	ID        string     `json:"id" dynamodbav:"primary_key"`
	SK        string     `json:"-" dynamodbav:"sort_key,omitempty"`
	FirstName *string    `json:"first_name" dynamodbav:"first_name,omitempty"`
	LastName  *string    `json:"last_name"  dynamodbav:"last_name,omitempty"`
	CreatedOn *time.Time `json:"created_on" dynamodbav:"created_on,omitempty"`
	UpdatedOn *time.Time `json:"updated_on" dynamodbav:"updated_on,omitempty"`
}

func (*Account) GetAccountById

func (a *Account) GetAccountById(id string) error

func (*Account) NewAccount

func (a *Account) NewAccount() error

func (*Account) SaveAccount

func (a *Account) SaveAccount() error

func (*Account) UpdateAccount

func (a *Account) UpdateAccount() error

Jump to

Keyboard shortcuts

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