database

package
v0.0.0-...-8aaa864 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExposeExists

func ExposeExists(db *storm.DB, exposeID string) error

func SaveExpose

func SaveExpose(db *storm.DB, expose Expose) error

SaveExpose inserts the handed Expose into embedded database

func Setup

func Setup() *storm.DB

Setup local database

Types

type Expose

type Expose struct {
	ID        string `storm:"unique"` // primary key
	URL       string
	Title     string
	Address   string
	Rent      string
	Size      string
	Rooms     string
	CreatedAt time.Time
}

Expose represents one immobilienscout expose

func GetExpose

func GetExpose(db *storm.DB, exposeID string) (Expose, error)

GetExpose tries to find and return an Expose identified by exposeID

Jump to

Keyboard shortcuts

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