events

package
v0.0.0-...-41d1bbc Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2020 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CompraAVista    = 1
	CompraParcelada = 2
	Saque           = 3
	Pagamento       = 4
)

Variables

This section is empty.

Functions

func NewTransactionCreateEvent

func NewTransactionCreateEvent(id string, accountId string, operationTypeId int, amount float64) *transactionCreateEvent

Types

type Event

type Event interface {
	GetName() string
	GetChannel() string
}

type EventBase

type EventBase struct {
	Uuid      string `json:"uuid" validate:"required"`
	Timestamp string `json:"timestamp" validate:"required"`
	Name      string `json:"name" validate:"required"`
}

func NewEventBase

func NewEventBase(name string) *EventBase

func (EventBase) GetName

func (e EventBase) GetName() string

Jump to

Keyboard shortcuts

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