Documentation
¶
Index ¶
- type CreateInput
- type Document
- type Handlers
- type Public
- type Service
- type Store
- func (s *Store) AddDocument(ctx context.Context, documentParam Document) (Document, error)
- func (s *Store) DeleteDocument(ctx context.Context, documentParam Document) error
- func (s *Store) GetDocument(ctx context.Context, documentParam Document) (Document, error)
- func (s *Store) GetDocuments(ctx context.Context) ([]Document, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CreateInput ¶
type CreateInput struct {
Name string
}
CreateInput is a new document; a file is required.
type Handlers ¶
type Handlers struct {
// contains filtered or unexported fields
}
Handlers serves /documents.
func NewHandlers ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service is the document business logic.
func NewService ¶
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
Store stores the dependencies
func NewDocumentRepo ¶
NewDocumentRepo stores our dependency
func (*Store) AddDocument ¶
func (*Store) DeleteDocument ¶
func (*Store) GetDocument ¶
Click to show internal directories.
Click to hide internal directories.