mailDispatcher

package
v0.0.0-...-a8e4d9d Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2020 License: AGPL-3.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

View Source
const ProgramName = "mail-dispatcher"

Variables

View Source
var (
	ErrMalformedPayload   = errors.New("Malformed payload.")
	ErrMarshallingPayload = errors.New("Failed to marshal payload.")
	ErrStorage            = errors.New("Failed to query data.")
	ErrInternalOperation  = errors.New("Internal operation (e.g. repo check) can't email about this.")
)

Functions

func Main

func Main()

Types

type ActivityCreatedData

type ActivityCreatedData struct {
	Table    string           `json:"table"`
	Activity *domain.Activity `json:"new"`
}

type ContextUser

type ContextUser struct {
	Uuid    string `json:"uuid"`
	Email   string `json:"email"`
	Name    string `json:"name"`
	UrlHost string `json:"url_host"`
}

type OperationChangedData

type OperationChangedData struct {
	Table string         `json:"table"`
	New   *OperationData `json:"new"`
	Old   *OperationData `json:"old"`
	// contains filtered or unexported fields
}

type OperationData

type OperationData struct {
	Uuid       string  `json:"uuid"`
	ExitStatus int     `json:"exit_status"`
	FinishedAt *PgTime `json:"finished_at"`
	TimedOutAt *PgTime `json:"timed_out_at"`
	StartedAt  *PgTime `json:"started_at"`
}

type PgTime

type PgTime time.Time

func (*PgTime) UnmarshalJSON

func (t *PgTime) UnmarshalJSON(data []byte) error

Jump to

Keyboard shortcuts

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