transform

package
v0.10.4 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2021 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GPGEncryption

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

func NewGPGEncryptor

func NewGPGEncryptor(logger log.Logger, cfg *config.GPG) (*GPGEncryption, error)

func (*GPGEncryption) String

func (morph *GPGEncryption) String() string

func (*GPGEncryption) Transform

func (morph *GPGEncryption) Transform(res *Result) (*Result, error)

type PreUpload

type PreUpload interface {
	Transform(res *Result) (*Result, error)
}

func Multi

func Multi(logger log.Logger, cfg *config.PreUpload) ([]PreUpload, error)

Multi is a constructor from our config package for PreUpload transformers

type Result

type Result struct {
	File      *ach.File
	Encrypted []byte
}

func ForUpload

func ForUpload(file *ach.File, funcs []PreUpload) (*Result, error)

ForUpload iterates each Transformer over an ACH file and mutates it along the way

Jump to

Keyboard shortcuts

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