handler

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2017 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PathCompletion

func PathCompletion(s string, defaultURL string) string

pathCompletion completes a URL is needed if url is a partial path like /api then the path should use the DefaultURL string from config

Types

type HTTP

type HTTP struct {
	Path         string
	DefaultURL   string
	SendContents bool
}

func (HTTP) Handle

func (h HTTP) Handle(event fsnotify.Event)

func (*HTTP) Init

func (h *HTTP) Init(action config.Action) error

type Handler

type Handler interface {
	Handle(event fsnotify.Event)
	Init(action config.Action) error
}

type Imaginary

type Imaginary struct {
	Path            string
	DefaultURL      string
	Type            string
	Quality         int
	OutputDirectory string
}

func (Imaginary) Handle

func (i Imaginary) Handle(event fsnotify.Event)

func (*Imaginary) Init

func (i *Imaginary) Init(action config.Action) error

type Log

type Log struct {
}

func (Log) Handle

func (logger Log) Handle(event fsnotify.Event)

func (*Log) Init

func (logger *Log) Init(action config.Action) error

Jump to

Keyboard shortcuts

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