dao

package
v0.0.0-...-73856a8 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2020 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Firestore *firestore.Client
)

Functions

func CreateItem

func CreateItem(ctx context.Context, item *domain.Item) error

func DeleteItem

func DeleteItem(ctx context.Context, item *domain.Item) error

func Init

func Init()

Init starts up the database access object package and configures a database.

func ReadItem

func ReadItem(ctx context.Context, id string) (*domain.Item, error)

func ReadItemBySlug

func ReadItemBySlug(ctx context.Context, slug string) (*domain.Item, error)

func UpdateItem

func UpdateItem(ctx context.Context, item *domain.Item) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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