attachment

package
v1.69.2 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2018 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Scope

type Scope struct {
	Runtime *env.Runtime
}

Scope provides data access to MySQL.

func (Scope) Add

func (s Scope) Add(ctx domain.RequestContext, a attachment.Attachment) (err error)

Add inserts the given record into the database attachement table.

func (Scope) Delete

func (s Scope) Delete(ctx domain.RequestContext, id string) (rows int64, err error)

Delete deletes the id record from the database attachment table.

func (Scope) GetAttachment

func (s Scope) GetAttachment(ctx domain.RequestContext, orgID, attachmentID string) (a attachment.Attachment, err error)

GetAttachment returns the database attachment record specified by the parameters.

func (Scope) GetAttachments

func (s Scope) GetAttachments(ctx domain.RequestContext, docID string) (a []attachment.Attachment, err error)

GetAttachments returns a slice containing the attachement records (excluding their data) for document docID, ordered by filename.

func (Scope) GetAttachmentsWithData

func (s Scope) GetAttachmentsWithData(ctx domain.RequestContext, docID string) (a []attachment.Attachment, err error)

GetAttachmentsWithData returns a slice containing the attachement records (including their data) for document docID, ordered by filename.

Jump to

Keyboard shortcuts

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