events

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2021 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReadEvent added in v0.3.0

func ReadEvent(data []byte, evt interface{}) error

Types

type Batch added in v0.3.0

type Batch struct {
	Header  *ach.BatchHeader   `json:"batchHeader"`
	Entries []*ach.EntryDetail `json:"entryDetails"`
}

type CorrectionFile added in v0.3.0

type CorrectionFile struct {
	Filename    string    `json:"filename"`
	File        *ach.File `json:"file"`
	Corrections []Batch   `json:"corrections"`
}

type Emitter

type Emitter interface {
	Send(evt Event) error
}

func NewEmitter

func NewEmitter(logger log.Logger, cfg *service.EventsConfig) (Emitter, error)

type Event added in v0.3.0

type Event struct {
	Event interface{} `json:"event"`
	Type  string      `json:"type"`
}

func (Event) Bytes added in v0.3.0

func (evt Event) Bytes() []byte

func (Event) MarshalJSON added in v0.3.0

func (evt Event) MarshalJSON() ([]byte, error)

type FileUploaded

type FileUploaded struct {
	FileID     string    `json:"fileID"`
	ShardKey   string    `json:"shardKey"`
	Filename   string    `json:"filename"`
	UploadedAt time.Time `json:"uploadedAt"`
}

type IncomingFile added in v0.3.0

type IncomingFile struct {
	Filename string    `json:"filename"`
	File     *ach.File `json:"file"`
}

type MockEmitter

type MockEmitter struct{}

func (*MockEmitter) Send added in v0.3.0

func (*MockEmitter) Send(evt Event) error

type PrenoteFile added in v0.3.0

type PrenoteFile struct {
	Filename string    `json:"filename"`
	File     *ach.File `json:"file"`
	Batches  []Batch   `json:"batches"`
}

type ReconciliationFile added in v0.3.0

type ReconciliationFile struct {
	Filename        string    `json:"filename"`
	File            *ach.File `json:"file"`
	Reconciliations []Batch   `json:"returns"`
}

type ReturnFile added in v0.3.0

type ReturnFile struct {
	Filename string    `json:"filename"`
	File     *ach.File `json:"file"`
	Returns  []Batch   `json:"returns"`
}

Jump to

Keyboard shortcuts

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