Documentation ¶
Index ¶
Constants ¶
View Source
const (
QUERY_InsertUser = "INSERT INTO test (firstname, lastname, patronymic) VALUES ($1, $2, $3) RETURNING id"
)
View Source
const (
REDIS_TTL = 30 * time.Second
)
View Source
const TracerName string = "repository"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Repository ¶
type Repository struct {
// contains filtered or unexported fields
}
func New ¶
func New(db *database.Client, rabbitmq rabbitmq.RabbitMQClient, redis *redis.Client, logger logger.Logger) *Repository
func (*Repository) CreateUser ¶
func (repo *Repository) CreateUser(ctx context.Context, req *models.TestRequest) (*models.TestResponse, tiny_errors.ErrorHandler)
func (*Repository) Files ¶
func (repo *Repository) Files(ctx context.Context, req *models.FileRequest) (*models.FileResponse, tiny_errors.ErrorHandler)
Click to show internal directories.
Click to hide internal directories.