postgres

package
v0.0.0-...-d66a43f Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthRepository

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

func NewAuthRepository

func NewAuthRepository(confs config.Posgres) (*AuthRepository, error)

func (*AuthRepository) Add

func (a *AuthRepository) Add(u entity.User) error

func (*AuthRepository) Exists

func (a *AuthRepository) Exists(username string) (bool, error)

func (*AuthRepository) Get

func (a *AuthRepository) Get(username string) (entity.User, error)

type PostgresRepository

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

func New

func New(confs config.Posgres) (*PostgresRepository, error)

func (*PostgresRepository) Add

func (*PostgresRepository) Exists

func (p *PostgresRepository) Exists(shotened string) (bool, error)

func (*PostgresRepository) Get

func (p *PostgresRepository) Get(shortened string) (aggregate.URL, error)

func (*PostgresRepository) MigrateAll

func (p *PostgresRepository) MigrateAll() error

Jump to

Keyboard shortcuts

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