...

Package extension

Overview ▾

Package extension provides sriracha extension support.

type Core

type Core struct {
}

func NewCore

func NewCore() *Core

func (*Core) Attach

func (c *Core) Attach(file io.Reader, size int64, mime string) (*sriracha.Attachment, error)

func (*Core) Post

func (c *Core) Post() error

func (*Core) Start

func (c *Core) Start() error

func (*Core) Stop

func (c *Core) Stop() error

type ImageHandler

type ImageHandler struct {
}

func NewImageHandler

func NewImageHandler() *ImageHandler