Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateAttachment ¶
func GetAttachment ¶
func RemoveAttachment ¶
Types ¶
type Attachment ¶
type AttachmentController ¶
type AttachmentController struct {
// contains filtered or unexported fields
}
func NewAttachmentController ¶
func NewAttachmentController(ar *AttachmentRepository) *AttachmentController
type AttachmentRepository ¶
type AttachmentRepository struct { Client *mongo.Client Configuration AttachmentRepositoryConfiguration }
func NewAttachmentRepository ¶
func NewAttachmentRepository(client *mongo.Client, configuration AttachmentRepositoryConfiguration) AttachmentRepository
func (*AttachmentRepository) Download ¶
func (a *AttachmentRepository) Download(name string) ([]byte, error)
type AttachmentRepositoryConfiguration ¶
type AttachmentRepositoryConfiguration struct {
DatabaseName string
}
type IAttachmentController ¶
Click to show internal directories.
Click to hide internal directories.