repository

package
v0.0.0-...-c67561b Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type InMemoryCache

type InMemoryCache struct {
	sync.RWMutex
	// contains filtered or unexported fields
}

func NewInMemoryCache

func NewInMemoryCache() *InMemoryCache

func (*InMemoryCache) Add

func (i *InMemoryCache) Add(user domain.User) error

func (*InMemoryCache) CheckVerifyRegString

func (i *InMemoryCache) CheckVerifyRegString(checkMail string) (*domain.User, error)

func (*InMemoryCache) Get

func (i *InMemoryCache) Get(mail string) (domain.User, error)

func (*InMemoryCache) LengthCache

func (in *InMemoryCache) LengthCache() (float64, error)

func (*InMemoryCache) LengthUnverifiedUsers

func (in *InMemoryCache) LengthUnverifiedUsers() (float64, error)

func (*InMemoryCache) Update

func (i *InMemoryCache) Update(user domain.User) error

type PgConn

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

func NewPgConnect

func NewPgConnect(config string) (*PgConn, error)

func (*PgConn) FileDelete

func (p *PgConn) FileDelete(file domain.File) error

delete file

func (*PgConn) FileGetByID

func (p *PgConn) FileGetByID(fileID string) (domain.File, error)

get file by id

func (*PgConn) FileInsert

func (p *PgConn) FileInsert(file domain.File) error

insert file

func (*PgConn) FilesGetByUserID

func (p *PgConn) FilesGetByUserID(uuidUser string) (*[]domain.File, error)

get all files for user

func (*PgConn) UserAddOnRegistration

func (p *PgConn) UserAddOnRegistration(user domain.User) error

func (*PgConn) UserCheckExistByMail

func (p *PgConn) UserCheckExistByMail(mail string) (bool, error)

func (*PgConn) UserGetByMail

func (p *PgConn) UserGetByMail(mail string) (domain.User, error)

type StorageMinio

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

func NewStorageMinio

func NewStorageMinio(config domain.SysConfig) (*StorageMinio, error)

func (*StorageMinio) Download

func (s *StorageMinio) Download(file domain.File) error

func (*StorageMinio) Remove

func (s *StorageMinio) Remove(file domain.File) error

Remove object from bucket

func (*StorageMinio) Upload

func (s *StorageMinio) Upload(file domain.File) error

Jump to

Keyboard shortcuts

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