Documentation ¶
Index ¶
- type Factory
- func (f *Factory) MapUsersResourceCollection(users []*entities.User) (interface{}, error)
- func (f *Factory) MapUsersResourceItem(user *entities.User) (interface{}, error)
- func (f *Factory) NewUsersResourceCollection(users []fractal.Any) *fractal.Collection
- func (f *Factory) NewUsersResourceItem(user *entities.User) *fractal.Item
- type StubUser
- type UsersTransformer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Factory ¶
type Factory struct {
// contains filtered or unexported fields
}
func NewTransformersFactory ¶
func NewTransformersFactory(fractal *fractal.Manager, hashIds *infrastructure.HashIds) *Factory
func (*Factory) MapUsersResourceCollection ¶
func (*Factory) MapUsersResourceItem ¶
func (*Factory) NewUsersResourceCollection ¶
func (f *Factory) NewUsersResourceCollection(users []fractal.Any) *fractal.Collection
func (*Factory) NewUsersResourceItem ¶
type UsersTransformer ¶
type UsersTransformer struct { fractal.BaseTransformer // contains filtered or unexported fields }
func NewUsersTransformer ¶
func NewUsersTransformer(hashIds *infrastructure.HashIds) *UsersTransformer
func (*UsersTransformer) Transform ¶
func (t *UsersTransformer) Transform(data fractal.Any) fractal.M
Click to show internal directories.
Click to hide internal directories.