Documentation
¶
Index ¶
- type Repo
- func (m *Repo) DelDoc(ctx context.Context, docID string, userLogin string) (structs.RmDoc, error)
- func (m *Repo) GetAllDocsByOwner(ctx context.Context, listInfo structs.ListInfo, ownerLogin string, own bool) ([]structs.DocEntry, error)
- func (m *Repo) GetDoc(ctx context.Context, docID string) (*structs.GetDoc, error)
- func (m *Repo) GetGrantsByDocID(ctx context.Context, docID string) ([]string, error)
- func (m *Repo) PostNewDoc(ctx context.Context, file *structs.File, owner string) error
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 (*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) GetGrantsByDocID ¶
Click to show internal directories.
Click to hide internal directories.