fileupload

package
v0.7.2 Latest Latest
Warning

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

Go to latest
Published: May 27, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const TrigUploadFile common.TriggerName = "File Upload"

Variables

View Source
var ErrInvalidFile = fmt.Errorf("invalid file provided")

Functions

This section is empty.

Types

type Action

type Action struct {
	// contains filtered or unexported fields
}

Action contains the exported methods for this package.

func New

func New(config *common.Config) *Action

New configures the library.

func (*Action) Create

func (a *Action) Create()

Create initializes the library.

func (*Action) Log

func (a *Action) Log(event website.EventType, file string) error

Log uploads a specific log file to Notifiarr.com.

func (*Action) Upload

func (a *Action) Upload(event website.EventType, filePath ...string) error

Upload a file or files to Notifiarr.com.

Jump to

Keyboard shortcuts

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