examplerepository

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IfThenElse

func IfThenElse(condition bool, a interface{}, b interface{}) interface{}

Types

type UserEntity

type UserEntity struct {
	ID        string
	FirstName string
	LastName  string
}

func (*UserEntity) GetId

func (e *UserEntity) GetId() string

type UsersRepository

type UsersRepository struct {
	*cerk.MemoryRepository
}

func (*UsersRepository) Create

func (r *UsersRepository) Create(firstName string, lastName string) (goeh.Event, error)

func (*UsersRepository) Replay

func (r *UsersRepository) Replay(events []goeh.Event) error

func (*UsersRepository) Update

func (r *UsersRepository) Update(id string, firstName string, lastName string) (goeh.Event, error)

Jump to

Keyboard shortcuts

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