domain

package
v0.0.0-...-b05fc82 Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2020 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Customer

type Customer struct {
	ID                string            `json:"id"`
	Name              string            `json:"name"`
	CreditLimit       float64           `json:"credit_limit"`
	CreditReservation map[int64]float64 `json:"credit_reservation"`
}

Customer describes the user making purchase.

func CreateNewCustomerEntity

func CreateNewCustomerEntity(name string, creditLimit float64) *Customer

func (*Customer) Marshal

func (c *Customer) Marshal() []byte

type Event

type Event interface {
	AsEvent() []byte
}

Jump to

Keyboard shortcuts

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