model

package module
v0.0.0-...-2a6d28c Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2017 License: MIT Imports: 1 Imported by: 0

README

Reusable set of models and encapsulated fields for building domain data structs.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Modifier

type Modifier struct {
	Uuid           uuidGenerator.UUID
	Firstname      string
	Lastname       string
	Email          string
	PolymorficType string
	Deleted        bool
}

Modifier model is a high level model. It should represent a Model object which modify other objects. For Example: User & Contact objects are model object. Those can modify values of Ticket object. At every moment, you will have linked those infromations -- that Ticket object is modified by Modifier object.

func NewModifier

func NewModifier(uuid uuidGenerator.UUID, firstname, lastname, email, polymorficType string, deleted bool) *Modifier

NewModifier creates a new Modifier from the string.

func (*Modifier) MarkAsDeleted

func (m *Modifier) MarkAsDeleted()

MarkAsDeleted mark Modifier as deleted.

func (*Modifier) Update

func (m *Modifier) Update(firstname, lastname, email string)

Update updates some of Modifier fields.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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