repository

package
v0.0.0-...-d9bd7fb Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DBConfig

type DBConfig struct {
	Host     string `yaml:"host" env:"DB_HOST"`
	Port     string `yaml:"port" env:"DB_PORT"`
	Username string `yaml:"username" env:"DB_USERNAME"`
	Password string `yaml:"password" env:"DB_PASSWORD"`
	DBName   string `yaml:"db_name" env:"DB_NAME"`
	SSLMode  string `yaml:"ssl_mode" env:"DB_SSL_MODE"`
}

type ProfileRepository

type ProfileRepository interface {
	CreateProfile(ctx context.Context, profile *models.Profile) error
	DeleteProfile(ctx context.Context, accountID string) (tx Transaction, err error)
	GetProfile(ctx context.Context, accountID string) (models.RepositoryProfile, error)
	GetProfilePictureID(ctx context.Context, accountID string) (string, error)
	UpdateProfilePictureID(ctx context.Context, accountID string, pictureID string) error
	GetEmail(ctx context.Context, accountID string) (string, error)
}

type Transaction

type Transaction interface {
	Commit() error
	Rollback() error
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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