files

package
v0.0.0-...-f07e814 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Repo

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

func New

func New(db db.DBops) *Repo

func (*Repo) DelDoc

func (m *Repo) DelDoc(ctx context.Context, docID string, userLogin string) (structs.RmDoc, error)

DelDoc deletes doc in postgres

func (*Repo) GetAllDocsByOwner

func (m *Repo) GetAllDocsByOwner(ctx context.Context, listInfo structs.ListInfo, ownerLogin string, own bool) ([]structs.DocEntry, error)

GetAllDocsByOwner returns all docs belonging to an owner from postgres

func (*Repo) GetDoc

func (m *Repo) GetDoc(ctx context.Context, docID string) (*structs.GetDoc, error)

func (*Repo) GetGrantsByDocID

func (m *Repo) GetGrantsByDocID(ctx context.Context, docID string) ([]string, error)

func (*Repo) PostNewDoc

func (m *Repo) PostNewDoc(ctx context.Context, file *structs.File, owner string) error

PostNewDoc add doc info to postgres

Jump to

Keyboard shortcuts

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