pg

package
v0.0.0-...-a6120f5 Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2020 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var City = &city{}

City repository.

View Source
var (
	// ErrDuplicate occurs when the city name is the same.
	ErrDuplicate = errors.New("record is already existed")
)
View Source
var Temperature = &temperature{}

Temperature repository.

View Source
var Webhook = &webhook{}

Webhook repository.

Functions

func New

func New() *gorm.DB

New returns an initialized DB instance.

func Reset

func Reset()

Reset resets the db.

Types

This section is empty.

Jump to

Keyboard shortcuts

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