Documentation ¶
Index ¶
- type UploadService
- func (s *UploadService) CreateDocument(ctx context.Context, document *types.Document) error
- func (s *UploadService) Get(ctx context.Context, fileName string) (io.Reader, error)
- func (s *UploadService) GetDocument(ctx context.Context, id uuid.UUID) (types.Document, error)
- func (s *UploadService) Process(ctx context.Context, file *types.File) ([]byte, error)
- func (s *UploadService) Save(ctx context.Context, fileName string, file io.Reader) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type UploadService ¶
type UploadService struct {
// contains filtered or unexported fields
}
You could have an interface for services but in this case I implemented without it
func NewUploadService ¶
func (*UploadService) CreateDocument ¶
func (*UploadService) GetDocument ¶
Click to show internal directories.
Click to hide internal directories.