repo

package
v0.0.0-...-0e611fa Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2022 License: Apache-2.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 UsersDataRepo

type UsersDataRepo interface {
	//SaveText saves text data to storage
	SaveText(text *models.DataText, userId uuid.UUID) (uuid.UUID, error)
	//SaveCard saves card data to storage
	SaveCard(card *models.DataCard, userId uuid.UUID) (uuid.UUID, error)
	//GetText gets text data from storage
	GetText(id uuid.UUID) (*models.DataText, error)
	//GetCard gets card data from storage
	GetCard(id uuid.UUID) (*models.DataCard, error)
}

UsersDataRepo text and card repo

type UsersFilesRepo

type UsersFilesRepo interface {
	//Save saves file to storage
	Save(ctx context.Context, fileType string, fileData bytes.Buffer) (string, error)
}

UsersFilesRepo file repo

type UsersRepo

type UsersRepo interface {
	//CreateUser creates user
	CreateUser(user *models.User) error
	//GetUserByLogin gets user by user login
	GetUserByLogin(login string) (*models.User, error)
}

UsersRepo auth and register repo

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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