user

package
v0.0.0-...-92b9631 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// TableName is the table used to store the data
	TableName = "trinacia"
)

Variables

View Source
var (
	// ErrorUserAlreadyExists returned when a new user is updating an already existing user
	ErrorUserAlreadyExists = errors.New("the user can't be created because it already exists")
	// ErrorInvalidUser user not found
	ErrorInvalidUser = errors.New("Invalid User ID")
	// ErrorMissingUserID missing user ID
	ErrorMissingUserID = errors.New("Missing User ID")
	// ErrorMissingUser nil pointer reference to User
	ErrorMissingUser = errors.New("Nil pointer reference passed as User")
)

Functions

This section is empty.

Types

type Storage

type Storage interface {
	StoreUser(u *entities.User) error
	GetUser(userID string) (*entities.User, error)
}

Storage interface to get information from database

func New

func New(sess *session.Session) Storage

New isntanciates a session dynamo session to query information about users

Jump to

Keyboard shortcuts

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