transform

package
v0.31.3 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2024 License: Apache-2.0 Imports: 8 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(cfg *service.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 *service.PreUpload) ([]PreUpload, error)

Multi is a constructor from our config package for PreUpload transformers

type Result

type Result struct {
	File      *ach.File
	Original  []byte
	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