sriracha/extension_attach.go

12 lines
294 B
Go

package sriracha
import "io"
// ExtensionAttach defines the interface for extensions that handle attaching
// files when creating a post.
type ExtensionAttach interface {
Extension
// Attach handles an uploaded file.
Attach(file io.Reader, size int64, mime string) (*Attachment, error)
}