db

package
v0.0.0-...-caf0c69 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2020 License: MIT Imports: 2 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Store

type Store struct {
	// contains filtered or unexported fields
}

Store represents DAL

func New

func New() (*Store, error)

New opens DB for usage

func (*Store) Close

func (s *Store) Close()

Close releases db handle

func (*Store) Exists

func (s *Store) Exists(id int) bool

Exists checks if offer was already persisted

func (*Store) Save

func (s *Store) Save(id int)

Save persists fetched offer ids

Jump to

Keyboard shortcuts

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