controller

package
v0.0.0-...-75c6f16 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2024 License: AGPL-3.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GenerateShareableLinkRequestIDO

type GenerateShareableLinkRequestIDO struct {
	SmartFolderID primitive.ObjectID `bson:"smart_folder_id" json:"smart_folder_id"`
	ExpiresIn     uint64             `bson:"expires_in,omitempty" json:"expires_in,omitempty"`
}

type GenerateShareableLinkResponseIDO

type GenerateShareableLinkResponseIDO struct {
	URL string `bson:"url,omitempty" json:"url,omitempty"`
}

type SmartFolderController

SmartFolderController Interface for smartfolder business logic controller.

func NewController

func NewController(
	appCfg *config.Conf,
	loggerp *slog.Logger,
	uuidp uuid.Provider,
	object object_storage.ObjectStorager,
	passwordp password.Provider,
	kmux kmutex.Provider,
	temailer templatedemailer.TemplatedEmailer,
	client *mongo.Client,
	usr_storer user_s.UserStorer,
	smartfolder_s smartfolder_s.SmartFolderStorer,
	obj_storer objectfile_s.ObjectFileStorer,
) SmartFolderController

type SmartFolderControllerImpl

type SmartFolderControllerImpl struct {
	Config            *config.Conf
	Logger            *slog.Logger
	UUID              uuid.Provider
	ObjectStorage     object_storage.ObjectStorager
	Password          password.Provider
	Kmutex            kmutex.Provider
	DbClient          *mongo.Client
	UserStorer        user_s.UserStorer
	SmartFolderStorer smartfolder_s.SmartFolderStorer
	ObjectFileStorer  objectfile_s.ObjectFileStorer
	TemplatedEmailer  templatedemailer.TemplatedEmailer
}

func (*SmartFolderControllerImpl) ArchiveByID

func (*SmartFolderControllerImpl) Create

func (*SmartFolderControllerImpl) DeleteByID

func (impl *SmartFolderControllerImpl) DeleteByID(ctx context.Context, sfid primitive.ObjectID) error

func (*SmartFolderControllerImpl) GetByID

func (*SmartFolderControllerImpl) UpdateByID

type SmartFolderCreateRequestIDO

type SmartFolderCreateRequestIDO struct {
	Name        string `bson:"name" json:"name"`
	Description string `bson:"description" json:"description"`
	Category    uint64 `bson:"category,omitempty" json:"category,omitempty"`
	SubCategory uint64 `bson:"sub_category,omitempty" json:"sub_category,omitempty"`
	SortNumber  int8   `bson:"sort_number" json:"sort_number"`
}

type SmartFolderUpdateRequestIDO

type SmartFolderUpdateRequestIDO struct {
	ID          primitive.ObjectID `bson:"id" json:"id"`
	Description string             `bson:"description" json:"description"`
	Name        string             `bson:"name" json:"name"`
	Category    uint64             `bson:"category,omitempty" json:"category,omitempty"`
	SubCategory uint64             `bson:"sub_category,omitempty" json:"sub_category,omitempty"`
	SortNumber  int8               `bson:"sort_number" json:"sort_number"`
}

Jump to

Keyboard shortcuts

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