foo

package
v0.0.0-...-cee63af Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Postgresql

type Postgresql struct{}

Postgresql carries the connection to the database, and the methods to interact with it.

func NewPostgres

func NewPostgres() *Postgresql

NewPostgres instantiates a new Postgresql struct.

func (Postgresql) Fetch

func (p Postgresql) Fetch() error

Fetch fetches foo entities from the database. In our example, we simulate an network error which we would not like to expose on HTTP responses.

Jump to

Keyboard shortcuts

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