Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // DefaultFilenameTemplate is paygate's standard filename format for ACH files which are uploaded to an ODFI // // The format consists of a few parts: "year month day" timestamp, routing number, and sequence number // // Examples: // - 20191010-987654320-1.ach // - 20191010-987654320-1.ach.gpg (GPG encrypted) DefaultFilenameTemplate = `{{ date "20060102" }}-{{ .RoutingNumber }}-{{ .N }}.ach{{ if .GPG }}.gpg{{ end }}` )
Functions ¶
This section is empty.
Types ¶
type Config ¶
type FTP ¶
type FTP struct { Hostname string `yaml:"hostname"` Username string `yaml:"username"` Password string `yaml:"password"` CAFilepath string `yaml:"ca_file"` DialTimeout time.Duration `yaml:"dial_timeout"` DisabledEPSV bool `yaml:"disabled_epsv"` }
func (*FTP) DisableEPSV ¶
type InMemPipeline ¶
type InMemPipeline struct {
URL string `yaml:"url"`
}
type KafkaPipeline ¶
type ODFI ¶
type ODFI struct { // RoutingNumber is a valid ABA routing number RoutingNumber string `yaml:"routing_number"` // Gateway holds FileHeader information which the ODFI requires is set // on all files uploaded. Gateway Gateway `yaml:"gateway"` Cutoffs Cutoffs InboundPath string `yaml:"inbound_path"` OutboundPath string `yaml:"outbound_path"` ReturnPath string `yaml:"return_path"` // AllowedIPs is a comma separated list of IP addresses and CIDR ranges // where connections are allowed. If this value is non-empty remote servers // not within these ranges will not be connected to. AllowedIPs string `yaml:"allowed_ips"` OutboundFilenameTemplate string `yaml:"outbound_filename_template"` FTP *FTP `yaml:"ftp"` SFTP *SFTP `yaml:"sftp"` Storage *Storage `yaml:"storage"` }
ODFI holds all the configuration for sending and retrieving ACH files with a financial institution to originate files.
func (*ODFI) FilenameTemplate ¶
func (*ODFI) SplitAllowedIPs ¶
type Pipeline ¶
type Pipeline struct { Merging *Merging `yaml:"merging"` Stream *StreamPipeline `yaml:"stream"` }
type SFTP ¶
type SFTP struct { Hostname string `yaml:"hostname"` Username string `yaml:"username"` Password string `yaml:"password"` ClientPrivateKey string `yaml:"clientPrivateKey"` HostPublicKey string `yaml:"hostPublicKey"` DialTimeout time.Duration `yaml:"dial_timeout"` MaxConnectionsPerFile int `yaml:"max_connections_per_file"` MaxPacketSize int `yaml:"max_packet_size"` }
func (*SFTP) MaxConnections ¶
func (*SFTP) PacketSize ¶
type Storage ¶
type Storage struct { // CleanupLocalDirectory determines if we delete the local directory after // processing is finished. Leaving these files around helps debugging, but // also exposes customer information. CleanupLocalDirectory bool `yaml:"cleanup_local_directory"` // KeepRemoteFiles determines if we delete the remote file on an ODFI's server // after downloading and processing of each file. KeepRemoteFiles bool `yaml:"keep_remote_files"` Local *Local `json:"local"` }
type StreamPipeline ¶
type StreamPipeline struct { InMem *InMemPipeline `yaml:"inmem"` Kafka *KafkaPipeline `yaml:"kafka"` }
Click to show internal directories.
Click to hide internal directories.