MCPcopy Create free account
hub / github.com/gogs/gogs / GetAttachmentByUUID

Function GetAttachmentByUUID

internal/database/attachment.go:125–127  ·  view source on GitHub ↗

GetAttachmentByUUID returns attachment by given UUID.

(uuid string)

Source from the content-addressed store, hash-verified

123
124// GetAttachmentByUUID returns attachment by given UUID.
125func GetAttachmentByUUID(uuid string) (*Attachment, error) {
126 return getAttachmentByUUID(x, uuid)
127}
128
129func getAttachmentsByIssueID(e Engine, issueID int64) ([]*Attachment, error) {
130 attachments := make([]*Attachment, 0, 5)

Callers 1

runWebFunction · 0.92

Calls 1

getAttachmentByUUIDFunction · 0.85

Tested by

no test coverage detected