Documentation
¶
Index ¶
- Constants
- type App
- func (a App) AMQPHandler(ctx context.Context, message amqp.Delivery) error
- 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) Info(ctx context.Context, pathname string) (absto.Item, error)
- func (a App) LargeThumbnailSize() uint64
- func (a App) List(w http.ResponseWriter, r *http.Request, item absto.Item, items []absto.Item)
- 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)
- 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
}
func (App) AMQPHandler ¶ added in v0.23.0
func (App) EventConsumer ¶ added in v0.7.0
EventConsumer handle event pushed to the event bus
func (App) HasLargeThumbnail ¶ added in v0.17.0
func (App) HasThumbnail ¶
func (App) LargeThumbnailSize ¶ added in v0.17.0
LargeThumbnailSize give large thumbnail size
func (App) ListDirLarge ¶ added in v0.18.0
ListDirLarge return all thumbnails for large size for a given directory
func (App) PathForScale ¶ added in v0.18.0
Click to show internal directories.
Click to hide internal directories.