Documentation ¶
Overview ¶
Package storage provides database-related implementations.
Index ¶
Constants ¶
View Source
const GreetingsTable = "greetings"
GreetingsTable is the name of the table.
Variables ¶
View Source
var Migrations embed.FS
Migrations provide database migrations.
Functions ¶
This section is empty.
Types ¶
type GreetingRow ¶
type GreetingRow struct { ID int `db:"id,omitempty"` Message string `db:"message"` CreatedAt time.Time `db:"created_at"` }
GreetingRow describes database mapping.
type GreetingSaver ¶
GreetingSaver saves greetings to database.
func (*GreetingSaver) GreetingMaker ¶
func (gs *GreetingSaver) GreetingMaker() greeting.Maker
GreetingMaker implements service provider.
Click to show internal directories.
Click to hide internal directories.