...

Source file src/gitlab.com/tslocum/sriracha/extension.go

Documentation: gitlab.com/tslocum/sriracha

     1  package sriracha
     2  
     3  import "io"
     4  
     5  // Extension defines the methods of sriracha extensions.
     6  type Extension interface {
     7  	Start() error // Initialize
     8  
     9  	Stop() error // Terminate
    10  
    11  	Attach(file io.Reader, size int64, mime string) (*Attachment, error) // Attach a file
    12  
    13  	Post() error // Process a post
    14  }
    15  

View as plain text