1 package sriracha 2 3 import "io" 4 5 // ExtensionAttach defines the interface for extensions that handle attaching 6 // files when creating a post. 7 type ExtensionAttach interface { 8 Extension 9 10 // Attach handles an uploaded file. 11 Attach(file io.Reader, size int64, mime string) (*Attachment, error) 12 } 13