Documentation ¶
Index ¶
Constants ¶
View Source
const CURRENT_EVENT_VERSION = 1
View Source
const DB_NAME = "postgres"
View Source
const DB_PASS = "squish-words-together-fun"
View Source
const DB_PORT = "5432"
View Source
const DB_URL = "porteventstore.crg0dcdtyinh.us-west-1.rds.amazonaws.com"
NOTE in a real app you'd put these in env
View Source
const DB_USER = "portman"
View Source
const EVENTSTORE = "events" // the event table
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PGRecorder ¶
Executable implementations expose Exec with the same args as sql.DB.Exec
type PackingRecorder ¶
type PackingRecorder struct {
// contains filtered or unexported fields
}
func NewPackingRecorder ¶
func NewPackingRecorder(db PGRecorder) *PackingRecorder
type Port ¶
type Port struct { Maker string `json:"maker"` First string `json:"first"` Second string `json:"second"` Result string `json:"result"` Algo string `json:"algo"` // "rando" || "carrollian" }
Port is the repository representation of a portmanteau. It must implement the sql.driver.valuer in order to be marshal-able
Click to show internal directories.
Click to hide internal directories.