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: 0

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