storage

package
v0.0.0-...-91b2019 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PostgresStore

type PostgresStore struct {
	DB *sqlx.DB
}

func NewPostgresStore

func NewPostgresStore() (*PostgresStore, error)

func (*PostgresStore) CreateUser

func (s *PostgresStore) CreateUser(user *models.User) error

func (*PostgresStore) GetUser

func (s *PostgresStore) GetUser(username string) (*models.User, error)

type Storage

type Storage interface {
	CreateUser(user *models.User) error
	GetUser(username string) (*models.User, error)
}

Jump to

Keyboard shortcuts

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