profilestore

package
v0.0.0-...-1ce29ab Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2022 License: Unlicense Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PG

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

func GetPGStore

func GetPGStore(ctx context.Context, log *logrus.Logger, dsn string) (*PG, error)

func (*PG) GetUser

func (pg *PG) GetUser(ctx context.Context, phone string) (*models.User, error)

func (*PG) Migrate

func (pg *PG) Migrate(direction migrate.MigrationDirection) error

func (*PG) UpsertUser

func (pg *PG) UpsertUser(ctx context.Context, user *models.User) error

Jump to

Keyboard shortcuts

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