storage

package
v0.0.0-...-50c2691 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewPostgreStorage

func NewPostgreStorage() *postgresStorage

returns a new connection to postgres

func NewTestStorage

func NewTestStorage() *testStorage

returns a new connection to postgres

Types

type UserStorer

type UserStorer interface {
	GetById(id string) (*types.User, error)
	Update(id string, newData *types.User) error
	Delete(id string) error
	Insert(user *types.User) error
}

Jump to

Keyboard shortcuts

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