Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrDescriptionCannotBeEmpty = errors.New("Description cannot be empty")
)
View Source
var (
ErrInvalidAllocation = errors.New("invalid allocation")
)
View Source
var (
ErrNameCannotBeEmpty = errors.New("Name cannot be empty")
)
Functions ¶
This section is empty.
Types ¶
type Allocation ¶
type Allocation struct {
// contains filtered or unexported fields
}
func NewAllocation ¶
func NewAllocation(value int) (*Allocation, error)
func (*Allocation) Equals ¶
func (a *Allocation) Equals(value ValueObject) bool
func (*Allocation) GetValue ¶
func (a *Allocation) GetValue() int
func (*Allocation) Scan ¶
func (n *Allocation) Scan(value interface{}) error
type Description ¶
type Description struct {
// contains filtered or unexported fields
}
func NewDescription ¶
func NewDescription(value string) (*Description, error)
func (*Description) Equals ¶
func (n *Description) Equals(value ValueObject) bool
func (*Description) GetValue ¶
func (n *Description) GetValue() string
func (*Description) Scan ¶
func (n *Description) Scan(value interface{}) error
type Name ¶
type Name struct {
// contains filtered or unexported fields
}
func (*Name) Equals ¶
func (n *Name) Equals(value ValueObject) bool
type ValueObject ¶
Click to show internal directories.
Click to hide internal directories.