Documentation ¶
Index ¶
- Constants
- type App
- func (a App) CanHaveThumbnail(item absto.Item) bool
- func (a App) EventConsumer(ctx context.Context, e provider.Event)
- func (a App) GetChunk(ctx context.Context, pathname string) (absto.Item, error)
- func (a App) HasLargeThumbnail(ctx context.Context, item absto.Item) bool
- func (a App) HasStream(ctx context.Context, item absto.Item) bool
- func (a App) HasThumbnail(ctx context.Context, item absto.Item, scale uint64) bool
- func (a App) LargeThumbnailSize() uint64
- func (a App) List(w http.ResponseWriter, r *http.Request, request provider.Request, ...)
- func (a App) ListDir(ctx context.Context, item absto.Item) (map[string]absto.Item, error)
- func (a App) ListDirLarge(ctx context.Context, item absto.Item) (map[string]absto.Item, error)
- func (a App) Path(item absto.Item) string
- func (a App) PathForLarge(item absto.Item) string
- func (a App) PathForScale(item absto.Item, scale uint64) string
- func (a App) Rename(ctx context.Context, old, new absto.Item) error
- func (a App) Serve(w http.ResponseWriter, r *http.Request, item absto.Item)
- func (a App) Stream(w http.ResponseWriter, r *http.Request, item absto.Item)
- func (a App) ThumbnailInfo(ctx context.Context, item absto.Item, scale uint64) (thumbnailItem absto.Item, ok bool)
- type Config
Constants ¶
View Source
const ( // SmallSize is the square size of each thumbnail generated SmallSize uint64 = 150 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type App ¶
type App struct {
// contains filtered or unexported fields
}
App of package
func New ¶
func New(config Config, storage absto.Storage, prometheusRegisterer prometheus.Registerer, amqpClient *amqp.Client) (App, error)
New creates new App from Config
func (App) CanHaveThumbnail ¶ added in v0.9.0
CanHaveThumbnail determine if thumbnail can be generated for given pathname
func (App) EventConsumer ¶ added in v0.7.0
EventConsumer handle event pushed to the event bus
func (App) HasLargeThumbnail ¶ added in v0.17.0
HasLargeThumbnail determine if large thumbnail exist for given pathname
func (App) HasThumbnail ¶
HasThumbnail determine if thumbnail exist for given pathname
func (App) LargeThumbnailSize ¶ added in v0.17.0
LargeThumbnailSize give large thumbnail size
func (App) List ¶
func (a App) List(w http.ResponseWriter, r *http.Request, request provider.Request, item absto.Item, items []absto.Item)
List return all thumbnails in a base64 form
func (App) ListDirLarge ¶ added in v0.18.0
ListDirLarge return all thumbnails for large size for a given directory
func (App) PathForLarge ¶ added in v0.18.0
PathForLarge computes thumbnail path for a a given item and large size
func (App) PathForScale ¶ added in v0.18.0
PathForScale computes thumbnail path for a a given item and scale
Click to show internal directories.
Click to hide internal directories.