points

package
v0.0.0-...-ba8658b Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2020 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	PointsMasterTable = os.Getenv("DDB_POINTS_TABLE_NAME")
)

Functions

This section is empty.

Types

type PointsInput

type PointsInput struct {
	Username  string
	From      string
	Points    float64
	Timestamp time.Time
}

type PointsService

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

PointsService models a ddb table and methods to add

func NewPointsService

func NewPointsService(sess *session.Session) *PointsService

func (*PointsService) Put

func (p *PointsService) Put(input *PointsInput) error

type User

type User struct {
	Username     string
	Uuid         string
	Points       float64
	Transactions []PointsInput
}

Jump to

Keyboard shortcuts

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