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: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewAccountCreateEvent

func NewAccountCreateEvent(id string, documentNumber string, availableCreditLimit float64) *accountCreateEvent

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