handler

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2024 License: MIT Imports: 16 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetHandler

func GetHandler(c config.HandlerConfig, idPrefix string) (definitions.Handler, error)

Types

type MergePNGsHandler

type MergePNGsHandler struct {
	definitions.BaseHandler
	// contains filtered or unexported fields
}

func NewMergePNGsHandler

func NewMergePNGsHandler(idPrefix string, c map[string]interface{}) (*MergePNGsHandler, error)

func (*MergePNGsHandler) Handle

func (*MergePNGsHandler) Name

func (h *MergePNGsHandler) Name() string

type ReadFileHandler

type ReadFileHandler struct {
	definitions.BaseHandler
	// contains filtered or unexported fields
}

*

  • ReadFileHandler is a handler that reads the input file to a specified output file
  • Metadata:
  • Write:
  • `ReadFile.Source` - the path to the input file

func NewReadFileHandler

func NewReadFileHandler(idPrefix string, c map[string]interface{}) (*ReadFileHandler, error)

func (*ReadFileHandler) Handle

func (*ReadFileHandler) Name

func (h *ReadFileHandler) Name() string

type ReadFileHandlerConfig

type ReadFileHandlerConfig struct {
	Input        string `mapstructure:"input"`
	RemoveSource bool   `mapstructure:"remove_source"`
}

type RunExecutableHandler

type RunExecutableHandler struct {
	definitions.BaseHandler
	// contains filtered or unexported fields
}

*

  • RunExecutableHandler is a handler that runs an executable with the given arguments

func NewRunExecutableHandler

func NewRunExecutableHandler(idPrefix string, c map[string]interface{}) (*RunExecutableHandler, error)

func (*RunExecutableHandler) Handle

func (*RunExecutableHandler) Name

func (h *RunExecutableHandler) Name() string

type SendHTTPHandler

type SendHTTPHandler struct {
	definitions.BaseHandler
	// contains filtered or unexported fields
}

func NewSendHTTPHandler

func NewSendHTTPHandler(idPrefix string, c map[string]interface{}) (*SendHTTPHandler, error)

func (*SendHTTPHandler) Handle

func (*SendHTTPHandler) Name

func (h *SendHTTPHandler) Name() string

type WriteFileHandler

type WriteFileHandler struct {
	definitions.BaseHandler
	// contains filtered or unexported fields
}

*

  • WriteFileHandler is a handler that writes the input file to a specified output file
  • Metadata:
  • Write:
  • `WriteFile.OutputPath` - the path to the output file

func NewWriteFileHandler

func NewWriteFileHandler(idPrefix string, c map[string]interface{}) (*WriteFileHandler, error)

func (*WriteFileHandler) Handle

func (*WriteFileHandler) Name

func (h *WriteFileHandler) Name() string

Jump to

Keyboard shortcuts

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