store

package
v0.0.0-...-aa737f3 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Store

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

func NewStore

func NewStore(db *ent.Client) *Store

func (*Store) CreateDocument

func (s *Store) CreateDocument(ctx context.Context, uploadDocument models.UploadDocument) (*ent.Document, error)

func (*Store) CreateUser

func (s *Store) CreateUser(ctx context.Context, registerUser models.RegisterUser) (*ent.User, error)

func (*Store) GetDocument

func (s *Store) GetDocument(ctx context.Context, id int) (*ent.Document, error)

func (*Store) GetUserByUUID

func (s *Store) GetUserByUUID(ctx context.Context, uuid uuid.UUID) (*ent.User, error)

func (*Store) GetUserFromEmail

func (s *Store) GetUserFromEmail(ctx context.Context, email string) (*ent.User, error)

func (*Store) GetUsers

func (s *Store) GetUsers(ctx context.Context) ([]*ent.User, error)

func (*Store) SearchDocuments

func (s *Store) SearchDocuments(ctx context.Context, searchDocuments models.SearchDocuments) ([]*ent.DocumentSearch, error)

func (*Store) SetDocumentContent

func (s *Store) SetDocumentContent(ctx context.Context, id int, content *string) (*ent.Document, error)

Directories

Path Synopsis
ent

Jump to

Keyboard shortcuts

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