Documentation ¶
Index ¶
- Constants
- type Module
- func (m *Module) Delete(uuid string) error
- func (m *Module) Get(filename string) (io.ReadCloser, error)
- func (m *Module) GetWithTransform(filename string, optStr string) (io.ReadCloser, error)
- func (m *Module) Init(c *service.Config)
- func (m *Module) URLForFile(file *models.File) string
- func (m *Module) Upload(filename string, wr io.Reader) (*models.File, error)
- type Store
Constants ¶
View Source
const FileURLPrefix = "/static"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Module ¶
type Module struct { Config *config.Module DB *db.Module Router *router.Module Logger *logger.Module // contains filtered or unexported fields }
func (*Module) Get ¶
func (m *Module) Get(filename string) (io.ReadCloser, error)
Get returns a reader, and nil, nil if file is not found
func (*Module) GetWithTransform ¶
GetWithTransform attempts to transform the image
Click to show internal directories.
Click to hide internal directories.