documents

package
v0.0.0-...-8bc6207 Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Document

type Document struct {
	Id       uint64 `json:"id"`
	Name     string `json:"name"`
	FileName string `json:"file_name"`
}

type DocumentRepo

type DocumentRepo interface {
	GetDocumentById(id uint64) (Document, error)
	ListAllDocuments() ([]Document, error)
	AddDocument(p *Document) (Document, error)
	EditDocument(p *Document) (Document, error)
	DeleteDocument(id uint64) error
}

type Store

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

func NewStore

func NewStore(scope *gocb.Scope) *Store

func (*Store) AddDocument

func (m *Store) AddDocument(document *Document) error

func (*Store) DeleteDocument

func (m *Store) DeleteDocument(id uint64) error

func (*Store) GetDocumentById

func (m *Store) GetDocumentById(id uint64) (d Document, err error)

func (*Store) ListAllDocuments

func (m *Store) ListAllDocuments() (d []Document, err error)

Jump to

Keyboard shortcuts

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