file

package
v2.0.0-...-a21236f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 14, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package file provides a file-based hook implementation. A directory is specified, whose files will be executed for specific hook events. When the pre-create events is emitted, the file called pre-create will be executed, similar to Git hooks. If such a file does not exist, the event will be ignored. Information about the current upload and HTTP request is provided on stdin and in the environment variables. By writing to stdout, the response from tusd can be influenced.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FileHook

type FileHook struct {
	Directory string
}

func (FileHook) InvokeHook

func (h FileHook) InvokeHook(req hooks.HookRequest) (res hooks.HookResponse, err error)

func (FileHook) Setup

func (FileHook) Setup() error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL