model

package
v0.0.0-...-4c581ce Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2019 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type User

type User struct {
	domain.BaseAggregate
	Username     string
	Email        string
	PasswordHash string
}

func (*User) AggregateType

func (user *User) AggregateType() string

func (*User) ApplyChange

func (user *User) ApplyChange(event events.Event) error

func (*User) GetEmail

func (user *User) GetEmail() string

func (*User) GetID

func (user *User) GetID() uuid.UUID

func (*User) GetUsername

func (user *User) GetUsername() string

func (*User) HandleCommand

func (user *User) HandleCommand(command commands.Command) error

func (*User) IncrementVersion

func (user *User) IncrementVersion()

func (*User) UpdateUpdatedAt

func (user *User) UpdateUpdatedAt(t time.Time)

Jump to

Keyboard shortcuts

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