Documentation ¶
Index ¶
- Variables
- func NewTranslation(wk libdomain.WorkflowInterface) libdomain.DomainObjectInterface
- type DummyStruct
- type Translation
- type TranslationCollection
- func (d *TranslationCollection) Delete() error
- func (c *TranslationCollection) GetByID(id string) *Translation
- func (d *TranslationCollection) Map() []map[string]interface{}
- func (c *TranslationCollection) Slice() []*Translation
- func (d *TranslationCollection) Update(r *pb.UpdateTranslationData) error
- type TranslationFactory
- type TranslationFactoryInterface
- type TranslationInternalLibrary
Constants ¶
This section is empty.
Variables ¶
var TranslationAggregate *translationAggregate
TranslationAggregate contain the definition of the translation object.
*It is also used to generate the factory containing the main functions with the environnement.
var TranslationEntity *translationEntity
Functions ¶
func NewTranslation ¶
func NewTranslation(wk libdomain.WorkflowInterface) libdomain.DomainObjectInterface
Types ¶
type DummyStruct ¶
type DummyStruct struct{}
type Translation ¶
type Translation struct { Pb *pb.Translation Workflow libdomain.WorkflowInterface }
Translation is the main struct for operating a translation object, which shall
*be used in custom code because it contains the environnement informations and *the easy-to-use functions.
func (*Translation) Delete ¶
func (t *Translation) Delete() error
Delete will delete the translation from the database.
func (*Translation) GetID ¶
func (t *Translation) GetID() string
SetID is a function to set the ID of the translation.
func (*Translation) JSON ¶
func (t *Translation) JSON() ([]byte, error)
JSON is a function to return the translation data in JSON format.
func (*Translation) Map ¶
func (t *Translation) Map() map[string]interface{}
Map is a function to return the translation data in JSON format.
func (*Translation) SetID ¶
func (t *Translation) SetID(id string)
SetID is a function to set the ID of the translation.
func (*Translation) Update ¶
func (t *Translation) Update(r *pb.UpdateTranslationData) error
Delete will delete the translation from the database.
type TranslationCollection ¶
type TranslationCollection struct {
*libdomain.Collection
}
TranslationCollection is the main struct for operating a list translation object, which shall
*be used in custom code because it contains the environnement informations and *the easy-to-use functions.
func (*TranslationCollection) Delete ¶
func (d *TranslationCollection) Delete() error
Delete will delete all the translations in the collection.
func (*TranslationCollection) GetByID ¶
func (c *TranslationCollection) GetByID(id string) *Translation
GetByID return the translation in this collection, by id.
func (*TranslationCollection) Map ¶
func (d *TranslationCollection) Map() []map[string]interface{}
func (*TranslationCollection) Slice ¶
func (c *TranslationCollection) Slice() []*Translation
GetSlice return all translations in this collection, as a slice.
func (*TranslationCollection) Update ¶
func (d *TranslationCollection) Update(r *pb.UpdateTranslationData) error
Update will update all the translations in the collection with the specified data.
type TranslationFactory ¶
type TranslationFactory struct { *libdomain.Factory TranslationFactoryInterface }
TranslationFactory is the main struct for operating translation objects, which shall
*be used in custom code because it contains the environnement informations and *the easy-to-use functions.
func (*TranslationFactory) Create ¶
func (d *TranslationFactory) Create( translations []*pb.CreateTranslationCommand, parentAggregate *libdata.Aggregate, ) (*TranslationCollection, error)
Create create a new translation from the factory, and return it.
func (*TranslationFactory) New ¶
func (d *TranslationFactory) New() *Translation
New return a new instance of a translation object.
func (*TranslationFactory) NewCollection ¶
func (d *TranslationFactory) NewCollection(records *libdomain.Collection) *TranslationCollection
NewCollection return a new instance of a translation collection object.
type TranslationFactoryInterface ¶
type TranslationFactoryInterface interface { }
type TranslationInternalLibrary ¶
type TranslationInternalLibrary struct { }