Documentation
¶
Index ¶
- type App
- func (a *App) AmqpHandler(message amqp.Delivery) error
- func (a *App) Create(ctx context.Context, filepath string, edit bool, password string, isDir bool, ...) (string, error)
- func (a *App) Delete(ctx context.Context, id string) error
- func (a *App) EventConsumer(ctx context.Context, e provider.Event)
- func (a *App) Exclusive(ctx context.Context, name string, duration time.Duration, ...) (bool, error)
- func (a *App) Get(requestPath string) provider.Share
- func (a *App) List() (shares []provider.Share)
- func (a *App) Start(done <-chan struct{})
- type Config
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type App ¶
App of package
func (*App) AmqpHandler ¶ added in v0.11.0
AmqpHandler handle exif message
func (*App) Create ¶
func (a *App) Create(ctx context.Context, filepath string, edit bool, password string, isDir bool, duration time.Duration) (string, error)
Create a share
func (*App) EventConsumer ¶ added in v0.8.0
EventConsumer handle event pushed to the event bus
func (*App) Exclusive ¶ added in v0.11.0
func (a *App) Exclusive(ctx context.Context, name string, duration time.Duration, action func(ctx context.Context) error) (bool, error)
Exclusive does action on shares with exclusive lock
Click to show internal directories.
Click to hide internal directories.